Warning.
December 2, 2006 on 11:38 am | In Blog Surfing, Business, Funny Videos, Girls, Java, Lyrics, News, Personal Rants, Programming, Project BlogHeart, Quotes, Random, Reflections, Tech Stuff, Thursday Thirteen, Uncategorized, i'm bored, iamsingaporean, just for laughs, videos | No CommentsI don’t know you. But it seems you know quite a bit about me, and my family. And it seems you’re making serious threats to my family.
Now, i’ll be honest with you. I don’t who you are. I don’t know how exactly much you know. But if you get here, and you’re reading this. Then yes, this is for you.
I am warning you to stay away from my entire family. Settle. If you want, we meet, we settle it one time…If you harm anyone, i’ll tell you what’s going to happen. I’ll drop all my plans - school & work - and I will find you. And I will find everyone who’s working for you. And I will find your family. And I will taste their blood.
From what I know, you sound like an educated person. But if you cannot understand me, i’ll make it simple for you.
You don’t disturb my family, I don’t disturb yours. If you do, i’ll kill your mother, your father, your brother, your sister, your wife, your girlfriends, your children.
…I can find you.
Java #2: A simple program
July 19, 2006 on 12:03 am | In Java | No CommentsHere’s my answer to the supposedly toughest question in Chapter 2 of the text book:
// Write a program that reads in an integer between 0 and 1000 and adds all the
// digits in the integer. For example, 932 returns 14import java.util.Scanner;
public class IntAdder{
public static void main(String[] args){
int input=0;
int result=0;
Scanner sc = new Scanner(System.in);System.out.print("Enter integer: ");
input = sc.nextInt();while(input!=0){
result += input%10;
input /= 10;
}System.out.println("Sum is " + result);
}
}
Input : 123
Output: 6
Recap on Java
July 5, 2006 on 2:33 pm | In Java | No CommentsI'm going to start recapping on my school work now…Especially on Java…
What I'm going to do is to put it the code that I write for the various Chapters of my text here and it's output…I don't why…But I guess I just want a place to show off or something. Haha. Oh well…At the end of the Chapter 1: Introduction , here's what they asked me to do.
1. Write a program that displays the message "Welcome to Java!" on the console.
Here's the code:
public class Welcome{
public static void main(String[] args){
System.out.println("Welcome to Java!"); }}
Output
Welcome to Java!
Honestly, very easy. But it'll get more exciting. Really. Haha
Entries and comments feeds. Valid XHTML and CSS. ^Top^ Powered by WordPress with jd-nebula-3c theme design by John Doe.