Search:

Type: Posts; User: xionyus

Search: Search took 0.12 seconds.

  1. Replies
    17
    Views
    1,778

    Re: Case Switch Help?

    import java.util.Scanner;

    public class BirthdayEdit {

    public static void main (String arg[])
    {
    Scanner sc = new Scanner(System.in);
    boolean cont = true;
    while(cont) {
    int...
  2. Replies
    17
    Views
    1,778

    Re: Case Switch Help?

    I got it working now, but what do I type after Continue pops up?
    I'm inputting cont, yes, true, and each just ends the process.
    Well, it gives this:
  3. Replies
    17
    Views
    1,778

    Re: Case Switch Help?

    Am I placing the while in the beginning of the program?
    If I do it like that, it's giving me multiple errors.
  4. Replies
    17
    Views
    1,778

    Re: Case Switch Help?

    Thing is, teacher just wanted me to input three numbers like so:
    10 20 1990
    And when you hit enter it tells you the day you were born.
    Would this still be possible to do in a while statement?
  5. Replies
    17
    Views
    1,778

    Re: Case Switch Help?

    It's not really over my head, I've been coding and stuff since I was about nine, I learned HTML and CSS from neopets. x3
    And I code permissions for MineCraft.
    It's just the fact that the first...
  6. Replies
    17
    Views
    1,778

    Re: Case Switch Help?

    It made my code much more cleaner! Thanks. :D
    One thing can be break the program though.
    If I enter a month number over 12, or a negative, then it will still input a day. I know I could fix it...
  7. Replies
    17
    Views
    1,778

    Re: Case Switch Help?

    Gaah! Thank you so much, it helped me lots. :]
    If you're still there I'm wondering if there will be a way to make an error code so that if my teacher types in Feburary 30th, it would give him an...
  8. Replies
    17
    Views
    1,778

    Case Switch Help?

    import java.util.Scanner;

    public class BirthdayEdit {

    public static void main (String arg[])
    {
    Scanner sc = new Scanner(System.in);

    int birthMonth = sc.nextInt();
    int birthDay...
Results 1 to 8 of 8