User Profile

Collapse

Profile Sidebar

Collapse
itsmee
itsmee
Last Activity: Nov 3 '07, 04:50 AM
Joined: Oct 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • itsmee
    started a topic problem with a do while
    in Java

    problem with a do while

    I have a couple of issues with this program:
    1. i'm not sure on how to write so that if the users_num is greater than 21 it should ask if the user would want to play again. i tried putting break; after the if statement but that just exits out of the whole thing and goes to the main method and adding an else break would do the same thing.
    [code=java]
    betting_amount = in.nextInt();

    // computer generates...
    See more | Go to post

  • itsmee
    replied to tracing a program by hand
    in Java
    Jos thanks so much!!! i get it now. i keep forgetting that counting start at 0. (hope that's right) oh man i did this trace about 6 times...
    See more | Go to post

    Leave a comment:


  • itsmee
    replied to tracing a program by hand
    in Java
    i used the eclipse debugger. i'm not understanding why
    System.out.prin t(w.charAt(star t)); prints out nothing instead of "n"...
    See more | Go to post

    Leave a comment:


  • itsmee
    started a topic tracing a program by hand
    in Java

    tracing a program by hand

    I am trying to trace the program below but I am not understanding certain lines of codes. I made tables for each function with their variables to keep track as they change. The program output is suppose to be "it is fall" but i'm not getting that. as tabulated in the OUTPUT table i got "ni is eiall."
    "n" because of System.out.prin t(w.charAt(star t)); since start=2 --i'm not sure if that is correct.
    could...
    See more | Go to post
No activity results to display
Show More
Working...