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...
Type: Posts; User: xionyus
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...
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:
Am I placing the while in the beginning of the program?
If I do it like that, it's giving me multiple errors.
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?
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...
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...
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...
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...