Here is the program requirement and I need the most simple method since i am a beginner
and this is what i have so far
import java.util.Random;
class Lotto
{
public static void main (String[] args)
{
Random r = new Random();
int mynums[] = {6, 25, 31, 15, 42};
int lotto[] = {r.nextInt(49)+1, r.nextInt(49)+1, r.nextInt(49)+1, r.nextInt(49)+1, r.nextInt(49)+1, r.nextInt(42)+1};
int match;