casting input to a string java code example
Example: string to int java
String number = "10";
int result = Integer.parseInt(number);
System.out.println(result);
Copy
String number = "10";
int result = Integer.parseInt(number);
System.out.println(result);
Copy