"Sun Certified Java Programmer" This is one String , we need
to print SCJP, write the java code dynamically? pls reply
this questions
Answer Posted / dhinesh manthiram
class Krish {
public static void main(String args[]) {
String str = "Sun Certified Java Programmer";
String str2="";
for(int i=0;i<str.length();i++)
{
char c = str.charAt(i);
if(Character.isUpperCase(c))
{
str2 = str2+c;
}
}
System.out.println("Result="+str2);
}}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are maps interfaces in the java collections? : java collections
What are the main classes of the list interfaces? : java collections
Should we create system software ( e.g operating system ) in java ?
What is the use of hashcode in java ?
What is the difference between comparable and comparator in java.util pkg?
How do I find jre path in windows?
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 queues in the java collection framework? : java collections
What are the interfaces in java collections? : java collections
What are the types of interface used in the java collections? : java collections
Which interface does java.util.hashtable implement?
What is java collection? : java collections
What are the uses of the set interfaces in the java collections? : java collections
What are the considerations to be made in case of loops in java ?
please mail me the interview question based on java/j2ee