• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need answer immediatly...

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 7134
1360
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry Devaka i am in exam hurry. thanks for your answer

Thanks
Preetha
 
reply
    Bookmark Topic Watch Topic
  • New Topic