Professional Documents
Culture Documents
1.WAP to create to accept a string from the user then count the total number of character present
PS D:\Java\stringsprob>
2. WAP to declare a suitable variable to assign “james-gosLING” and capitalise the 1st character
and rest in lower case, then finally print the output with suitable message.
public class casechange {
public static void main(String[] args) {
String str1="james-gosLING";
StringBuffer newStr=new StringBuffer(str1);