commit 001e2bb6bc289768e70acc85f6afc77f7fd0349c Author: Rushil Umaretiya Date: Sun Sep 3 17:56:24 2023 -0400 initial commit diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..07115cd --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..4a3ac5f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/assn/.~lock.assn01.pdf# b/assn/.~lock.assn01.pdf# new file mode 100644 index 0000000..2e60578 --- /dev/null +++ b/assn/.~lock.assn01.pdf# @@ -0,0 +1 @@ +,rushil,SARASWATI,03.09.2023 12:04,file:///home/rushil/.config/libreoffice/4; \ No newline at end of file diff --git a/assn/assn01.pdf b/assn/assn01.pdf new file mode 100644 index 0000000..4d3500a Binary files /dev/null and b/assn/assn01.pdf differ diff --git a/comp.iml b/comp.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/comp.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/comp_syllabus.pdf b/comp_syllabus.pdf new file mode 100644 index 0000000..e0a3bda Binary files /dev/null and b/comp_syllabus.pdf differ diff --git a/out/production/comp/assn01/HelloWorld.class b/out/production/comp/assn01/HelloWorld.class new file mode 100644 index 0000000..227b74d Binary files /dev/null and b/out/production/comp/assn01/HelloWorld.class differ diff --git a/out/production/comp/assn01/Part2.class b/out/production/comp/assn01/Part2.class new file mode 100644 index 0000000..cf9abf4 Binary files /dev/null and b/out/production/comp/assn01/Part2.class differ diff --git a/src/assn01/HelloWorld.java b/src/assn01/HelloWorld.java new file mode 100644 index 0000000..284afd6 --- /dev/null +++ b/src/assn01/HelloWorld.java @@ -0,0 +1,7 @@ +package assn01; + +public class HelloWorld { + public static void main(String[] args) { + System.out.println("Hello, World"); + } +} \ No newline at end of file diff --git a/src/assn01/Part2.java b/src/assn01/Part2.java new file mode 100644 index 0000000..96c1a14 --- /dev/null +++ b/src/assn01/Part2.java @@ -0,0 +1,19 @@ +package assn01; + +public class Part2 { + public static void main(String[] args) { + short sh = Short.MAX_VALUE; + method2(); + } + + static void method2() { + int n2 = 0xABC; + System.out.println(n2); + method3(); + } + + static void method3() { + int[] a3 = {'a', 'z'}; + System.out.println(a3[0] + " " + a3[1]); + } +} diff --git a/start b/start new file mode 100755 index 0000000..1797fef --- /dev/null +++ b/start @@ -0,0 +1,6 @@ +#! /bin/python3 +import sys +import os + +os.mkdir("src/assn" + sys.argv[1]) +print("done!") \ No newline at end of file diff --git a/submit b/submit new file mode 100755 index 0000000..ff795f9 --- /dev/null +++ b/submit @@ -0,0 +1,2 @@ +#! /bin/bash +zip -r submission.zip .