Upload
arif-mohmmad
View
1
Download
0
Embed Size (px)
DESCRIPTION
Java Exercise 4
Citation preview
Ques1. Create any collection and insert 5 strings through command line in a random order and
print them in sorted order?
Ques1.Write a Program to show implementation of Set Collection.
Ques2.Write a Program to show implementation of Hash set.
Ques3. Write a Program to show implementation of Array list.
Ques1. Write a program to delete “Data.text” file from hard disk.
Ques4. Write a Program to append a file.
Ques2. Create a stringbuffer class object with contents”National Institute of Sciences & Technology” and apply the following methods of its own class:
Delete(5,15);
Append(52);
Insert(4,”DD”);
Reverse();
deleteCharAt(length()-2);