Search:

Type: Posts; User: ridg18

Search: Search took 0.09 seconds.

  1. Replies
    8
    Views
    2,008

    Re: Lotto Problem logic error

    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
  2. Replies
    8
    Views
    2,008

    Re: Lotto Problem logic error

    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...
  3. Replies
    8
    Views
    2,008

    Re: Lotto Problem logic error

    try this:


    import java.util.*;
    public class LotteryTest {
    public static void main(String[] args){
    Scanner input = new Scanner(System.in);
    {

    ArrayList<Integer> numbers = new...
  4. Replies
    8
    Views
    2,008

    Re: Lotto Problem logic error

    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...
Results 1 to 4 of 4