![Free-eBooks.net](/resources/img/logo-nfe.png)
![All New Design](/resources/img/allnew.png)
// Program to input a string and print the length of the string
// In uppercase, in lowercase and in reverse.
class stringisc
{
public static void inputstring(String name)
{
System.out.println("The entered string is "+name);
int len,words=0;
len=name.length();
System.out.println("The length of the string entered is "+len);
System.out.println("The string in reverse is ");
for(int i=len-1;i>=0;i--)
System.out.print(name.charAt(i));
// Printing the string in lower case
System.out.println("The name in lowercase is ");
System.out.print(name.toLowerCase());
System.out.println("The name in uppercase is ");
System.out.print(name.toUpperCase());
}
}