WAP to convert the alternate characters of the string to upper case . The first letter of the string has to be Capital. I/P:We are the worlD O/P: We ArE tHe WoRlD
public static void main(String[] args) { // TODO Auto-generated method stub
String s="We are the worLD"; System.out.println(s); int j=0; String otherstring=null; int length=s.length(); for (int i=0;i
}