Java Tutorial
- Runtime
- java 21.0.12
- Files
- 60 files · 24 KB
- Runs
- 50 runs
- Published
package sessionSix;import java.util.Scanner;public class TakingInput { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("What is your name : "); String name = sc.next(); System.out.println("Hello " + name + "!"); String text = sc.nextLine(); String firstWord = sc.next(); int a = sc.nextInt(); long b = sc.nextLong }}