-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJ3.java
More file actions
37 lines (32 loc) · 1005 Bytes
/
Copy pathJ3.java
File metadata and controls
37 lines (32 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
> Date Created: 18/04/2026
> Author: Ishaan Rastogi
> Purpose: To showcase input of different datatypes
> Operating System: This is only for Windows OS, it may or may not work on other OS
> Program Status: 100% Working
*/
import java.util.*;
// import java.math.*;
public class J3 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter a number: ");
/*
* int n = sc.nextInt();
* boolean T = sc.nextBoolean();
* float f = sc.nextFloat();
* double d = sc.nextDouble();
* long l = sc.nextLong();
* short s = sc.nextShort();
* byte b = sc.nextByte();
* char c = sc.next().charAt(0);
*/
// Math Package
/*
* BigInteger i = sc.nextBigInteger();
* BigDecimal bd = sc.nextBigDecimal();
* boolean BICheck = sc.hasNextBigInteger();
* boolean BDCheck = sc.hasNextBigDecimal();
*/
}
}