import java.io.*;
public class try2{
public static void main(String args[]) throws IOException{
BufferedReader object = new BufferedReader(new InputStreamReader(System.in));
System.out.println("enter the number");
int x= Integer.parseInt(object.readLine());
for(int a=x;a>0;a--){
System.out.println("Entering: "+a);
}
int factorial=1;
for(int b=1;b<=x;b++){
factorial=factorial*b;
System.out.println("Returning: "+factorial);
}
}
}
Sunday, January 23, 2011
Monday, January 10, 2011
Javatutz 101: Sorting Input words Using Array
import java.util.*;
import java.io.*;
import javax.swing.*;
public class sortExample2 {
//your inputs will be here
String word1=JOptionPane.showInputDialog(null, "Input First word");
String word2=JOptionPane.showInputDialog(null, "Input Second word");
String word3=JOptionPane.showInputDialog(null, "Input Third word");
String word4=JOptionPane.showInputDialog(null, "Input Fourth word");
String [] words = { word1,word2,word3,word4};
public static void main(String args[]) {
new sortExample2().sortAndDisplay();
}
public void sortAndDisplay() {
try {
//output at the console
Writer outputDisplay =new BufferedWriter(new OutputStreamWriter(System.out));
//this here displays the sequence of your inputs
outputDisplay.write("Input sequence :\n");
for(int i=0; i < 4 ; i++) {
outputDisplay.write(words[i] + " ");
}
//a class for sorting arrays
java.util.Arrays.sort(words);
//this here displays the sorted sequence of your inputs
outputDisplay.write("\nSorted :\n");
for(int i=0; i < 4 ; i++) {
outputDisplay.write(words[i] + " ");
}
outputDisplay.flush();// Flushes this output stream and forces any buffered output bytes to be written out.
outputDisplay.close();//Closes this output stream and releases any system resources associated with this stream.
}
catch(Exception e){}
}
}
import java.io.*;
import javax.swing.*;
public class sortExample2 {
//your inputs will be here
String word1=JOptionPane.showInputDialog(null, "Input First word");
String word2=JOptionPane.showInputDialog(null, "Input Second word");
String word3=JOptionPane.showInputDialog(null, "Input Third word");
String word4=JOptionPane.showInputDialog(null, "Input Fourth word");
String [] words = { word1,word2,word3,word4};
public static void main(String args[]) {
new sortExample2().sortAndDisplay();
}
public void sortAndDisplay() {
try {
//output at the console
Writer outputDisplay =new BufferedWriter(new OutputStreamWriter(System.out));
//this here displays the sequence of your inputs
outputDisplay.write("Input sequence :\n");
for(int i=0; i < 4 ; i++) {
outputDisplay.write(words[i] + " ");
}
//a class for sorting arrays
java.util.Arrays.sort(words);
//this here displays the sorted sequence of your inputs
outputDisplay.write("\nSorted :\n");
for(int i=0; i < 4 ; i++) {
outputDisplay.write(words[i] + " ");
}
outputDisplay.flush();// Flushes this output stream and forces any buffered output bytes to be written out.
outputDisplay.close();//Closes this output stream and releases any system resources associated with this stream.
}
catch(Exception e){}
}
}
Wednesday, August 19, 2009
Saturday, August 8, 2009
Friday, August 7, 2009
The Offspring - Kristy Are You Doing Okay?
This should be on top of the charts! Offspring rocks. From 1998's Americana up to their 2009 work, lots of music progression, but they still make amazing music.
Lyrics:
Lyrics:
There’s a moment in time
And it’s stuck in my mind
Way back, when we were just kids
Cause your eyes told the tale
Of an act of betrayal
I knew that somebody did
Oh, waves of time
Seem to wash away
The scenes of our crimes
But for you this never ends
Can you stay strong?
Can you go on?
Kristy are you doing okay?
A rose that won’t bloom
Winter’s kept you
Don’t waste your whole life trying
To get back what was taken away
Though the marks on your dress
Had been neatly repressed
I knew that something was wrong
And I should have spoke out
And I’m so sorry now
I didn’t know
Cause we were so young
Oh, clouds of time
Seem to rain on
Innocence left behind
And it never goes away
Can you stay strong?
Can you go on?
Kristy are you doing okay?
A rose that won’t bloom
Winter’s kept you
Don’t waste your whole life trying
To get back what was taken away
Oh, clouds of time
Seem to rain on
Innocence left behind
And it never goes away
It never goes away
Can you stay strong?
Can you go on?
Kristy are you doing okay?
A rose that won’t bloom
Winter’s kept you
Don’t waste your whole life trying
To get back what was taken away
And it’s stuck in my mind
Way back, when we were just kids
Cause your eyes told the tale
Of an act of betrayal
I knew that somebody did
Oh, waves of time
Seem to wash away
The scenes of our crimes
But for you this never ends
Can you stay strong?
Can you go on?
Kristy are you doing okay?
A rose that won’t bloom
Winter’s kept you
Don’t waste your whole life trying
To get back what was taken away
Though the marks on your dress
Had been neatly repressed
I knew that something was wrong
And I should have spoke out
And I’m so sorry now
I didn’t know
Cause we were so young
Oh, clouds of time
Seem to rain on
Innocence left behind
And it never goes away
Can you stay strong?
Can you go on?
Kristy are you doing okay?
A rose that won’t bloom
Winter’s kept you
Don’t waste your whole life trying
To get back what was taken away
Oh, clouds of time
Seem to rain on
Innocence left behind
And it never goes away
It never goes away
Can you stay strong?
Can you go on?
Kristy are you doing okay?
A rose that won’t bloom
Winter’s kept you
Don’t waste your whole life trying
To get back what was taken away
Don’t waste your whole life trying
To get back what was taken away
To get back what was taken away
Music by:
The Offspring
Label:
Columbia Records
The Offspring
Label:
Columbia Records
Boom Boom Pow!!!! ... In Chinese
Funny Parody of Black Eyed Peas' "Boom Boom Pow" entitled Ching Chang Chong
MUST WATCH!
Credits:
http://www.youtube.com/user/SerchliteMusic
http://www.myspace.com/ruckaruckaali
http://www.youtube.com/user/SerchliteMusic
http://www.myspace.com/ruckaruckaali
All About Me
Answered a quiz app in Facebook. here are the results:
Describe Yourself In One Word: ASSHOLE
Biggest Fear: GOD
Biggest Mistake: Being an asshole
Your Proudest Accomplishment: being a Christian
#1 Priority In Your Life: to be rich
Dream Job: big time programmer. & i mean big time
Causes You Believe In: the greater good
Special Talents: i can scream
Where Are You Right Now: sir Jackeron's chair... shhh
Where Would You Rather Be: the other chair... hahahah
Famous Person You Want To Meet: persons...BLINK-182!
Place To Visit Before You Die: Blink-182's studio
Song Played At Your Funeral: Not Now by Blink
What are you listening to right now: i dunno,
What makes you happy: sex
What did you do yesterday: LOTS
Won any awards?: yeah,
Are you a good driver?: can't
Gotten any speeding tickets?: nope
Are you double jointed?: what on earth is that?
Last time you showered?: last year
What's the last dream you remember?: My HS buddy got muscle hahaha
What side of the bed do you sleep on?: center!
Do you dress up on Halloween?: no. i get naked. haha
Are you outgoing or introverted?: introverted
Do you ever wish you were famous?: yes. wanna be rockstar dude
Have you ever done anything illegal?: yeah... I hack fs accounts! haha
Where will you be 12 hours from now?: still here
Is it easy for others to make you feel awkward?: yeah
Do you know what you are going to wear tomorrow?: yeah, my bday suit
Is it easy for people to make you smile?: nope.
Does anyone hate you for no reason?: dunno
Can you make yourself cry?: no. not a good actor
How many hours of sleep did you get last night?: 5,6,7...
Is your life simple or complicated?: I'm already dead. (that means it's complicated)
Are you taller than 5'4"?: yeah
What was your last place of employment?: my granny's store
What color are your socks?: grey
Have you laughed until you cried: fuck yeah
Have you found out who your true friends were: yeah
Met someone who changed you: yeah
Kissed anyone on your friends list: wala pa..
What were you doing at midnight last night: i was trying to tweet,but there was this stupid DDOS
Name something you CANNOT wait for: Blink-182 to come to the philippines
Have you ever talked to a person named Tom: i want to.. TOM delonge
What are you listening to right now: Sir andamon's lecture
What is one thing you wish you could change about your life: my name
Last time you saw your father : wow... it was last month. missing my fam
Most visited webpage: twitter
Do people think you're weird?: they say that
Are any of your friends mad at you?: most
What's one new thing you'd like to try?: kill the fucking gravedigger
Would you get married before 19?: nah. neva
Can you crack your neck?: Don't want to
Are you a bully? O_o: yes
Do you type fast?: nope
Do you get mad easily?: yes
Do you like getting hyper?: Oh yeah,,
Do you like making kids cry?: yes..
Who's your best friend?: my dick
What is the longest relationship you were in?: family relationships
Stolen Anything: stole girlfriends
Been Drunk Before Noon: neva
Had Sex In A Public Place: yes
Got Caught Telling A Lie: you can't touch me haha
Got A Speeding Ticket: nope
Been Arrested: nope
Littered: everytime
Fantasized About A Co-Worker: sure
Cheated On A Test: Most
Cheated In A Relationship: yeah
Failed A Class: hope NEVER
Screened Your Phone Calls: once
Eaten Food Off The Floor: haha. yes
Stuck Gum Under A Desk: yes
Wished You Were Someone Else: used to
Cried During A Movie: yeah. a walk to remember
Had A One Night Stand: sure
Had to pull over on the side of the road to puke?: yah. haha
Had your heart broken?: 100 times
Had a good feeling about something?: neva
Had a near death experience: yeah
Swam in freezing water: yeah
Jumped off a house: yeah
Been attacked?: yeah
Bungee jumped: i wanna
Pulled an all nighter?: i wanna
Surfed: i wanna
Lied about your age: yeah
Broken a bone?: yeah
Have Any Pets: Yes
Have Any Children: none
Smoke: used to
Drink: used to
Exercise: used to
Spend Your Life On Facebook: if it still rocks in 2 years
Play On A Sports Team: yeah. the Bee-Gees
Belong To Any Organizations: webgeekPh
Love Your Job: sometimes... Yeah
Like To Cook: yah. I cook shit
Play An Instrument: instrument of doom!
Sing: yeah. sing, scream, growl, shout
Dance: fuck yeah
Speak Multiple Languages: i do, java, html, vb6, php, still learning more :]]
Ice Skate: nope
Swim: used to
Paint: nope
Write: yeah
Ski: no
Juggle: hell no
Do you wish you lived somewhere else?: fuck yeah!
Do you like roller coasters?: fuck yeah
Enjoy spending time with your Mother?: when she goes home
Ever think about the price of gasoline?: I try not to
Sleep with a fan on?: hell yeah
Have a good handle on spelling?: d-uh?!
Ever type "kik" instead of "lol?: hahahaha. yes
Know how to play chess?: yeah. play not to win
Ever miss being a little kid?: no
Want to get married?: never
Chocolate or Vanilla: Chocolate. Vanilla sux
Big Mac or Whopper: Big Mac
Coke or Pepsi : Coke
Beer or Wine: Wine
Coffee or Tea: Coffee
Apple Juice or O.J.: Orange Juice
Facebook or MySpace: Facebook. Myspace sux now, except for the band profiles
Summer or Winter: winter
Windows or Mac: Windows. Mac used to Rac. they Sac now. LOLZ
Cats or Dogs: Dogs. dobberman, werewolves
Boxers or Briefs: Briefs
Rain or Shine : Rain! <3
Chips or Popcorn: Chips. NOVA
Salty or Sweet: Sweet
Plane or Boat: Plane
Morning or Night: night
Movie or Play: movie.
Walk or Drive: walk
Money or Love: money
Breakfast or Dinner: dinner
Forgiveness or Revenge: revenge
Paint or Wallpaper: wallpaper
House or Apartment: house
Truth or Dare: truth
Contacts or Glasses: glasses
Root beer or Dr. Pepper: dr. pepper
Mud or Jell-O wrestling: Jell-o wrestling
Skiing or Boarding: boarding
Silver or Gold: gold
Diamond or pearl: diamond
Sunset or Sunrise: sunset
Phone or in person: in person
Oldest, middle, youngest or only child: oldest
Indoor or Outdoor: indoor
Describe Yourself In One Word: ASSHOLE
Biggest Fear: GOD
Biggest Mistake: Being an asshole
Your Proudest Accomplishment: being a Christian
#1 Priority In Your Life: to be rich
Dream Job: big time programmer. & i mean big time
Causes You Believe In: the greater good
Special Talents: i can scream
Where Are You Right Now: sir Jackeron's chair... shhh
Where Would You Rather Be: the other chair... hahahah
Famous Person You Want To Meet: persons...BLINK-182!
Place To Visit Before You Die: Blink-182's studio
Song Played At Your Funeral: Not Now by Blink
What are you listening to right now: i dunno,
What makes you happy: sex
What did you do yesterday: LOTS
Won any awards?: yeah,
Are you a good driver?: can't
Gotten any speeding tickets?: nope
Are you double jointed?: what on earth is that?
Last time you showered?: last year
What's the last dream you remember?: My HS buddy got muscle hahaha
What side of the bed do you sleep on?: center!
Do you dress up on Halloween?: no. i get naked. haha
Are you outgoing or introverted?: introverted
Do you ever wish you were famous?: yes. wanna be rockstar dude
Have you ever done anything illegal?: yeah... I hack fs accounts! haha
Where will you be 12 hours from now?: still here
Is it easy for others to make you feel awkward?: yeah
Do you know what you are going to wear tomorrow?: yeah, my bday suit
Is it easy for people to make you smile?: nope.
Does anyone hate you for no reason?: dunno
Can you make yourself cry?: no. not a good actor
How many hours of sleep did you get last night?: 5,6,7...
Is your life simple or complicated?: I'm already dead. (that means it's complicated)
Are you taller than 5'4"?: yeah
What was your last place of employment?: my granny's store
What color are your socks?: grey
Have you laughed until you cried: fuck yeah
Have you found out who your true friends were: yeah
Met someone who changed you: yeah
Kissed anyone on your friends list: wala pa..
What were you doing at midnight last night: i was trying to tweet,but there was this stupid DDOS
Name something you CANNOT wait for: Blink-182 to come to the philippines
Have you ever talked to a person named Tom: i want to.. TOM delonge
What are you listening to right now: Sir andamon's lecture
What is one thing you wish you could change about your life: my name
Last time you saw your father : wow... it was last month. missing my fam
Most visited webpage: twitter
Do people think you're weird?: they say that
Are any of your friends mad at you?: most
What's one new thing you'd like to try?: kill the fucking gravedigger
Would you get married before 19?: nah. neva
Can you crack your neck?: Don't want to
Are you a bully? O_o: yes
Do you type fast?: nope
Do you get mad easily?: yes
Do you like getting hyper?: Oh yeah,,
Do you like making kids cry?: yes..
Who's your best friend?: my dick
What is the longest relationship you were in?: family relationships
Stolen Anything: stole girlfriends
Been Drunk Before Noon: neva
Had Sex In A Public Place: yes
Got Caught Telling A Lie: you can't touch me haha
Got A Speeding Ticket: nope
Been Arrested: nope
Littered: everytime
Fantasized About A Co-Worker: sure
Cheated On A Test: Most
Cheated In A Relationship: yeah
Failed A Class: hope NEVER
Screened Your Phone Calls: once
Eaten Food Off The Floor: haha. yes
Stuck Gum Under A Desk: yes
Wished You Were Someone Else: used to
Cried During A Movie: yeah. a walk to remember
Had A One Night Stand: sure
Had to pull over on the side of the road to puke?: yah. haha
Had your heart broken?: 100 times
Had a good feeling about something?: neva
Had a near death experience: yeah
Swam in freezing water: yeah
Jumped off a house: yeah
Been attacked?: yeah
Bungee jumped: i wanna
Pulled an all nighter?: i wanna
Surfed: i wanna
Lied about your age: yeah
Broken a bone?: yeah
Have Any Pets: Yes
Have Any Children: none
Smoke: used to
Drink: used to
Exercise: used to
Spend Your Life On Facebook: if it still rocks in 2 years
Play On A Sports Team: yeah. the Bee-Gees
Belong To Any Organizations: webgeekPh
Love Your Job: sometimes... Yeah
Like To Cook: yah. I cook shit
Play An Instrument: instrument of doom!
Sing: yeah. sing, scream, growl, shout
Dance: fuck yeah
Speak Multiple Languages: i do, java, html, vb6, php, still learning more :]]
Ice Skate: nope
Swim: used to
Paint: nope
Write: yeah
Ski: no
Juggle: hell no
Do you wish you lived somewhere else?: fuck yeah!
Do you like roller coasters?: fuck yeah
Enjoy spending time with your Mother?: when she goes home
Ever think about the price of gasoline?: I try not to
Sleep with a fan on?: hell yeah
Have a good handle on spelling?: d-uh?!
Ever type "kik" instead of "lol?: hahahaha. yes
Know how to play chess?: yeah. play not to win
Ever miss being a little kid?: no
Want to get married?: never
Chocolate or Vanilla: Chocolate. Vanilla sux
Big Mac or Whopper: Big Mac
Coke or Pepsi : Coke
Beer or Wine: Wine
Coffee or Tea: Coffee
Apple Juice or O.J.: Orange Juice
Facebook or MySpace: Facebook. Myspace sux now, except for the band profiles
Summer or Winter: winter
Windows or Mac: Windows. Mac used to Rac. they Sac now. LOLZ
Cats or Dogs: Dogs. dobberman, werewolves
Boxers or Briefs: Briefs
Rain or Shine : Rain! <3
Chips or Popcorn: Chips. NOVA
Salty or Sweet: Sweet
Plane or Boat: Plane
Morning or Night: night
Movie or Play: movie.
Walk or Drive: walk
Money or Love: money
Breakfast or Dinner: dinner
Forgiveness or Revenge: revenge
Paint or Wallpaper: wallpaper
House or Apartment: house
Truth or Dare: truth
Contacts or Glasses: glasses
Root beer or Dr. Pepper: dr. pepper
Mud or Jell-O wrestling: Jell-o wrestling
Skiing or Boarding: boarding
Silver or Gold: gold
Diamond or pearl: diamond
Sunset or Sunrise: sunset
Phone or in person: in person
Oldest, middle, youngest or only child: oldest
Indoor or Outdoor: indoor
Saturday, August 1, 2009
Good bye July. Hello August!
Very,very late post. very very busy me.
Well. katatapos palang nung Acquaintance namin kagabi.
I saw my crush dancing with my classmate.
blah,blah, blah/ So it wasn't really my month,
But i promise, it's gonna be my year. MINE! haha
Well. katatapos palang nung Acquaintance namin kagabi.
I saw my crush dancing with my classmate.
blah,blah, blah/ So it wasn't really my month,
But i promise, it's gonna be my year. MINE! haha
Monday, July 20, 2009
My Favorite Christian Song
Kutless
I see the city lights all around me
Everyone's obscure
Ten million people each with their problems
Why should anyone care
And in Your eyes I can see
I am not just a man, vastly lost in this world
Lost in a Sea of Faces
Your body's the bread, Your blood is the wine
Because you traded Your life for mine
Sometimes my life it feels so trivial
Immersed in the greatness of space
Yet somehow you still find the time for me
It's then You show me Your love
And In Your eyes I can see
And in Your arms I will be
I am not just a man, vastly lost in this world
Lost in a Sea of Faces
Your body's the bread, Your blood is the wine
Because you traded Your life for mine
If only my one heart
Was all you'd gain from all it cost
Well I know you would have still been a man
With a reason
To willingly offer your life
I am not just a man, vastly lost in this world
Lost in a Sea of Faces
Your body's the bread, Your blood is the wine
Because you traded Your life for mine
Just one in a million faces
I see the city lights all around me
Everyone's obscure
Ten million people each with their problems
Why should anyone care
And in Your eyes I can see
I am not just a man, vastly lost in this world
Lost in a Sea of Faces
Your body's the bread, Your blood is the wine
Because you traded Your life for mine
Sometimes my life it feels so trivial
Immersed in the greatness of space
Yet somehow you still find the time for me
It's then You show me Your love
And In Your eyes I can see
And in Your arms I will be
I am not just a man, vastly lost in this world
Lost in a Sea of Faces
Your body's the bread, Your blood is the wine
Because you traded Your life for mine
If only my one heart
Was all you'd gain from all it cost
Well I know you would have still been a man
With a reason
To willingly offer your life
I am not just a man, vastly lost in this world
Lost in a Sea of Faces
Your body's the bread, Your blood is the wine
Because you traded Your life for mine
Just one in a million faces
Credits:
Kutless
youtube.com
sing365.com
Kutless
youtube.com
sing365.com
Subscribe to:
Posts (Atom)





