Refactored solutions

This commit is contained in:
rshaghoulian
2017-02-04 02:41:59 -08:00
parent c6f7afe604
commit 592dc1c71b
13 changed files with 100 additions and 102 deletions
@@ -1,14 +1,16 @@
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
/* Read input */
Scanner scan = new Scanner(System.in);
int i = scan.nextInt();
int i = scan.nextInt();
double d = scan.nextDouble();
scan.nextLine(); // gets rid of the pesky newline
scan.nextLine(); // gets rid of the pesky newline
String s = scan.nextLine();
scan.close();
/* Print output */
System.out.println("String: " + s);
System.out.println("Double: " + d);
System.out.println("Int: " + i);