0% found this document useful (0 votes)
205 views

Java Lab 2-1 Manual It & Cse2009-10

The document contains 9 Java programs to demonstrate various programming concepts: 1) A program to find the quadratic roots of an equation. 2) A program to print the Fibonacci series up to a given number. 3) A program to print prime numbers within a given range. 4) A program to find the total and average marks of a student. 5) A program to display a multiplication table. 6) A program to check if a number is prime or not. 7) An application on matrix addition. 8) A program on matrix multiplication. 9) A program for array copying.

Uploaded by

Vijay Vallamdas
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
205 views

Java Lab 2-1 Manual It & Cse2009-10

The document contains 9 Java programs to demonstrate various programming concepts: 1) A program to find the quadratic roots of an equation. 2) A program to print the Fibonacci series up to a given number. 3) A program to print prime numbers within a given range. 4) A program to find the total and average marks of a student. 5) A program to display a multiplication table. 6) A program to check if a number is prime or not. 7) An application on matrix addition. 8) A program on matrix multiplication. 9) A program for array copying.

Uploaded by

Vijay Vallamdas
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 79

OOPS Lab through JAVA, CSE & CSIT Depts.

1.

Write a Java program to find the Quardratic roots of the equation ax2+bx+c=0. import java.io.*; class Factors { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter a,b,c values"); int a=Integer.parseInt(br.readLine()); int b=Integer.parseInt(br.readLine()); int c=Integer.parseInt(br.readLine()); int f=((b*b)-(4*a*c)); if(f>0) { double d=(((-b)+Math.sqrt(f))/(2*a)); double e=(((-b)-Math.sqrt(f))/(2*a)); System.out.println(roots are:); System.out.println("root1="+d+"\t"+root2=+e); System.out.println("roots are real"); } else if(f==0) { System.out.println("roots are equal"); } else { System.out.println("roots are imaginary"); } } } Output: Enter a,b,c Values 2 5 2 roots are : root1=-0.5 root2=-2.0 roots are real

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

2.

Write a Java program to print Fibonacii series upto given number.

import java.io.*; public class Fib { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int f0=0,f1=1,fib=1; System.out.println("Enter n value"); int n=Integer.parseInt(br.readLine()); System.out.println("Fibonacii series is:"); System.out.println(f0); System.out.println(f1); for(int i=0;i<=n;i++) { fib=f0+f1; System.out.println(fib); f0=f1; f1=fib; } } } Output: Enter n value 10 Fibonacii series is: 0 1 1 2 3 5 8

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

3.

Write a Java program to print prime numbers in a given range.

import java.util.*; class Prime { public static void main(String args[]) { int i,j; Scanner br =new Scanner(System.in); System.out.println("Enter the starting range"); int s=br.nextInt(); System.out.println("Enter the end range"); int e=br.nextInt(); for(i=s;i<=e;i++) { int count=0; for(j=1;j<=e;j++) { if((i%j)==0) count++; } if(count==2) { System.out.println(i); } } } } Output: Enter the starting range 10 Enter the end range 50 Prime series 11 13 17 19 23 29 31 37 41 43 47

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

4.

Write a Java program to find the total and average of a student marks.

import java.io.*; class DemoArray { public static void main (String args[]) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter how many sub"); int n=Integer.parseInt(br.readLine()); int marks[]=new int[n]; for(int i=0;i<n;i++) { System.out.println("Enter subject"+(i+1)+"marks"); marks[i]=Integer.parseInt(br.readLine()); } int tot=0; System.out.println("The marks are"); for(int i=0;i<n;i++) { System.out.println(marks[i]); tot=tot+marks[i]; } System.out.println("Total marks="+tot); float avg=(float)tot/n; System.out.print("Avarage marks ="+avg); } } Output: Enter how many subjects 3 Enter subject1 marks 67 Enter subject2 marks 53 Enter subject3 marks 70 The Marks are 67 53 70 total marks=190 Avarage marks=63.333332

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

5.

Write a Java program to display multiplication table.

import java.io.*; class Multiplication { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter n value"); int n=Integer.parseInt(br.readLine()); System.out.println("...Multiplication Table..."); for(int i=1;i<=10;i++) System.out.println(n+"*"+i+"="+(n*i)); } } Output : Enter n value 5 Multiplication table: 5*1=5 5*2=10 5*3=15 5*4=20 5*5=25 5*6=30 5*7=35 5*8=40 5*9=45 5*10=50

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.


6.

Write a java program to check whether given number is prime or not.

import java.util.*; import java.lang.*; import java.io.*; class Prime1 { public static void main(String args[ ])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter n value"); int n=Integer.parseInt(br.readLine()); int count=0; for(int i=1;i<=n;i++) { if((n%i)==0) { count++; } } if(count==2) { System.out.println("the num is prime"+n); } else { System.out.println("the num is not a prime"+n); } } } Output: Enter n value 11 the num is prime11 Enter n value 22 the num is not prime22

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

7.

Write a Java application on Matrix Addition.

import java.io.*; class MA { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); //size of mat1 System.out.println("Enter no of rows and cols of mat1"); int m=Integer.parseInt(br.readLine()); int n=Integer.parseInt(br.readLine()); //size of mat2 System.out.println("Enter no of rows and cols of mat2"); int p=Integer.parseInt(br.readLine()); int q=Integer.parseInt(br.readLine()); int i,j; int mat1[][]=new int[m][n]; int mat2[][]=new int[p][q]; int mat3[][]=new int[m][q]; if(m==q&&n==p) { //first matrix System.out.println("Enter elements in mat1:"); for(i=0;i<m;i++) { for(j=0;j<n;j++) { mat1[i][j]=Integer.parseInt(br.readLine()); } } //display of first matrix System.out.println("First matrix is:"); for(i=0;i<m;i++) { for(j=0;j<n;j++) { System.out.print(+mat1[i][j]+"\t"); } System.out.println(); } //second matrix System.out.println("Enter elements in mat2:"); for(i=0;i<p;i++) { for(j=0;j<q;j++) { mat2[i][j]=Integer.parseInt(br.readLine()); } } //display of second matrix System.out.println("Second matrix is:"); for(i=0;i<m;i++) { for(j=0;j<n;j++) { System.out.print(+mat2[i][j]+"\t"); } System.out.println();
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

} //addition for(i=0;i<m;i++) { for(j=0;j<q;j++) { mat3[i][j]=((mat1[i][j])+(mat2[i][j])); } } //display of addition matrix System.out.println("Addition of matrix is:"); for(i=0;i<m;i++) { for(j=0;j<q;j++) { System.out.print(+mat3[i][j]+"\t"); } System.out.println(); } } } } Output : Enter no of rows and cols of mat1 2 2 Enter no of rows and cols of mat2 2 2 Enter elements in mat1: 1 1 1 1 First matrix is: 1 1 1 1 Enter elements in mat2: 1 1 1 1 Second matrix is: 1 1 1 1 Addition of matrix is: 2 2 2 2

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

8.

Write a Java program on Matrix Multiplication.

// matrix multiplication import java.io.*; class MM { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); //size of mat1 System.out.println("Enter no of rows and cols of mat1"); int m=Integer.parseInt(br.readLine()); int n=Integer.parseInt(br.readLine()); //size of mat2 System.out.println("Enter no of rows and cols of mat2"); int p=Integer.parseInt(br.readLine()); int q=Integer.parseInt(br.readLine()); int i,j; int mat1[][]=new int[m][n]; int mat2[][]=new int[p][q]; int mat3[][]=new int[m][q]; if(n==p) { //first matrix System.out.println("Enter elements in mat1:"); for(i=0;i<m;i++) { for(j=0;j<n;j++) { mat1[i][j]=Integer.parseInt(br.readLine()); } } //display of first matrix System.out.println("First matrix is:"); for(i=0;i<m;i++) { for(j=0;j<n;j++) { System.out.print(mat1[i][j]+"\t"); } System.out.println(); } //second matrix System.out.println("Enter elements in mat2:"); for(i=0;i<p;i++) { for(j=0;j<q;j++) { mat2[i][j]=Integer.parseInt(br.readLine()); } } //display of second matrix System.out.println("Second matrix is:"); for(i=0;i<p;i++) { for(j=0;j<q;j++) { System.out.print(mat2[i][j]+"\t"); }
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

10

System.out.println(); } //multiplication for(i=0;i<m;i++) { for(j=0;j<q;j++) { mat3[i][j]=0; for(int k=0;k<n;k++) mat3[i][j]=(((mat1[i][k])*(mat2[k][j]))+mat3[i][j]); } } //display of multiplcation matrix is System.out.println("Multiplication of matrix is:"); for(i=0;i<m;i++) { for(j=0;j<q;j++) { System.out.print(mat3[i][j]+"\t"); } System.out.println(); } } else { System.out.println("Matrix multiplication is not possible"); } } } Output: Enter no of rows and cols of mat1 2 2 Enter no of rows and cols of mat2 2 2 Enter elements in mat1: 2 2 2 2 First matrix is: 2 2 2 2 Enter elements in mat2: 2 2 2 2 Second matrix is: 2 2 2 2 Multiplication of matrix is: 8 8 8 8

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.


9.

11

Write a java program for array copying method. import java.io.*; public class CopyArray { public static void main(String[] args)throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter array length "); int n=Integer.parseInt(br.readLine()); String array1[]=new String[n]; String array2[]=new String[n]; System.out.println("Enter strings into array1: "); System.out.println("..................................."); for(int i=0;i<n;i++) { System.out.println("Enter the string"+(i+1)); array1[i]=br.readLine(); } System.out.println("Enter strings into array2: "); System.out.println("..................................."); for(int i=0;i<n;i++) { System.out.println("Enter the string"+(i+1)); array2[i]=br.readLine(); } System.out.println("Array1:"); System.out.print("["); for (int i=0; i<n;i++) { System.out.print(" "+array1[i]); } System.out.print("]"); System.out.println("\nArray2:"); System.out.print("["); for(int i=0; i<n; i++) { System.out.print(" "+ array2[i]); } System.out.print("]"); System.out.println("\nAfterCopying:"); System.out.print("["); System.arraycopy(array1,0,array2,0,2); for(int i=0;i<n;i++) { System.out.print(" "+array2[i]); } System.out.print("]"); } }

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

12

Output: Enter array length 5 Enter strings into array1: ................................... Enter the string1 q Enter the string2 w Enter the string3 e Enter the string4 r Enter the string5 t Enter strings into array2: ................................... Enter the string1 a Enter the string2 s Enter the string3 d Enter the string4 f Enter the string5 g Array1: [ q w e r t] Array2: [ a s d f g] AfterCopying: [ q w d f g]

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

13

10. Write a program on Static method. import java.io.*; class StaticMethod { static int sum(int a,int b) { int c=a+b; return c; } } class Demo { public static void main(String args[]) { int x=StaticMethod.sum(10,50); System.out.println(x); } } Output: sum=60

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

14

11.

Write a java application on Static variable.

import java.io.*; class Test { static int x; int y; void inc() { x=x+1; y=y+1; } void show() { System.out.println("x value is:"+x); System.out.println("y value is:"+y); } } class Static { public static void main(String args[])throws IOException { Test t1=new Test(); Test t2=new Test(); System.out.println("First obj values:"); t1.inc(); t1.show(); System.out.println("Second obj values:"); t2.inc(); t2.show(); } } Output: First obj values: x value is:1 y value is:1 Second obj values: x value is:2 y value is:1

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.


12.

15

Write a program on Constructor. class Rectangle { int l,w; void getData(int x,int y) { l=x; w=y; } int rectArea() { return(l*w); } } class RectArea { public static void main(String args[ ]) { Rectangle r1=new Rectangle( ); r1.getData(10,15); int k=r1.rectArea( ); System.out.print("Area is:"+k); } } Output : Area is:150

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

16

13.

Write a java program for This keyword

import java.io.*; class Test { int a,b; void getData() { this.a=10; this.b=20; } void show() { System.out.println("a value is:"+a); System.out.println("b value is:"+b); } } class This { public static void main(String args[])throws IOException { Test t=new Test(); t.getData(); t.show(); } } Output: a value is:10 b value is:20

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

17

14

Write a java program on Command Line Arguments.

public class GetCommandLine { public static void main(String args[]) { System.out.println("----->>Getting command line arguments --"); for(int i=0;i<args.length;i++) { System.out.println("Argument ["+(i+1)+"] is = "+args[i]); } } } Output: >javac GetCommandLine.java >java GetCommandLine 10 20 30 40 50 ----->>Getting command line arguments -Argument [1] is = 10 Argument [2] is = 20 Argument [3] is = 30 Argument [4] is = 40 Argument [5] is = 50

15.

Write a program to find sum of given Command Line Arguments.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

18

import java.io.*; import java.lang.*; public class Cmd { public static void main(String args[])throws IOException { int sum=0; for(int i=0;i<args.length;i++) { int x=Integer.parseInt(args[i]); sum+=x; } System.out.println("sum is="+sum); } } Output: >javac Cmd.java >java Cmd 10 15 20 25 30 sum is=100

16.

Write a program on Method Overloding.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

19

import java.io.*; class MethodOverLoad { void calValue() { int x=20; x=x*x; System.out.println("Sqrt of x is:"+x); } void calValue(int y) { y=y*y*y; System.out.println("Cube of y is:"+y); } void calValue(int m,int n) { int z=m*n; System.out.println("Product of m and n is:"+z); } } class MOV { public static void main(String args[])throws IOException { MethodOverLoad m=new MethodOverLoad(); m.calValue(); m.calValue(10,20); m.calValue(10); } } Output: Sqrt of x is:400 Product of m and n is:200 Cube of y is:1000

17.

Write a program on Method Overriding.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

20

import java.io.*; class One { int calculate(int n) { return n; } } class Two extends One { int calculate(int n) { return(n*n); } } class MOR { public static void main(String args[])throws IOException { Two t=new Two(); int m=t.calculate(3); System.out.println("Multiplication is:"+m); } } Output: Multiplication is:9

18.

Write a program on Constructor Overloding.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

21

import java.lang.*; class Test { int a,b; Test() { a=1; b=2; } Test(int x) { a=b=x; } Test(int a, int b) { this.a=a; this.b=b; } void show() { System.out.println("a value is:"+a); System.out.println("b value is:"+b); } } class COL { public static void main(String args[]) { Test t1=new Test(); t1.show(); Test t2=new Test(10); t2.show(); Test t3=new Test(15,25); t3.show(); } } Output: a value is:1 b value is:2 a value is:10 b value is:10 a value is:15 b value is:25

19.

Write a java program to calculate Factorial of a given number using Recursion concept.
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

22

import java.io.*; import java.util.*; class Factorial { int fact(int n) { int r; if(n==1) return 1; else r=fact(n-1)*n; return r; } } class Recursion { public static void main(String args[])throws IOException { Factorial f=new Factorial(); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter num to find factorial"); int x=Integer.parseInt(br.readLine()); int k=f.fact(x); System.out.println("The fatorial of"+x+"is="+k); } } Output: Enter num to find factorial 5 The fatorial of5is=120

20.

Write a program on InnerClass concept.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

23

class Outer { Inner in=new Inner(); class Inner { public void sayHello() { System.out.println("Hello"); } } } class DemoInner { public static void main(String args[]) { Outer o=new Outer(); o.in.sayHello(); } } Output: Hello

21.

Write a java program to check whether string is Palindrome or not


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

24

import java.io.*; class Polindrome { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter any string"); String x=new String(br.readLine()); StringBuffer y=new StringBuffer(x) ; StringBuffer z=y.reverse(); String s=z.toString(); if(x.compareTo(s)==0) { System.out.println("The string is polindrome"); } else { System.out.println("The string is not a polindrome"); } } } Output: Enter any string mom The string is polindrome Enter any string god The string is not a polindrome

22.

Write a java program to print given strings in alphabetical order.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

25

import java.util.*; import java.io.*; class Alpha { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int i,j; System.out.println("Enter how many no of strings to print in order "); String str=br.readLine(); int n=Integer.parseInt(str); String s[]=new String[n]; for(i=0;i<n;i++) { System.out.println("Enter the string"+(i+1)); s[i]=br.readLine(); } for(i=0;i<n;i++) for(j=0;j<n-1;j++) { if(s[j].compareTo(s[j+1])>0) { String s1=s[j]; s[j]=s[j+1]; s[j+1]=s1; } } System.out.println("Alphabetical order is"); for(i=0;i<n;i++) System.out.println(s[i]); } } Output: Enter how many no of strings to print in order 3 Enter the string1 mumbai Enter the string2 chennai Enter the string3 hyderabad Alphabetical order is chennai hyderabad mumbai

23.

Write a java program to sort from a given set of numbers.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

26

import java.io.*; class NumSort { public static void main(String args[])throws IOException { int i,j; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter how many numbers print in order: "); int m=Integer.parseInt(br.readLine()); int num[]=new int[m]; int n=num.length; System.out.println("Enter numbers:"); for(i=0;i<n;i++) { num[i]=Integer.parseInt(br.readLine()); } System.out.println("Before sorting:"); for(i=0;i<n;i++) { System.out.println(+num[i]); } System.out.println("\n"); //sort for(i=0;i<n;i++) { for(j=i+1;j<n;j++ ) { if(num[i]<num[j]) { int temp; temp=num[i]; num[i]=num[j]; num[j]=temp; } } } System.out.println("Sorted list is:"); for(i=0;i<n;i++) { System.out.println(" "+num[i]); } System.out.println("\n"); } }

Output:
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

27

Enter how many numbers print in order: 5 Enter numbers: 6 8 3 7 4 Before sorting: 6 8 3 7 4 Sorted list is: 8 7 6 4 3

24.

Write a java program on StringTokenizer class.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

28

import java.util.*; import java.lang.*; import java.io.*; class StringToken { public static void main(String args[])throws IOException { String str=new String("welcome to java lab"); StringTokenizer stz=new StringTokenizer(str); System.out.println("No.of words are:"); System.out.println(stz.countTokens()); System.out.println("Tokens are:"); while(stz.hasMoreTokens()) { System.out.println(stz.nextToken()); } int count=0; for(int i=0;i<str.length();i++) if(str.charAt(i)!=' ') count++; System.out.println("Total no of characters:"+count); } } Output: No.of words are: 4 Tokens are: welcome to java lab Total no of characters:16

25.

Write a program to add integers using StringTokenizer class.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

29

import java.io.*; import java.util.*; class AddTokens { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter numbers"); String s=br.readLine(); StringTokenizer str=new StringTokenizer(s ,"+"); int sum=0; while(str.hasMoreTokens()) { sum=sum+Integer.parseInt(str.nextToken()); } System.out.println("Addition of tokens="+sum); } } Output: Enter numbers 100+100+100 Addition of tokens=300

26.

Write a java program to display a Peramid.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

30

class Peramid { public static void main(String args[]) { int i,j,k,l; for(i=1;i<5;i++) { System.out.print(" "); for(j=1;j<5-i;j++) { System.out.print(" "); } for(k=i;k>=1;k--) { System.out.print(k); } for(l=2;l<=i;l++) { System.out.print(l); } System.out.println(); } } } Output: 1 212 32123 4321234

27.

Write a java program on Inheritence concept.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

31

interface Father { int PROP1=500000; } interface Mother { int PROP2=800000; } class Child implements Father,Mother { void property() { System.out.println("child property="+(PROP1+PROP2)); } } class MultiInher { public static void main(String args[]) { Child ch=new Child(); ch.property(); } Output: child property=1300000

28.

Write an example using StringTokenizer class.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

32

import java.io.*; import java.util.*; class DiffData { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter name,age,salary"); String s=br.readLine(); StringTokenizer str=new StringTokenizer(s,","); String s1=str.nextToken(); String s2=str.nextToken(); String s3=str.nextToken(); s1=s1.trim(); s2=s2.trim(); s3=s3.trim(); String name=s1; int age=Integer.parseInt(s2); float salary=Float.parseFloat(s3); System.out.println("name="+name); System.out.println("Age="+age); System.out.println("Salary="+salary); } } Output: enter name,age,salary puja,24,15000 name=puja Age=24 Salary=15000.0

29.

Write a java program to display Employee data.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

33

import java.io.*; class Employee { int id; String name; Employee(int i,String n) { id=i; name=n; } void displayData() { System.out.println(id+"\t"+name); } } class Group { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); Employee arr[]=new Employee[5]; for(int i=0;i<5;i++) { System.out.println("enter id"); int id=Integer.parseInt(br.readLine()); System.out.println("enter name"); String name=br.readLine(); arr[i]=new Employee(id,name); } System.out.println("Employee data"); for(int i=0;i<arr.length;i++) { arr[i].displayData(); } } }

Output:
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

34

1 enter name rani enter id 2 enter name bhavya enter id 3 enter name madhu enter id 4 enter name peethi enter id 5 enter name sonu Employee data 1 rani 2 bhavya 3 madhu 4 peethi 5 sonu

30.

Write a java program using Super keyword.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

35

import java.io.*; class A { int a; A(int a) { this.a=a; } void showA() { System.out.println("The value of a is "+a); } } class B extends A { int b; B(int a,int b) { super(a); this.b=b; } void showB() { System.out.println("The value of b is "+b); } } class SuperKey { public static void main(String args[]) { B o=new B(100,200); o.showA(); o.showB(); } } Output: The value of a is 100 The value of b is 200

31. Write a java program using Abstract class.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

36

abstract class A { abstract void call(); void callMethod() { System.out.println("This is concreate method"); } } class B extends A { void call() { System.out.println("This is implementation of class "); } } class AbstractDemo { public static void main(String args[]) { B b=new B(); b.call(); b.callMethod(); } } Output: This is implementation of class This is concreate method

32. Write a java program on creating package.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

37

//creating own package. package pack; public class Add { public int i,j; public Add(int i,int j) { this.i=i; this.j=j; } public void add() { System.out.println("Details"); System.out.println("................."); System.out.println("Additon is: "+(i+j)); } } //implementation of a package. import pack.Add; class PackExe { public static void main(String args[]) { Add a=new Add(20,45); a.add(); } } Output: >javac -d . Add.java >javac PackExe.java >java PackExe Details ................. Additon is: 65

33. Write a java program on Interface concept.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

38

interface MyInterface { public void sayHello(); } class Subclass implements MyInterface { public void sayHello() { System.out.println("hello"); } } class DemoInterface { public static void main(String args[ ]) { Subclass i=new Subclass(); i.sayHello(); } } Output: hello

34. Write a java program on Stack ADT.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

39

import java.io.*; import java.util.*; class StackDemo { public static void main(String arg[])throws IOException { Stack<Integer> st=new Stack<Integer>(); int choice=0; int position,element; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); while(choice<4) { System.out.println("STACK OPERATION"); System.out.println("1 push an element"); System.out.println("2 pop an element"); System.out.println("3 search an element"); System.out.println("4 Exit"); System.out.println("your choice:"); choice=Integer.parseInt(br.readLine()); switch(choice) { case 1: System.out.println("enter elements:"); element=Integer.parseInt(br.readLine()); st.push(element); break; case 2: Integer obj=st.pop(); System.out.println("popped="+obj); break; case 3: System.out.println("which element to search"); element=Integer.parseInt(br.readLine()); position=st.search(element); if(position==-1) System.out.println("Element not found"); else System.out.println("position"+position); break; case 4:System.exit(0); default:System.out.println("Enter right choice"); break; } System.out.println("stack contents:"+st); } } }

Output:
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

40

STACK OPERATION 1 push an element 2 pop an element 3 search an element 4 Exit your choice: 1 enter elements: 11 stack contents:[11] STACK OPERATION 1 push an element 2 pop an element 3 search an element 4 Exit your choice: 1 enter elements: 22 stack contents:[11, 22] STACK OPERATION 1 push an element 2 pop an element 3 search an element 4 Exit your choice: 3 which element to search 22 position1 stack contents:[11, 22] STACK OPERATION 1 push an element 2 pop an element 3 search an element 4 Exit your choice: 2 popped=22 stack contents:[11] STACK OPERATION 1 push an element 2 pop an element 3 search an element 4 Exit your choice: 4

35.

Write a java program on data into a file.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

41

import java.io.*; class CreateFile { public static void main(String args[])throws IOException { DataInputStream dis=new DataInputStream(System.in); FileOutputStream fout=new FileOutputStream("myfile.txt"); System.out.println("enter text & enter @ at the end"); char ch; while((ch=(char)dis.read())!='@') fout.write(ch); fout.close(); } } Output: enter text & enter @ at the end welcome to svec @

36.

Write a java program on try,catch,finally blocks.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

42

class DemoEx1 { public static void main(String args[]) { try { int a,b,c; a=Integer.parseInt(args[0]); b=Integer.parseInt(args[1]); c=a/b; System.out.println("Result is ="+c); } catch (ArithmeticException ae) { System.out.println("not enter zeros"); } catch (ArrayIndexOutOfBoundsException e) { System.out.println("enter at least 2 no's"); } catch (NumberFormatException ne) { System.out.println("enter int values"); } finally { System.out.println("This is final"); } } } Output: >javac DemoEx1.java >java DemoEx1 enter at least 2 no's This is final >java DemoEx1 12 23 Result is =0 This is final >java DemoEx1 12 3 Result is =4 This is final

37.

Write a java program to search a file.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

43

import java.io.*; class DisplayFile { public static void main(String args[])throws IOException { int i; FileInputStream fin; try { fin=new FileInputStream(args[0]); } catch(FileNotFoundException e) { System.out.println("File Not Found"); return; } do { i=fin.read(); if(i!=-1) System.out.println((char)i); } while(i!=-1); fin.close(); } } one.txt: hai hello Output: >javac DisplayFile.java >java DisplayFile one.txt h a i h e l l o

38.

Write a java program on creating own exception.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

44

class VException extends Exception { VException(String s) { super(s); } } class Voting { static void displayvote(int age)throws VException { if(age<19) throw new VException("Invalid age"); System.out.println("Candidate is eligible to vote"); } } class UserExe { public static void main(String args[]) { int age = Integer.parseInt(args[0]); try { Voting.displayvote(age); } catch(VException e) { System.out.println(e.getMessage()); } } } Output: >javac UserExe.java >java UserExe 23 Candidate is eligible to vote >java UserExe 16 Invalid age

39.

Write a java program to copy a file.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

45

import java.io.*; class DisplayFile1 { public static void main(String args[])throws IOException { int i; FileInputStream fin; FileOutputStream fout; try { fin=new FileInputStream(args[0]); } catch(FileNotFoundException e) { System.out.println("Input File Not Found"); return; } catch(ArrayIndexOutOfBoundsException e) { System.out.println("Usage:showFile"); return; } //opening o/p file try { fout=new FileOutputStream(args[1]); } catch(FileNotFoundException e) { System.out.println("Error in opening output file"); return; } catch(ArrayIndexOutOfBoundsException e) { System.out.println("Usage:copy file from to"); return; } try { do { i=fin.read(); if(i!=-1) fout.write(i); } while(i!=-1); } catch(IOException e) { System.out.println("File Error"); } fin.close(); fout.close(); } } Output:
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

46

>javac DisplayFile1.java >java DisplayFile1 one.txt two.txt >type two.txt hai hello

40.

Write a java program on creating a Thread.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

47

class MyThread extends Thread { public void run() { try { for(int i=1;i<=10;i++) { System.out.println("Hello"+i); Thread.sleep(1000); } } catch(InterruptedException e) { System.out.println("Done"); } } } class DemoThread { public static void main(String args[]) { MyThread t=new MyThread(); t.start(); } } Output: Hello1 Hello2 Hello3 Hello4 Hello5 Hello6 Hello7 Hello8 Hello9 Hello10

41.

Write a java program on creating a thread using Runnable interface.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

48

class MyThread implements Runnable { public void run() { try { for(int i=1;i<=10;i++) { System.out.println("Hello"+i); Thread.sleep(1000); } } catch(InterruptedException e) { System.out.println("Done"); } } } class DemoRunnable { public static void main(String args[]) { MyThread obj=new MyThread(); Thread t=new Thread(obj); t.start(); } } Output: Hello1 Hello2 Hello3 Hello4 Hello5 Hello6 Hello7 Hello8 Hello9 Hello10

42.

Write an example program for multithreading using Thread class.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

49

class MyThread1 extends Thread { public void run() { try { for(int i=0;i<=5;i++) { System.out.println(i); Thread.sleep(1000); }} catch(Exception e) { System.out.println("Done"); }}} class MyThread2 extends Thread { public void run() { try { for(int i=5;i<=10;i++) { System.out.println(i); Thread.sleep(1000); }} catch(Exception e) { System.out.println("Done"); }}} class DemoThread1 { public static void main(String args[]) { MyThread1 obj1=new MyThread1(); MyThread2 obj2=new MyThread2(); obj1.start(); obj2.start(); } } Output: 0 5 1 6 2 7 8 3 4 9 10 5 43. Write an example program for multithreading using Runnable Interface.
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

50

class MyThread1 extends Thread { public void run() { try { for(int i=0;i<=5;i++) { System.out.println("Thread1:"+i); Thread.sleep(1000); }} catch(Exception e) { System.out.println("Done"); }}} class MyThread2 extends Thread { public void run() { try { for(int i=5;i<=10;i++) { System.out.println("Thread2:"+i); Thread.sleep(1000); }} catch(Exception e) { System.out.println("Done"); }}} class DemoRunnable1 { public static void main(String args[]) { MyThread1 obj1=new MyThread1(); MyThread2 obj2=new MyThread2(); Thread t1=new Thread(obj1); Thread t2=new Thread(obj2); t1.start(); t2.start(); } } Output: Thread1:0 Thread2:5 Thread1:1 Thread2:6 Thread2:7 Thread1:2 Thread2:8 Thread1:3 Thread1:4 Thread2:9 Thread1:5 Thread2:10 Write a java program on ThreadGroup
SVEC, Suryapet

44.

OOPS Lab through JAVA, CSE & CSIT Depts.

51

class ThreadGroupPro { public static void main(String args[]) { ThreadGroup tg=new ThreadGroup("subgroup1"); Thread t1=new Thread(tg,"Thread1"); Thread t2=new Thread(tg,"Thread2"); Thread t3=new Thread(tg,"Thread3"); tg=new ThreadGroup("subgroup2"); Thread t4=new Thread(tg,"Thread4"); Thread t5=new Thread(tg,"Thread5"); tg=Thread.currentThread().getThreadGroup(); int age=tg.activeGroupCount(); System.out.println("No.of sub groups="+age); System.out.println("Groups are"); tg.list(); } } Output: No.of sub groups=2 Groups are java.lang.ThreadGroup[name=main,maxpri=10] Thread[main,5,main] java.lang.ThreadGroup[name=subgroup1,maxpri=10] java.lang.ThreadGroup[name=subgroup2,maxpri=10]

45.

Write a Java program to draw different shapes using applets


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

52

LinRect.java: import java.applet.*; import java.awt.*; public class LinRect extends Applet { public void paint(Graphics g) { g.drawLine(100,100,500,500); g.drawRect(10,60,40,30); g.fillRect(60,10,30,80); g.drawRoundRect(10,100,80,50,10,10); g.drawLine(100,10,230,140); g.drawLine(100,140,230,10); } } LinRect.html: <APPLET CODE=LinRect.class WIDTH=1000 HEIGHT=800> </APPLET> Output: >javac LinRect.java >appletviewer LinRect.html

46.

Write a java program to pass parameters to applets.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

53

HelloParam.java: import java.awt.*; import java.applet.*; public class HelloParam extends Applet { String str,n,x; public void init() { str=getParameter("s"); n=getParameter("num"); } public void paint(Graphics g) { g.drawString("Name is"+str,10,20); g.drawString("Number is"+n,10,50); } } HelloParam.html: <APPLET CODE="HelloParam.class" WIDTH=400 HEIGHT=300> <Param name=s value="mech"> <Param name=num value=555> </APPLET> Output: >javac HelloParam.java >appletviewer HelloParam.html

47.

Write a java program to get values at runtime by using the applets.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

54

UserIn.java: import java.awt.*; import java.applet.*; import java.awt.event.*; public class UserIn extends Applet { TextField text1,text2; public void init() { setBackground(Color.black); setForeground(Color.red); text1=new TextField(8); text2=new TextField(8); add(text1); add(text2); text1.setText("0"); text2.setText("0"); } public void paint(Graphics g) { int x=0,y=0,z=0; String s1,s2,s; g.drawString("Enter no in each box",10,50); try { s1=text1.getText(); x=Integer.parseInt(s1); s2=text2.getText(); y=Integer.parseInt(s2); } catch(Exception e) { System.out.println(e); } z=x+y; s=String.valueOf(z); g.drawString("The sum is",10,75); g.drawString(s,150,75); } public boolean action(Event ent,Object obj) { repaint(); return true; } } UserIn.html: <APPLET CODE="UserIn.class" WIDTH=400 HEIGHT=300> </APPLET>

Output:
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

55

>javac UserIn.java >appletviewer UserIn.html

48.

Write a java program to add all components to the container.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

56

ControlDemo.java: import java.awt.*; import java.applet.*; public class ControlDemo extends Applet { public void init() { setLayout(new FlowLayout(FlowLayout.LEFT,20,20)); TextField tf=new TextField("TypeHere",20); TextArea ta=new TextArea(3,4); add(tf); add(ta); setForeground(Color.red); Label l=new Label("This is mech"); add(l); Button b=new Button("Login"); add(b); Choice c=new Choice(); c.add(" "); c.add("Graduate"); c.add("Postgraduate"); add(c); List lt=new List(4,true); lt.add(" "); lt.add("INDIA"); lt.add("USA"); add(lt); Checkbox ck=new Checkbox("Cinema"); CheckboxGroup ckg=new CheckboxGroup(); add(ck); Checkbox rb1=new Checkbox("Female",true,ckg); add(rb1); Checkbox rb2=new Checkbox("Male",false,ckg); add(rb2); Scrollbar s=new Scrollbar(Scrollbar.HORIZONTAL,0,10,0,255); add(s); } } ControlDemo.html: <APPLET CODE=ControlDemo.class WIDTH=400 HEIGHT=200> </APPLET>

Output:
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

57

>javac ControlDemo.java >appletviewer ControlDemo.html

49.

Write a java to create login window user by AWT.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

58

import java.awt.*; import java.io.*; class MyWindow3 extends Frame { MyWindow3() { setSize(200,200); setLayout(new FlowLayout()); setTitle("Login screen"); Label l1=new Label("username"); Label l2=new Label("passward"); TextField tf1=new TextField(10); TextField tf2=new TextField(10); Button b=new Button("login"); tf2.setEchoChar('*'); add(l1); add(tf1); add(l2); add(tf2); add(b); setVisible(true); } } class LoginWindow { public static void main(String args[ ]) { MyWindow3 mw=new MyWindow3(); } } Output: >javac LoginWindow.java >java LoginWindow

50.

Write a java program for FlowLayout.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

59

import java.awt.*; class DemoFlowLayout extends Frame { public DemoFlowLayout() { setLayout(new FlowLayout()); for(int i=1;i<=20;i++) { Button b=new Button(String.valueOf(i)); add(b); } setSize(100,200); setVisible(true); } public static void main(String args[]) { DemoFlowLayout df=new DemoFlowLayout(); } } Output: >javac DemoFlowLayout.java >java DemoFlowLayout

51.

Write a java program for GridLayout.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

60

import java.awt.*; import java.applet.*; class DemoGridLayout extends Frame { public DemoGridLayout() { setLayout(new GridLayout(5,4)); for(int i=1;i<=20;i++) { Button b=new Button(String.valueOf(i)); add(b); } setSize(100,200); setVisible(true); } public static void main(String args[]) { DemoGridLayout dg=new DemoGridLayout(); } } Output: >javac DemoGridLayout.java >java DemoGridLayout

52.

Write a java program for BorderLayout.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

61

import java.awt.*; import java.applet.*; import java.awt.event.*; class DemoBoarder extends Frame { Button b1,b2,b3,b4,b5; public DemoBoarder() { setLayout(new BorderLayout()); b1=new Button("one"); b2=new Button("two"); b3=new Button("three"); b4=new Button("four"); b5=new Button("five"); add(b1,"East"); add(b2,"West"); add(b3,"North"); add(b4,"South"); add(b5,"Center"); setSize(300,300); setVisible(true); } public static void main(String args[]) { DemoBoarder db=new DemoBoarder(); } } Output: >javac DemoBoarder.java >java DemoBoarder

53.

Write a java program for CardLayout.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

62

CardLayoutDemo.java: import java.awt.*; import java.applet.*; import java.awt.event.*; public class CardLayoutDemo extends Applet implements ActionListener { CardLayout cl; Panel p; public void init() { p=new Panel(); add(p); cl=new CardLayout(); p.setLayout(cl); initialisation(); } void initialisation() { Button b1=new Button("Button1"); Button b2=new Button("Button2"); Button b3=new Button("Button3"); b1.addActionListener(this); b2.addActionListener(this); b3.addActionListener(this); p.add(b1,"Button1"); p.add(b2,"Button2"); p.add(b3,"Button3"); } public void actionPerformed(ActionEvent e) { cl.next(p); } } CardLayoutDemo.html: <APPLET CODE=CardLayoutDemo.class WIDTH=400 HEIGHT=200> </APPLET>

Output:
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

63

>javac CardLayoutDemo.java >appletviewer CardLayoutDemo.html

54.

Write a java program using HashSet method.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

64

import java.util.*; class HS { public static void main(String args[]) { HashSet<String> hs=new HashSet<String>(); hs.add("india"); hs.add("us"); hs.add("uk"); hs.add("japan"); System.out.println("HashSet ="+hs); Iterator it=hs.iterator(); System.out.println("elements using iterator"); while(it.hasNext()) { String s=(String)it.next(); System.out.println(s); } } } Output: >javac HS.java >java HS HashSet =[uk, japan, us, india] elements using iterator uk japan us india

55.

Write a java program on Server and Client


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

65

Server1.java: import java.io.*; import java.net.*; class Server1 { public static void main(String args[]) throws Exception { ServerSocket ss=new ServerSocket(777); Socket s=ss.accept(); System.out.println("connection establisted"); OutputStream obj=s.getOutputStream(); PrintStream ps=new PrintStream(obj); String str="Hello client"; ps.println(str); ps.println("Good Bye"); ps.close(); ss.close(); s.close(); } } Client1.java: import java.io.*; import java.net.*; class Client1 { public static void main(String args[]) throws Exception { Socket s=new Socket("localhost",777); InputStream obj=s.getInputStream(); BufferedReader br=new BufferedReader(new InputStreamReader(obj)); String str; while((str=br.readLine())!=null) System.out.println("from Server1:"+str); br.close(); s.close(); } }

Output:
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

66

From Server: >javac Server1.java >java Server1 connection establisted From Client: >javac Client1.java >java Client1 from Server1:Hello client from Server1:Good Bye

56.

Write a java program on chat between Server and Client.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

67

Server2.java: import java.io.*; import java.net.*; class Server2 { public static void main(String args[]) throws Exception { ServerSocket ss=new ServerSocket(777); Socket s=ss.accept(); System.out.println("...........connection establisted.............."); PrintStream ps=new PrintStream(s.getOutputStream()); BufferedReader br=new BufferedReader(new InputStreamReader(s.getInputStream())); BufferedReader kb=new BufferedReader(new InputStreamReader(System.in)); while(true) { String str1,str; while((str=br.readLine())!=null) { System.out.println(str); str1=kb.readLine(); ps.println(str1); } ps.close(); ss.close(); s.close(); br.close(); kb.close(); System.exit(0); } } } Client2.java: import java.io.*; import java.net.*; class Client2 { public static void main(String args[]) throws Exception { Socket s=new Socket("localhost",777); DataOutputStream dos=new DataOutputStream(s.getOutputStream()); BufferedReader br=new BufferedReader(new InputStreamReader(s.getInputStream())); BufferedReader kb=new BufferedReader(new InputStreamReader(System.in)); String str,str1; while(!(str=kb.readLine()).equals("exit")) { dos.writeBytes(str+"\n"); str1=br.readLine(); System.out.println(str1); } s.close(); dos.close(); br.close(); kb.close(); }} Output:
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

68

From Server: >javac Server2.java >java Server2 ...........connection establisted.............. hello hai how r u iam fine bye. From Client: >javac Client2.java >java Client2 hello hai how r u iam fine bye.

57.

Write a java program on Canvas.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

69

CanvasDemo.java: import java .awt.*; import java.applet.*; public class CanvasDemo extends Applet { public void init() { setBackground(Color.red); CanvasExe ce=new CanvasExe(); ce.setSize(200,200); ce.setBackground(Color.blue); ce.setVisible(true); add(ce); } class CanvasExe extends Canvas { public void paint(Graphics g) { setForeground(Color.green); g.fillOval(30,0,80,80); g.drawString("Hello",50,100); } } } CanvasDemo.html: <APPLET CODE=CanvasDemo.class WIDTH=300 HEIGHT=300> </APPLET>

Output:
SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

70

>javac CanvasDemo.java >appletviewer Canvas.html

58.

Write a java program for EventHandling.


SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

71

import java.awt.*; import java.awt.event.*; class Mywindow extends Frame implements ActionListener { Button b; public Mywindow() { super("DemoEvents"); setLayout(null); b=new Button("Exit"); b.setBounds(150,200,100,300); add(b); b.addActionListener(this); } public void actionPerformed(ActionEvent e) { System.exit(0); } } class DemoEvent { public static void main(String args[]) { Mywindow f=new Mywindow(); f.setSize(200,200); f.setVisible(true); } } Output: >javac DemoEvent.java >java DemoEvent

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

72

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

73

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

74

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

75

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

76

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

77

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

78

SVEC, Suryapet

OOPS Lab through JAVA, CSE & CSIT Depts.

79

SVEC, Suryapet

You might also like