//this is my program to reverse the case of characters i.e. lower case to upper case and uppercase to lowercase in a string what is the error plz tell me
import java.util.*;
public class tnaminatina
{
public void check()
{String a="",b="";
Scanner sc=new Scanner(System.in);
System.out.println("enter sentence");
String s=sc.next();
System.out.println("enter sentence");
String g=sc.next();
System.out.println("enter sentence");
String d=sc.next();
a=s.concat(g);
b=a.concat(d);
System.out.println(b);
b=b.toUpperCase();
System.out.println(b);
b=b.trim();
for(int i=0;i96&&b.charAt(i)<=122)
c=(char)b.charAt(i)+32;
else
if(b.charAt(i)>64&&b.charAt(i)<=90)
c=(char)b.charAt(i)-32;
}
System.out.println(b);
}
} |
|
| asked by Adithya Kannan (adiketh198) 10 years ago | |
1 | |
Other Questions on This Topic
Chhod aaye the kinara kabhi apni talash mein, Par dil ki gehrayi se ek aisi aawaz aayi, Ki lautna pada hamein isi mod ki talash mein. |
|
| asked by Nisarg Bhavsar (nisarg71) 113 days ago | |
2 | |
Bengali grammar icse question paper can I get? |
|
| asked by Debosmita Malik (debosmitamalik) 167 days ago | |
1 | |
I wish to download question papers for ICSE prelims and I cannot do that. Can you provide the details of the Customer support for Respaper to get in touch with regarding the issue mentioned above. |
|
| asked by S.Hemalata Rajaram (hema1877) 270 days ago | |
1 | |

