File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need answer immediatly...

 
Preethi Dev
Ranch Hand
Posts: 265
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,i got it from devaka's final exam

import java.util.*;
class colclass
{
public static void main(String args[])
{
List<? super String> ts=new ArrayList<String>();
{
ts.add("Java");
ts.add("startOffice");
ts.add("Jsp");
ts.add("Applets");
Collections. ---------(----- ,-------. --------());
String[] st=ts.toArray(new String[]{"C","B","A"});
for(String s: st)
{
System.out.println(s+ " ,");
}
}
}
}

output:StarOffice,Jsp,Java,Applets

How can we achieve this? it's a drag and drop question.

i need this answer urgently.

Thanks
preetha
[ December 28, 2008: Message edited by: Preetha Arun ]
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4116
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Preetha, you should Ease Up, use a meaningful subject line and use code tags.

You can fill the slots as following:
 
Preethi Dev
Ranch Hand
Posts: 265
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry Devaka i am in exam hurry. thanks for your answer

Thanks
Preetha
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic