assignment 1
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package assn01;
|
||||
|
||||
public class HelloWorld {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello, World");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package assn01;
|
||||
|
||||
public class Part2 {
|
||||
public static void main(String[] args) {
|
||||
short sh = 32767;
|
||||
|
||||
assn01.Part2.method2();
|
||||
}
|
||||
|
||||
public static void method2() {
|
||||
int n2 = 0xABC;
|
||||
|
||||
assn01.Part2.method3();
|
||||
}
|
||||
|
||||
public static void method3() {
|
||||
int[] a3 = { 'a', 'z' };
|
||||
|
||||
System.out.println(a3[0] + " " + a3[1]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package hello;
|
||||
|
||||
public class HelloWorld {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello, World");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user