3
Write a program that asks the user to enter 6 numbers of a lottery ticket in a vector and later check if there is the number 25 in this sequence of numbers passed by the user.
I have a question, I do not know how to identify if there is the number 25, if it was typed by the user.
Follow the command I made
public class Ex04 {
public static void main (String[] args){
int [] num = new int [6];
for(int i=0;i<6;i++) {
num[i] = Integer.parseInt(JOptionPane.showInputDialog("Insira o número do bilhete: "));
}
for (Integer integer : num) {
System.out.print(integer + ", ");
}
}
}