Search:

Type: Posts; User: return0

Search: Search took 0.15 seconds.

  1. Replies
    5
    Views
    183

    Re: Is my code working

    So would that code example you showed me compile like my program did then show an error? How come it lets my program compile and lets the user enter the integers before showing the error?
  2. Replies
    5
    Views
    183

    Re: Is my code working

    Thanks for doing that I really appreciate it. I'm not sure what is wrong with that line of code I wrote though. Anybody know what I'm doing wrong here?


    sum[n-1]=sum[n-1]+1;


    --- Update ---
    ...
  3. Replies
    5
    Views
    183

    Is my code working

    Hello all, I am on a computer that I cannot download anything on and it does not have jdk on it so I cannot test my code to see if it is running. Anyone mind running it for me to see if all is right?...
  4. Thread: logical errors

    by return0
    Replies
    4
    Views
    214

    Re: logical errors

    if (name equals("blue")) {
    System.out.println("Mine, too!");


    like this?
  5. Thread: redundant code

    by return0
    Replies
    2
    Views
    168

    redundant code

    I was marked off 2 points from my teacher because he said this part of my code was redundant. What could I have done to make it less redundant?


    if (x < 30) {
    a=2;
    x++;
    ...
  6. Thread: logical errors

    by return0
    Replies
    4
    Views
    214

    logical errors

    Hi all, I have 2 segments of two different codes that are having problems and I can't seem to find what I am doing wrong. The first code has a logical error. Any ideas?

    First code :


    Scanner...
  7. Replies
    1
    Views
    164

    Beginner Java code problems

    Hey guys, I am a beginner to Java and have written a code to compare two students GPA, SAT and ACT Score to say which one is wrong with my code. Here is what I have so far, does anybody see what im...
Results 1 to 7 of 7