"Sun Certified Java Programmer" This is one String , we need
to print SCJP, write the java code dynamically? pls reply
this questions

Answer Posted / rakesh kumar mishra

public class Sample
{
public static void main(String args[])
{
String str = "Sun Certified Java Programmer";
StringTokenizer st=new StringTokenizer(str," ");
while(st.hasMoreTokens())
{
String value=st.nextToken();
System.out.println(value.charAt(0));
}
}
}

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the considerations to be made in case of loops in java ?

568


What are the uses of the set interfaces in the java collections? : java collections

539


What is the Spring2.5 MVC Navigation flow?

5373


What are the different types of features of the java collections framework? : java collections

574


Should we create system software ( e.g operating system ) in java ?

578






Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2538


Which interface does java.util.hashtable implement?

675


Which sorting algorithm is used by collections.sort() in java ?

549


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

560


What is the use of hashcode in java ?

577


What are the main classes of the list interfaces? : java collections

576


What is the enumerator of the java collection framework? : java collections

565


What are maps interfaces in the java collections? : java collections

573


What are the different types of collections views being provided by the map interface? : java collections

615


What are the different types of classes implemented in the set interfaces? : java collections

610