"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
HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
please mail me the interview question based on java/j2ee
What are the considerations to be made in case of loops in java ?
What are the classes in the java collection framework? : java collections
What are the uses of the set interfaces in the java collections? : java collections
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
What are maps interfaces in the java collections? : java collections
What is the difference between comparable and comparator in java.util pkg?
What is an algorithm in java collection framework? : java collections
can u draw class/object diagram for ATM
What are the different types of ways where you can iterate over a list? : java collections
What are the interfaces in java collections? : java collections
How do I find jre path in windows?
Should we create system software ( e.g operating system ) in java ?