"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
What are the different types of collections views being provided by the map interface? : java collections
What are the considerations to be made in case of loops in java ?
What is the Spring2.5 MVC Navigation flow?
What are the types of interface used in the java collections? : java collections
What are the interfaces in java collections? : java collections
my interviewer asked me what technical specification you used how to answer that question
What is iterator in the java collections framework? : java collections
can u draw class/object diagram for ATM
Should we create system software ( e.g operating system ) in java ?
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 queues in the java collection framework? : java collections
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
What are the differences between the java collection and the java list? : java collections
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 is the enumerator of the java collection framework? : java collections