print int in java
import java.util.Scanner;
public class HelloWorld {
public static void main(String[] args) {
// Creates a reader instance which takes
// input from standard input - keyboard
Scanner reader = new Scanner(System.in);
System.out.print("Enter a number: ");
// nextInt() reads the next integer from the keyboard
int number = reader.nextInt();
// println() prints the following line to the output screen
System.out.println("You entered: " + number);
}
}
Also in Java:
- stack overflow recyclerview
- java get icon for file type
- raspberry stackexchange how to install the java jdk
- get spring application context
- how to replace all of one character with nothing in java
- string array in java methods
- money value commas java
- java loop
- java final modifier on method
- create color object java
- how to count the number of occurrences of an element in a arraylist in java
- iterator loop java
- dicom read with java
- left shift in java
- java break in foreach
- icon label java
- java 8 group a collections by 2 property
- java localdate subtract two dates
- javafx action event enter key
- java stream filter
- java get location of jar file
- imageview.setbackground
- string length in java
- faire un timer en java