Sunday, June 14, 2009

A first.

/**
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
*/
class HelloWorldApp
{
public static void main(String[] args)
{
int i = 10;
for(i = 0; i < 10; i = i + 1)
{
System.out.println("Hello Kris!" + (Math.pow(i,2))); // Display the string.
System.out.println("Gustavo is a loser :)" + (Math.asin(Math.PI))); // Display the string.


if( i%2 == 0 )
{
// do this if CONDITION is true
System.out.println( "The number : " + i + "is even.");
}
else
{
//do this if CONDITION is false
System.out.println( "The number : " + i + "is odd.");
}
}
}
}

Well, it's not the solution to the P =NP problem, but thi is a Millenium Prize in and of itself. I can finally code.

2 comments:

Mehl said...

ha! I just saw this this morning and I am so proud =]

Kristina said...

Aiii. Sorry I totally ignored this blog for awhile to recompose my thoughts.

Thanks, roomie. Ye shall teach me more.