Friday, May 23, 2008

ずっと俺はついてゆくわ!

ずっと俺はついてゆくわ!
Zutto ore wa tsuite yuku wa!
I'll always follow you!



A SMS conversation between Mark and me yersterday night after we both went our separate ways home after dinner.

Samy: Remember to set alarm for tomorrow morning ah, or else later oversleep and late for school I laugh I tell you ah... XD
Mark: SHUT UP LA... Hope middle nite u wake up pee...

I just love to disturb people about the fact that they have to go to school on Friday and I don't.

Oh, and I sent the same SMS to Vernon as well, but he didn't bother replying to me. :3



Ah, Naruto chapter 401 is sooo touching... T_T Why is Madara telling all this to Sasuke though? What has he got up his sleeves...?



Fucking second-player controller for my PS2 got spoilt. Fuck it. Looks like I'll have to buy a new one. ;_;



Hmmmm, RuneScape has implemented a new function named Quick Chat, and heck do you know, I like it! XD I have a feeling that it's gonna be extremely useful, haha.



I just find that there are too little choices for "Hello". There should be more variety, like for example, "Hey there!", "Greetings." and "Yo!", lol, but that's just my opinions. :P



P.S.: There is hidden text in this blog post.



PRSP notes on Java
  • A variable’s name allows the program to refer to the variable.
  • A variable name is also known as an identifier.
  • An identifier or variable name must follow a certain set of rules:
    • Names can consists of upper and lowercase letters, digits, dollar signs($) and the underscore(_) character.
    • Spaces, commas, and other symbols like %, &, *, etc. are not allowed
    • Names must begin with either a letter, a dollar sign or an underscore.
    • Names are case sensitive, that is, the name "Book" is different from "book".
    • Java keywords (e.g.: if, for, public, class) cannot be used as variable names.
    • Names must be unique within the same scope.
    • Names can be as long as you like.
  • A variable’s data type determines the kind of data that the variable can hold, how many memory cells are reserved for it and the operations that can be performed on it.
  • The Java language has two major categories of data types: primitive types and reference types.
  • A variable of primitive type contains a single value of the appropriate size and format for its type.
  • There are 8 primitive types in Java:
    • Four whole number data types (byte, short, int and long).
    • Two real number data types (float and double).
    • One character data type (char).
      • The character type is denoted by char.
      • Character literals are based on the Unicode encoding scheme and must appear between single quotes (Eg. ‘A’, ‘B’, …,‘Z’, ‘a’, …, ‘z’, ‘0’, ‘1’, …, ‘9’). It may also contain escape sequence (Eg. ‘\t’, ‘\n’, ‘\\’, ‘\0’).
      • It requires a storage space of 2 bytes.
    • One Boolean data type (boolean).
      • The Boolean type is denoted by boolean.
      • There are only two Boolean literals: true and false.
  • Strings are represented by a series of characters within double quotes. It can contain zero or more characters including escape sequences.
  • Note: String is a reference type, NOT a primitive type.
  • To use a variable, you must first declare the variable.
  • A variable declaration always contains two components:
    • its data type (e.g.: byte, short, int, long, etc.).
    • its name (e.g.: count, numOfSeats, etc.).
  • Syntax for variable declaration:
    • [data type] [name]
  • Below are some examples of variable declarations:
    • int count;
    • double temperature, result;
  • Variables must be initialized with some initial value before it may be used.
  • Variables can be initialized with an assignment statement when they are declared or after they have been declared.
  • The value assigned to the variable must match the variable's type.
  • Below are some examples of variable initializations:
    • int count = 20;
    • double temperature, result;
    • temperature = 36.9; result = 99.9;
Credits go to my WDS lecturer for teaching me HTML, especially nested lists. ^^"

No comments: