This Program simply determines any position of the input string by the user through input stream along with all the system properties of the console.
import java.io.*;
class CharAtProp{
public static void main(String[] args){
try{
BufferedReader object=new BufferedReader(new InputStreamReader (System.in));//syntax for user input through input stream
System.out.println("Enter the String");//shows message for user input
String s=object.readLine();//reads the input
int len=s.length();//stores the length of the input
System.out.println(len);
char char1=s.charAt(4);//parameter can be changed to get value of any position
System.out.println(char1);
System.getProperties().list(System.out);//lists all the system properties to the output stream
}
catch(Exception e){//handles exception
System.out.println("Error handled");
}
}
}