Files

23 lines
656 B
Java
Raw Permalink Normal View History

2017-02-12 00:31:12 -08:00
// Author: Rodney Shaghoulian
2018-07-27 16:45:56 -07:00
// Github: github.com/RodneyShag
// HackerRank: hackerrank.com/RodneyShag
2017-02-12 00:31:12 -08:00
2017-02-03 22:41:39 -08:00
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
2017-02-04 02:41:59 -08:00
/* Read input */
2017-02-03 22:41:39 -08:00
Scanner scan = new Scanner(System.in);
2017-02-04 02:41:59 -08:00
int i = scan.nextInt();
2017-02-03 22:41:39 -08:00
double d = scan.nextDouble();
2017-02-04 02:41:59 -08:00
scan.nextLine(); // gets rid of the pesky newline
2017-02-03 22:41:39 -08:00
String s = scan.nextLine();
2017-02-04 02:41:59 -08:00
scan.close();
/* Print output */
2017-02-03 22:41:39 -08:00
System.out.println("String: " + s);
System.out.println("Double: " + d);
System.out.println("Int: " + i);
}
}