"Sun Certified Java Programmer" This is one String , we need
to print SCJP, write the java code dynamically? pls reply
this questions
Answer Posted / sreekanth madamanchi
public class Sample {
public static void main(String args[]) {
String str = "Sun Certified Java Programmer";
String str2 = null;
for(int i=0;i<str.length();i++)
{
char c = str.charAt(i);
if(Character.isUpperCase(c))
{
if(str2 == null || str2 == "")
str2 = ""+str.charAt(i);
else
str2 = str2+str.charAt(i);
}
}
System.out.println("Result="+str2);
}
}
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?
What are the types of the main implementing classes in the map interfaces? : java collections
What are the types of interface used in the java collections? : java collections
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
What are the interfaces in java collections? : java collections
What is the Spring2.5 MVC Navigation flow?
What are the differences between the java collection and the java list? : java collections
What is the use of hashcode in java ?
What are the queues in the java collection framework? : java collections
What are the main classes of the list interfaces? : java collections
can u draw class/object diagram for ATM
Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.
What do you understand by synchronization? Why is it important?
Which sorting algorithm is used by collections.sort() in java ?
What is the enumerator of the java collection framework? : java collections