Programming Help

Posts 1–6 of 6 · Page 1 of 1
Programming Help
I know this is the wrong section but i need urgent help.

My project is due in less then 12 hours and i need some help with Java coding If else stuff.

I know how to do stuff like

if ( age <= 12 )
{

system.out.println(" your young ") ;
}

but what if i wanted to do something like older then 12 but younger then 20 ???

HELP PLEASE
Quote Originally Posted by [P]eter View Post
I know this is the wrong section but i need urgent help.

My project is due in less then 12 hours and i need some help with Java coding If else stuff.

I know how to do stuff like

if ( age <= 12 )
{

system.out.println(" your young ") ;
}

but what if i wanted to do something like older then 12 but younger then 20 ???

HELP PLEASE
Code:
if(age <= 12)
{
system.out.println("You are young !");
}
elseif (age > 12 && age < 20)
{
system.out.println("You are under 20 but greater than 12 :D");
}
else
{
system.out.println("You are 20 or above.");
}
Omg Thank you so much @Hassan now i can finish my project
@[P]eter if you want to start programming java i would suggest you to start coding on runescape private servers

you'll learn allot about the language from it
runescape private server????????????? in what is that?????or what is that?
=)
Quote Originally Posted by Jackass151 View Post
runescape private server????????????? in what is that?????or what is that?
=)

RSPS coding gets you a sense of it. Its easy and all of it is based on it JAVA coder... old RSPS maker.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us