Search:

Type: Posts; User: xionyus

Search: Search took 0.09 seconds.

  1. Replies
    1
    Views
    1,345

    2D Array with Strings

    The lab I got from my teacher is supposed to be a 2D array. We're supposed to be using it to where it reads the strings from the file, and then it prints them out in an hour glass form like this:

    ...
  2. Thread: Math.Random()

    by xionyus
    Replies
    4
    Views
    1,493

    Re: Math.Random()

    First off, he wanted the area code to be only these, but random each time: 218, 312, 731.
    The next three numbers needed like a range from 231 to 750. So I set up a variable
    Then the last four...
  3. Thread: Math.Random()

    by xionyus
    Replies
    4
    Views
    1,493

    Math.Random()

    I get the fact that it's an easy concept. The lab my teacher wanted us to construct is a random phone number generator.
    The area code has to be 218, 312, or 731, it can't be anything else. He told...
  4. Replies
    17
    Views
    1,774

    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...
  5. Replies
    17
    Views
    1,774

    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:
  6. Replies
    17
    Views
    1,774

    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.
  7. Replies
    17
    Views
    1,774

    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?
  8. Replies
    17
    Views
    1,774

    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...
  9. Replies
    17
    Views
    1,774

    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...
  10. Replies
    17
    Views
    1,774

    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...
  11. Replies
    17
    Views
    1,774

    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...
  12. I'm either doing this entirely wrong or I'm missing something simple.

    I've been outta school for two weeks and I've been working on this program from my Com Sci class for about three hours. It's supposed to be something that will tell you what day you were born on. For...
Results 1 to 12 of 12