Search:

Type: Posts; User: Spreadhisword

Search: Search took 0.57 seconds.

  1. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    I got It! Like this right?



    import java.util.Scanner;

    class NumberOccurance{

    public static void main(String[] args)
    {
  2. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    When I enter the following test numbers : 2 5 6 5 4 3 23 43 2 0 I get the following repeated over and over.
    1 occurs 6 times

    --- Update ---

    Also according to the assignment we have to write a...
  3. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    Is this what you are talking about? Something like this?


    import java.util.Scanner;

    class NumberOccurance{

    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
  4. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    Norm is there a simpler way of writing this without the hasNextInt involved? evedently that is to advanced for my class and he wants it simpler can you show me how you would do this and explain it to...
  5. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    Hey Norm you around? I typed several more numbers in to that code and still got nothing.

    --- Update ---

    Well I'll check back later today is my 7th wedding aniversary! yeah I lasted 7 years so...
  6. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    probably later tonight or tomorrow yes. Thank for your help again friend.
  7. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    Hey Norm I am going to sign off for now I am watching the nba on espn so I can't quite concentrate be back in a few hours thanks for the help I'll be back later. My wife is headed off to school too...
  8. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    But from what you see here am I headed in the right direction? The code is correct right?
  9. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    Where do I put the { AND }? Not sure like I said I am really new at this.
  10. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    Ok got it thanks Norm I will do so. Did i do it right?

    --- Update ---

    This what i get when I enter the numbers

    debug:
    Enter the integers between 1 and 100: 2 5 6 5 4 3 23 43 2 0
    <<<<(The...
  11. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    Not sure I understand what you mean here please explain.

    --- Update ---

    Thanks for your help that site will help me learn some more. My teacher is no help.
  12. Replies
    24
    Views
    1,355

    Re: Homework help what am I doing wrong?

    Yes I enter the following numbers to test it 2 5 6 5 4 3 23 43 2 0 and the cursor just moves to the next line and that is it.

    --- Update ---

    Ok unfortunately I have a teacher that doesn't...
  13. Replies
    24
    Views
    1,355

    Homework help what am I doing wrong?

    Ok, in my Java programming class we have to write a program that reads some integers between 1 and 100 and counts the occurrences of each. Assume the input ends with 0. Here is a sample run of the...
Results 1 to 13 of 13