Java program String object member function access - switch case int
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class SwitchCase3 { public static void main(String[] args) throws IOException { InputStreamReader dis = new InputStreamReader ( System.in ); BufferedReader br = new BufferedReader(dis); System.out.println( "String functions menun" ); String menustr= "0- Reverse 1- UpperCase 2- LowerCase 3- Length " ; System.out.println(menustr); System.out.println( "nEnter string" ); String inpstr =br.readLine(); System.out.println( "Enter course choice" ); String choice =br.readLine(); int cs = Integer.parseInt(choice); switch ( cs ) { case 0: StringBuffer sbuf= new StringBuffer(inpstr); String rev =sbuf.reverse().toString(); System.out.println( "ans :" + rev); break ;...