Go to diff to previous submission
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package mosquito; import java.util.LinkedList; import java.util.List; import java.util.Scanner; /** * * @author student */ public class Mosquito { /** * @param args the command line arguments */ List<Integer> result = new LinkedList<Integer>(); int pom, m, p, l, e, r, s, n; while (!"".equals(res)){ for (int i = 0; i < n; i++) { pom = m; l = pom*e; } res = sc.nextLine(); result.add(m); } } } }
--- c4.s694.cteam124.mosquito.java.0.Mosquito.java +++ c4.s723.cteam124.mosquito.java.0.Mosquito.java @@ -5,4 +5,6 @@ package mosquito; +import java.util.LinkedList; +import java.util.List; import java.util.Scanner; @@ -19,6 +21,8 @@ Scanner sc = new Scanner(System.in); String res = sc.nextLine(); + List<Integer> result = new LinkedList<Integer>(); String[] ress = res.split(" "); int pom, m, p, l, e, r, s, n; + while (!"".equals(res)){ m = Integer.parseInt(ress[0]); p = Integer.parseInt(ress[1]); @@ -37,6 +41,11 @@ } + res = sc.nextLine(); + result.add(m); + } + for (Integer string : result) { + System.out.println(string); + } - System.out.println(m); }