This document contains questions about various Java collection classes and file operations. It asks about creating a set and inserting strings in random order then printing sorted, implementing a HashSet and ArrayList, deleting a file, and performing various methods like delete, append, insert, reverse, and deleteCharAt on a StringBuffer object.
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 ratings0% found this document useful (0 votes)
17 views1 page
Print Them in Sorted Order?
This document contains questions about various Java collection classes and file operations. It asks about creating a set and inserting strings in random order then printing sorted, implementing a HashSet and ArrayList, deleting a file, and performing various methods like delete, append, insert, reverse, and deleteCharAt on a StringBuffer object.
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/ 1
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 contentsNational 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);