Thursday, January 10, 2008

JAVA basics

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);


int age, x;
age=ib.getInteger("What age?");
for(int y=0;y...
if(age>10 && age<20)
else if(age>19)
ob.printLine("Waaa tigulang ka na!");
ob.printLine("Bata pa ka dong!");



AlRitch said...

Hi, please link all my other blogs.

A Couch Potato -
Just Basic -
The Music Lover -
The Movie Buff -
babae, woman, lady, girl -
Showbiz and Politics -
Our Happy Journey -
Food for Thought -
My TheSpoke blog -

Denz said...

Good day! I already linked your blog to my blogs. Please link my blogs also.

Thank you!

Denzoe said...

Good day! Nice post! Please link my blogs. I already linked your blog.