-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay1
More file actions
32 lines (23 loc) · 778 Bytes
/
Day1
File metadata and controls
32 lines (23 loc) · 778 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
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
int i = 4;
double d = 4.0;
String s = "HackerRank ";
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
double b = scan.nextDouble();
String c = scan.next();
c += scan.nextLine();
/* Read and save an integer, double, and String to your variables.*/
// Note: If you have trouble reading the entire String, please go back and review the Tutorial closely.
System.out.println(i + a);
System.out.println(d + b);
System.out.println(s + c);
scan.close();
}
}