java read string input
import java.util.Scanner;
public class YourClass {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String inputString = scanner.nextLine();
System.out.println("Your string: " + inputString);
}
}
Also in Java:
- java scanner
- deleting elements of an array in java
- java append to array
- how to get witdth of window android
- non primitive data types in java
- keep jframe on top
- how to check if a string contains only alphabets and space in java
- android java convert double to 2 decimal places
- action on long press of edit edittext
- 2 decimal places print format JAVA
- java print type of object
- java type casting
- loop and save letters in a string java
- reentrantreadwritelock java
- java insert into arraylist
- spigot get player from UUID
- expression régulière seulement un espace java
- multiple string java
- spigot kill entity
- how to use lambda in java
- how to break two loop in java
- select photo from camera android
- bukkit java get max players
- java nested loop