This is a very simple program using java language. I'll just use this as my reference for our tonights exam. BCouz i'm not good at java and i can't memorize the codes even the basics. Hope we can use internet for our exam. Gud luck to me! :>
import javabook.*;
class trial
{
public static void main(String args[])
{
MainWindow main=new MainWindow("Trial");
OutputBox ob = new OutputBox(main);
InputBox ib=new InputBox(main);
main.setVisible(true);
ob.setVisible(true);
int age, x;
age=ib.getInteger("What age?");
x=ib.getInteger("Pila?");
for(int y=0;y...
{
if(age>10 && age<20)
{
ob.printLine("teen");
}
else if(age>19)
{
ob.printLine("Waaa tigulang ka na!");
}
else
{
ob.printLine("Bata pa ka dong!");
}
}
}
}
Thursday, January 10, 2008
Subscribe to:
Post Comments (Atom)
3 comments:
Hi, please link all my other blogs.
A Couch Potato - acouchpotato.blogspot.com
Just Basic - hinaru.blogspot.com
The Music Lover - themusiclover.blogsome.com
The Movie Buff - daothersayd.blogsome.com
babae, woman, lady, girl - amla.blogsome.com
Showbiz and Politics - ganitosamundoko.wordpress.com
Our Happy Journey - ourhappyjourney.blogsome.com
Food for Thought - mysteriouslife.i.ph
My TheSpoke blog - http://thespoke.net/blogs/chelchel_am/default.aspx
Good day! I already linked your blog to my blogs. Please link my blogs also.
http://denzoe.blogsome.com
http://denkz.blogsome.com
http://pogz.blogsome.com
Thank you!
Good day! Nice post! Please link my blogs. I already linked your blog.
http://deknees.blogsome.com
http://derenz.blogsome.com
http://denzio.blogsome.com
Thanks!
Post a Comment