public class Ujlotto { //a program nem vizsgalja, hogy minden generalt veletlen szam kulonbozo-e static int[] nyeroszamok = new int[5]; public Ujlotto() { } static void prog(){ System.out.println("A lotto e heti nyeroszamai:"); for (int i = 0; i < nyeroszamok.length; i++) { nyeroszamok[i]=(int) (Math.round(Math.random()*89)+1); System.out.print(nyeroszamok[i]+" "); } } public static void main(String[] args) { Ujlotto.prog(); } }