assignment 1

This commit is contained in:
Joey Eamigh
2023-09-01 17:16:39 -04:00
commit f2a3ba4571
10 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package assn01;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}

21
src/assn01/Part2.java Normal file
View File

@@ -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]);
}
}

View File

@@ -0,0 +1,7 @@
package hello;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}