Java Part 2: Syntax - Putting it all together
(Page 7 of 8 )
Here's a function in Java pseudo code to help wrap this tutorial up:
void printSomeNumbers()
{
int var = 0;
for( ; var <= 100 ; i++ )
{
if( var <= 50 )
{
// print var's value
}
else if( var >= 60 )
{
// print var's value
}
}
}This simple Java pseudo function will print out the numbers from 0 to 100, except the numbers between 51 to 59.
Next: Conclusion >>
More Java Articles
More By Chris Noack