Search:

Type: Posts; User: Heri623

Search: Search took 0.10 seconds.

  1. [SOLVED] Re: program worked until i tried to implement InputMismatchException

    Awesome, Thank you!!
  2. [SOLVED] program worked until i tried to implement InputMismatchException

    was working fine but when I tried to use try and catch, it now says my variables are not initialized.





    /***********************
    * BMI.java
    * Eddy Caraballo
    *
  3. Replies
    10
    Views
    1,070

    [SOLVED] Re: help with array

    all 0s. is there a problem with this line?
    numberAsterisk = (int) ((tally[i] / numberRolls) * 100);

    Shouldn't that take the element at position i in the array, divide by number of rolls,...
  4. Replies
    10
    Views
    1,070

    [SOLVED] Re: help with array

    Got that part working, thanks. Now I'm trying to print percentages, but I can't get it to go through the second for loop. j starts at 0, and numberAsterisk is a percentage, so shouldn't it print...
  5. Replies
    10
    Views
    1,070

    [SOLVED] Re: help with array

    cry?
    i set the array to 11
    but then i get this error
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 11
  6. Replies
    10
    Views
    1,070

    [SOLVED] Re: help with array

    what's possible is 2-12 impossible would 1, and anything >12
    11 elements stored in the array 2-12
    first would be 0 and last would be 11
  7. Replies
    10
    Views
    1,070

    [SOLVED] help with array

    my assignment is to code a program to simulate the rolling of 2 dice. I have most of it set but when I run it and have it print out how many times each number (2-12) was rolled, it displays the...
  8. Replies
    9
    Views
    1,489

    [SOLVED] Re: Rock Paper Scissors issue

    Thanks for all the help.
    Finally got it figured out.
    Sorry for being so dense.
  9. Replies
    9
    Views
    1,489

    [SOLVED] Re: Rock Paper Scissors issue

    I understand the what you're saying but I am hitting a wall as to what I need to do .
    Do I need to Parse the integer back to a string?
  10. Replies
    9
    Views
    1,489

    [SOLVED] Re: Rock Paper Scissors issue

    ----jGRASP exec: javac -g RockPaperScissors.java

    RockPaperScissors.java:24: error: int cannot be dereferenced
    if (pChoice.equals("Rock") || pChoice.equals("Paper") ||...
  11. Replies
    9
    Views
    1,489

    [SOLVED] Rock Paper Scissors issue

    As usual i've waited until the last minute to work on this and now i'm stuck.
    I'm not sure what is causing the error.
    Any help would be greatly appreciated.
    PS i'm not very Java savvy so maybe...
  12. Replies
    3
    Views
    1,527

    [SOLVED] Re: infinite loop on pig latin program

    I've tweaked this a little and it doesn't loop anymore but I lost the ability to quit when 'q' is entered.





    /******************
    *Pig Latin Program

    Eddy Caraballo
  13. Replies
    3
    Views
    1,527

    [SOLVED] infinite loop on pig latin program

    I'm new to programming (this is my 3rd program ever)
    We have an assignment to create a Pig Latin translator, but when i run it it repeats the answer over and over again. Not sure what I am doing...
Results 1 to 13 of 13