File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes need answer immediatly... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "need answer immediatly..." Watch "need answer immediatly..." New topic

need answer immediatly...

Preethi Dev
Ranch Hand

Joined: Sep 07, 2008
Posts: 265
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>();
Collections. ---------(----- ,-------. --------());
String[] st=ts.toArray(new String[]{"C","B","A"});
for(String s: st)
System.out.println(s+ " ,");


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

i need this answer urgently.

[ December 28, 2008: Message edited by: Preetha Arun ]
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3011

Preetha, you should Ease Up, use a meaningful subject line and use code tags.

You can fill the slots as following:

Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
Preethi Dev
Ranch Hand

Joined: Sep 07, 2008
Posts: 265
sorry Devaka i am in exam hurry. thanks for your answer

I agree. Here's the link:
subject: need answer immediatly...
Similar Threads
Natural ordering of strings and numbers
how comparator works
Using a Comparator in Collections
Clarifications/Suggestions in Java