├── Add.class ├── AddC.class ├── CommonArr.class ├── Hello.java ├── IterateArr.java ├── MultiDimArray.java ├── README.md ├── ifel.class ├── name.class ├── narrowcast.class ├── switchcase.class ├── typecas.class └── welcome.class /Add.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neerajarroju/Java-Lab/c8bd2591602ced001293660bdd56f413b5b8e1d7/Add.class -------------------------------------------------------------------------------- /AddC.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neerajarroju/Java-Lab/c8bd2591602ced001293660bdd56f413b5b8e1d7/AddC.class -------------------------------------------------------------------------------- /CommonArr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neerajarroju/Java-Lab/c8bd2591602ced001293660bdd56f413b5b8e1d7/CommonArr.class -------------------------------------------------------------------------------- /Hello.java: -------------------------------------------------------------------------------- 1 | class Hello{ 2 | public static void main(String[] args){ 3 | System.out.println("Hello! \n this is my first repo"); 4 | System.out.println("This is my new code line"); 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /IterateArr.java: -------------------------------------------------------------------------------- 1 | 2 | public class IterateArr { 3 | public static void main(String[] args) { 4 | int[] arr = {1,2,4,5,6,7}; 5 | CommonArr co = new CommonArr(); 6 | /* we dont have constru of commarr by default jdk creates constrt for commonarr*/ 7 | for(int 1:co.arr3){ 8 | System.out.println(l); 9 | } 10 | CommonArr.main(null); 11 | /* if we want to acc main which is static we use its class_name.main(null) , 12 | we have to specify null cause in commarr prg the main method had paranthesis 13 | this acc main code 14 | */ 15 | System.out.println("Elements are:"); 16 | for(int i = 0; i < arr.length; i++){ 17 | System.out.println(arr[i]); 18 | } 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /MultiDimArray.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class MultiDimArray{ 3 | public static void main(String[] args){ 4 | int marks[][] = new int[10][2]; 5 | Scanner sc = new Scanner(System.in); 6 | System.out.println("Enter roll number and marks"); 7 | for(int i = 0; i