java beginner

Commands to enter on the screen

This time I will use Scanner. Write this line on the first line import java.util.Scanner;

Prepare in main. Scanner sc = new Scanner(System.in);

Receive the input where you want it and assign it to a variable. int x = sc.nextInt (); // If you want to take an integer String s = sc.next (); // If you want to take a string

Recommended Posts

java beginner 4
java beginner 3
java beginner
Java Beginner Exercises
Java Exercise "Beginner"
Java
Java
Progate Java (Beginner) Review & Summary
Java starting from beginner, override
Java, instance starting from beginner
Java starting from beginner, inheritance
[Beginner] Java basic "array" description
Java learning (0)
Studying Java ―― 3
[Java] array
Java protected
[Java] Annotation
[Java] Module
Studying Java ―― 9
Java scratch scratch
Java tips, tips
Java methods
Differences between "beginner" Java and Kotlin
Java method
java (constructor)
Java array
[Java] ArrayDeque
Solve AtCoder Beginner Contest 150 in java
java (override)
java (method)
Java Day 2018
Java string
java (array)
Java static
Java serialization
JAVA paid
Studying Java ―― 4
Java (set)
java shellsort
[Java] compareTo
Studying Java -5
Solve AtCoder Beginner Contest 153 in java
java reflexes
java (interface)
Java memorandum
Java array
Studying Java ―― 1
[Java] Array
[Java] Polymorphism
Studying Java # 0
Java review
java framework
Java features
[Java] Inheritance
FastScanner Java
Java features
Java memo
java (encapsulation)
[Java] Overload
Decompile Java
[Java beginner] == operator and equals method