ok,
1. i didnt solve the problem, just assist
2. dont care about academic dishonesty, i got my degree 3 years ago so who cares
Type: Posts; User: ridg18
ok,
1. i didnt solve the problem, just assist
2. dont care about academic dishonesty, i got my degree 3 years ago so who cares
you should define array like this,
lotteryarray[numtix][6]
and insert the numbers in it.
so if the user want 3 tickts the array will be 3*6 the number of the columns is the number of the tickts...
try this:
import java.util.*;
public class LotteryTest {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
{
ArrayList<Integer> numbers = new...
hi
your fault is int the loop "for (int i=0; i<6; i++) { //loop for # of lottery tickets"
here you say that you want to make a loop 6 times but what if the user want only 2 tickts?
cause of...