Java Programming: Experiment 2 (codes)

click to download SE IT/ Sem 3/ Rev 2016/ Java Programming/ Experiment 2 (codes) (7z file)

i) Write a java program to demonstrate Constructors, Parameterized Constructors and Constructor Overloading
ii) Write a java program to demonstrate Command Line Arguments
iii) Write a java program to demonstrate String Functions
iv) Write a java program to demonstrate Array and Vectors operations
v) Write a java programs to add n strings in a vector array. Input new string and check whether it is present in the vector. If it is present delete it otherwise add it to the vector.
vi) Write a java programs to test whether the given element is present in the vector
array.
vii) Write a java programs to find frequency of a element in the given Vector array.
viii) Write a java programs to add n strings in a vector array. Input new string and check whether it is present in the vector. If it is present delete it otherwise add it to the vector.
ix) Write menu driven program to implement recursive functions for following tasks.
a) To find GCD and LCM b) To find X Y
c) To print n Fibonacci numbers d) To find reverse of number
e) To 1+2+3+4+……..+(n-1)+n
x) Write the Menu driven program to perform
a) Addition of two matrices of order m*n and p*q
b) Multiplication of two matrices of order m*n and p*q
c) Transpose of matrix of order m*n
d) addition of diagonal and non-diagonal elements

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s