public class BreakToWhile{ public static void main(String[] args) { int luku; int summa = 0; System.out.print("Anna luku (lopetus on -1): "); luku = Oma.lueInt(); while (luku >= 0) { summa += luku; System.out.print("Anna luku (lopetus on -1): "); luku = Oma.lueInt(); } System.out.println("Summa on " + summa); } }