-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgramsPractice.java
More file actions
56 lines (46 loc) · 1.3 KB
/
ProgramsPractice.java
File metadata and controls
56 lines (46 loc) · 1.3 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import java.math.BigDecimal;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
public class ProgramsPractice {
public static void main(String[] args) {
}
private void girlCountFingers() {
int a = 0;
System.out.println("Please enter the number");
Scanner scanner = new Scanner(System.in);
a = scanner.nextInt();
switch (a % 10) {
case 1:
System.out.println("Thumb");
break;
case 2:
System.out.println("Index");
break;
case 3:
System.out.println("Middle");
break;
case 4:
System.out.println("Ring");
break;
case 5:
System.out.println("Little");
break;
case 6:
System.out.println("Thumb");
break;
case 7:
System.out.println("Index");
break;
case 8:
System.out.println("Middle");
break;
case 9:
System.out.println("Ring");
break;
case 0:
System.out.println("Little");
break;
}
}
}