Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to scan as a letter in java

Scanner scanner = new Scanner(System.in);
String str = scanner.next();
char ch = str.charAt(0);
Comment

PREVIOUS NEXT
Code Example
Java :: insertion sort in java 
Java :: how to add a list in a list java 
Java :: java end scripting 
Java :: HttpContext.GetOwinContext().Authentication.SignOut 
Java :: how to add string to array in java 
Java :: java vector push_back 
Java :: apache commons collections android dependency 
Java :: default parameters in java 
Java :: java list to array 
Java :: greater than sign in java 
Java :: java swing windows 10 look and feel 
Java :: download File java from website 
Java :: how to create a constructor in java 
Java :: Error: Could not find or load main class javafx.controls,javafx.fxml Caused by: java.lang.ClassNotFoundException: javafx.controls,javafx.fxml 
Java :: java stream and filter 
Java :: imageview.setbackground 
Java :: java base64 to file 
Java :: Conversion from Java List to Array 
Java :: java sort arraylist of arraylist 
Java :: Create class from string variable JAVA 
Java :: how to create folder java 
Java :: Java ArrayList Class of Collections 
Java :: how to check if a person presses a button in jframe in java 
Java :: valueof in java 
Java :: Random Float in java 
Java :: online java code fixer 
Java :: prime numbers program in java 
Java :: sorting collections with comparator java 
Java :: reverse loop in java 
Java :: Java How to use List? 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =