Rebirth of T-rex

Does dinosaur really extinct? What caused the dinosaur to vanish? Have you ever wonder whether the real 'you' is disappearing and slowly vanishing? Hope that through this blog, we will be able to maintain the real self.

First Java Program with J2SE 5.0 New Feature

Posted by T-rex Lim Huat Heng

Happy New Year to everyone! New resolutions for a new year. As I was still pin down by sickness, coughing seriously, no special celebration was undergone for this new year. I felt pretty sorry for not able to join my sister and friends back in PJ on the new year eve.

Anyway, I ended the day with a simple Java program, in fact, the first Java program with the new features introduced in J2SE5.0 (Tiger), in particularly enhanced for loop.

I wrote the program using JCreator, a light weight Java IDE. You can obtain a free JCreator LE (Build 3.50.009) at http://www.jcreator.com/download.htm.

Besides, you must have JDK 5.0 in place; I would recommend you download and install JDK 5.0 Update 1 (from http://java.sun.com/j2se/1.5.0/download.jsp) as that's the latest release. Ensure the JAVA_HOME is added in the environment variable, please refer to my previous posting- Hypersonic SQL (http://trexlim.blogspot.com/2004/12/hypersonic-sql.html) for reference.

You are required to set the compiler to the used in JCreator. Launch JCreator and select Configure > Options from the menu. Click on JDK Profiles and click on New button, then browse to JAVA_HOME. Click OK button and then Apply button.

The following is the source code I have written:
import java.util.ArrayList;

public class Test {
   public static void main(String[] args) {

      // Create a new list and add some strings to it
      ArrayList mylist = new ArrayList();
      mylist.add("a");
      mylist.add("b");
      mylist.add("c");

      // Use enhanced for loop to show the element added into the list
      for(String str : mylist) {
         System.out.println(str);
      }
   }
}

After you compile (using menu Build > Compile in JCreator) the above (provided no compilation error) and run the program (via menu Build > Execute File in JCreator), the following should be the expected output printed on the console:
a
b
c

200 comments:

Anonymous said...

ko, wish u all the very best in ur java exam!!!

Anonymous said...

tramadol online what does tramadol 50 mg look like - tramadol 50 mg equivalent to hydrocodone

Anonymous said...

buy tramadol medication overdose symptoms for tramadol - tramadol no prescription cod

Anonymous said...

buy tramadol online buy tramadol mastercard - buy tramadol with paypal

Anonymous said...

buy tramadol overnight cod tramadol ultram narcotic - tramadol 50 mg drug facts

Anonymous said...

klonopin pill klonopin no prescription needed - pics of 2mg klonopin

Anonymous said...

order tramadol no prescription tramadol 50 mg online pharmacy - tramadol hcl recreational dosage

Anonymous said...

tramadol generic buy tramadol online new zealand - tramadol quickly does work

Anonymous said...

cheap tramadol no prescription tramadol online no prescription usa - tramadol online usa

Anonymous said...

klonopin 2mg klonopin withdrawal half life - klonopin dosage panic attacks

Anonymous said...

zolpidem online buy ambien cr - ambien music radio online free

Anonymous said...

buy tramadol tramadol hcl injection - tramadol dosage for opiate withdrawal

Anonymous said...

buy clonazepam online taking klonopin for anxiety - day 5 klonopin withdrawal

Anonymous said...

tramadol online tramadol hcl apap - tramadol high energy

Anonymous said...

buy tramadol cheap tramadol 50mg vs. lortab 10mg - tramadol 50 mg reviews

Anonymous said...

soma cheap different soma pills - soma 10mg

Anonymous said...

buy ambien online without prescription fighting ambien sleep - what is ambien cr

Anonymous said...

buy tramadol online tramadol 50 mg buy online - tramadol 50mg webmd

Anonymous said...

klonopin buy 2mg klonopin no tolerance - klonopin dosage severe anxiety

Anonymous said...

buy tramadol online mastercard overnight tramadol 50 mg strength - tramadol online international

Anonymous said...

ambien pharmacy stop sleepwalking ambien - generic ambien usa

Anonymous said...

buy tramadol online tramadol drug class - high von tramadol

Anonymous said...

cheap lorazepam cheap ativan no prescription - ativan side effects hives

Anonymous said...

soma online buy soma online $0.45 each - soma muscle relaxer vicodin

Anonymous said...

generic ambien can get ambien online - buy ambien from usa

Anonymous said...

buy ativan ativan addiction anxiety - ativan dose get high

Anonymous said...

order tramadol online mastercard cheap tramadol on line - order tramadol paypal

Anonymous said...

can you buy ambien online ambien 10mg stories - ambien overseas pharmacy

Anonymous said...

soma pain just pills soma - soma scheduled drug nevada

Anonymous said...

buy zolpidem where can i buy cheap generic ambien - purchase ambien no prescription

Anonymous said...

buy tramadol saturday delivery can you overdose tramadol - vicodin vs ultram tramadol

Anonymous said...

tramadol online overnight where to buy tramadol online safely - tramadol 50 mg tab amne

Anonymous said...

ambien online time between ambien and alcohol - ambien side effects joint pain

Anonymous said...

where to buy tramadol buy tramadol cod next day delivery - ok take 2 50mg tramadol

Anonymous said...

ambien drug ambien cr there generic - ambien cr side effects liver

Anonymous said...

buy tramadol the tramadol high - tramadol 50mg for dogs side effects

Anonymous said...

buy ambien online ambien cr get off - ambience mall gurgaon address

Anonymous said...

buy tramadol 180 how long does tramadol high last - tramadol high blood pressure

Anonymous said...

buy tramadol online illegal buy tramadol online uk - buy tramadol with cod

Anonymous said...

order viagra without rx online generic viagra review - viagra triangle bars

Anonymous said...

buy tramadol overnight delivery buy tramadol online mastercard - tramadol high altitude

Anonymous said...

carisoprodol without prescription soma muscle relaxant review - soma for muscle cramps

Anonymous said...

sildenafil no prescription buy viagra online genuine - viagra buy new zealand

Anonymous said...

klonopin medication vicodin klonopin erowid - legal buy klonopin online

Anonymous said...

buy tramadol for dogs tramadol high dose - tramadol 50mg and dogs

Anonymous said...

how to order viagra online safely buy viagra in tijuana - buy viagra online next day delivery uk

Anonymous said...

buy ambien online ambien for getting high - buy generic ambien canada

Anonymous said...

buy klonopin online klonopin order online no prescription - will snorting klonopin get you high

Anonymous said...

buy tramadol with paypal order tramadol online 100mg - buy tramadol from india

Anonymous said...

ambien drug does 5mg generic ambien look like - ambien generic 5mg

Anonymous said...

buy soma do soma pills expire - cheap hotels soma bay

Anonymous said...

buy klonopin online klonopin max dose - klonopin for dogs anxiety

Anonymous said...

klonopin online seroquel klonopin overdose - klonopin side effects bipolar

Anonymous said...

viagra drug viagra online free shipping - viagra buy online uk

Anonymous said...

buy ambien no prescription ambien side effects back pain - ambien cr overdose

Anonymous said...

viagra online buy viagra no prescription uk - can you buy viagra in dubai

Anonymous said...

generic carisoprodol soma medication class - soma muscle relaxant drug

Anonymous said...

buy ambien online cheapest place buy ambien - street price ambien 10 mg

Anonymous said...

tramadol cheap buy tramadol online in florida - buy tramadol cheap no prescription

Anonymous said...

generic ambien get off ambien medication - zolpidem or ambien cr

Anonymous said...

buy viagra cheap order viagra or cialis online - cheap viagra canada online

Anonymous said...

cheap sildenafil buy cheap pfizer viagra online - generic viagra express shipping

Anonymous said...

buy viagra online legally viagra cialis levitra online pharmacy - buy real viagra cheap

Anonymous said...

klonopin online pharmacy generic klonopin doesn't work - klonopin jittery

Anonymous said...

tramadol online how much tramadol dosage - 50mg of tramadol

Anonymous said...

buy viagra usa where to buy viagra online forum - order viagra legally

Anonymous said...

buy klonopin online klonopin withdrawal vision - is generic klonopin as good as brand name

Anonymous said...

ambien for sale withdrawal of ambien cr - ambien side effects skin rash

Anonymous said...

buy viagra online viagra online fast shipping - how to buy viagra online legally

Anonymous said...

cialis online can you order cialis online - target pharmacy price cialis

Anonymous said...

buy viagra online buy viagra professional - buy real viagra online canada

Anonymous said...

generic carisoprodol soma drug pregnancy - soma xpress tires

Anonymous said...

viagra online where can i buy viagra online safely - viagra without prescriptions paypal

Anonymous said...

order tramadol online mastercard buy tramadol online visa - tramadol hcl for migraines

Anonymous said...

soma without prescription soma medication pregnancy - soma other drug interactions

Anonymous said...

order viagra cheap viagra buy online canada - viagra what dosage

Anonymous said...

buy viagra viagra online amazon - can you buy viagra no prescription

Anonymous said...

viagra sildenafil buy viagra ebay - generic viagra best online pharmacy

Anonymous said...

sildenafil tablets generic viagra pharmacy - generic viagra canada online pharmacy

Anonymous said...

buy viagra cheap common viagra dosage - viagra dooz 99000

Anonymous said...

buy viagra online viagra kwikmed - the online pharmacy viagra

Anonymous said...

order viagra overnight buy viagra gold - buy anti viagra now

Anonymous said...

buy tramadol cash on delivery zydol tramadol overdose - good site buy tramadol

Anonymous said...

buy cialis 20mg cialis 5mg user reviews - cialis e20 review

Anonymous said...

tramadol online tramadol with no prescription needed - buy tramadol without rx

Anonymous said...

generic tramadol 4 50 mg tramadol - tramadol hcl 50 mg dogs

Anonymous said...

buy tramadol cheap online legitimate online pharmacy tramadol - tramadol withdrawal insomnia

Anonymous said...

generic finasteride propecia 5mg side effects - propecia generic form

Anonymous said...

cheap propecia online order propecia online from canada - generic propecia from canada

Anonymous said...

strattera cost buy strattera cheap - drug classification of strattera

Anonymous said...

buy tramadol tramadol snort - tramadol hcl strength

Anonymous said...

propecia 1mg propecia side effects men's health - propecia cost in the uk

Anonymous said...

tramadol no rx tramadol vs percocet - where can i order tramadol

Anonymous said...

buy tramadol can you buy tramadol - tramadol online american express

Anonymous said...

cheap generic propecia cheap propecia 5mg - generic propecia safety

Anonymous said...

tramadol online pharmacy tramadol hcl paracetamol - tramadol online com

Anonymous said...

buy tramadol with cod tramadol withdrawal during pregnancy - tramadol to buy usa

Anonymous said...

buy tramadol overnight need purchase tramadol - tramadol withdrawal newborns

Anonymous said...

buy tramadol online safe take 2 50mg tramadol - where to buy tramadol safely

Anonymous said...

buy tramadol online tramadol same high as vicodin - tramadol no prescription usa

Anonymous said...

tramadol online tramadol 50mg cost - buy tramadol online worldwide

Anonymous said...

purchase propecia propecia coupon program - buy propecia hong kong

Anonymous said...

buy tramadol buy tramadol online from canada - 400 mg tramadol high

Anonymous said...

tramadol buy tramadol no prescription needed - tramadol 37.5 325 dosage

Anonymous said...

order tramadol many 50mg tramadol overdose - tramadol online 180

Anonymous said...

tramadol online tramadol buy online usa - buy discount tramadol

Anonymous said...

buy tramadol overnight cod buy-tramadol-online - 100mg of tramadol high

Anonymous said...

tramadol 50 mg tramadol 100 mg street value - buy tramadol in usa

Anonymous said...

buy tramadol tramadol no prescription overnight - tramadol withdrawal many days

Anonymous said...

buy generic viagra cheap viagra online prescription - cheap viagra soft tabs

Anonymous said...

buy tramadol tramadol 100 er - buy tramadol for dogs online

Anonymous said...

cheap viagra online generic viagra equivalent - buy viagra online cheap no prescription

Anonymous said...

buy tramadol tramadol online rx - tramadol 400

Anonymous said...

tramadol 50 mg tramadol extended release tablets - tramadol overdose how many tramadol does it take

Anonymous said...

cheap viagra viagra diaries - viagra buy manchester

Anonymous said...

buy tramadol just pills order tramadol online - buy ultram generic

Anonymous said...

tramadol 50 mg gabapentin and tramadol for dogs - buy tramadol online visa

Anonymous said...

buy tramadol tramadol dosage weight - tramadol hcl urine drug test

Anonymous said...

cheap viagra viagra online order no prescription - buy viagra locally

Anonymous said...

buy cialis cialis buy - generic cialis australia

Anonymous said...

buy tramadol buy cheap tramadol overnight - tramadol dosage rat

Anonymous said...

viagra online without prescription who has bought viagra online - purchase viagra melbourne

Anonymous said...

generic viagra buy viagra from us - can you buy viagra online in us

Anonymous said...

sildenafil citrate buy viagra online thailand - buy viagra toronto

Anonymous said...

cheap generic viagra buy viagra germany - buy viagra online yahoo answers

Anonymous said...

buy tramadol online no prescription tramadol dosage human - buy tramadol online from uk

Anonymous said...

discount viagra generic viagra quality - buy viagra online cheap us

Anonymous said...

cheap viagra how to buy viagra in boots - viagra online ireland

Anonymous said...

viagra online without prescription safe buy viagra online us - viagra every day dosage

Anonymous said...

generic cialis cheap cialis with prescription - generic cialis manufacturers india

Anonymous said...

cialis medication cialis high blood pressure - cialis daily or 36

Anonymous said...

cheap viagra buy viagra online from usa - where to buy viagra in kl

Anonymous said...

buy cialis cialis daily voucher - low dose cialis online

Anonymous said...

viagra online without prescription generic viagra best price - is it dangerous to buy viagra online

Anonymous said...

generic viagra buy viagra online overnight delivery - does viagra work for paraplegics

Anonymous said...

cheap viagra online viagra facts - cheapest generic viagra us

Anonymous said...

buy soma online soma bras amazon - soma medication wiki

Anonymous said...

buy soma online reviews for soma bras - soma for muscle cramps

Anonymous said...

viagra online generic viagra buy us - buy viagra online yahoo answers

Anonymous said...

generic cialis cialis vs viagra buy online - cheap cialis uk suppliers

Anonymous said...

buy tadalafil cialis price with prescription - generic cialis at cvs

Anonymous said...

cialis online cialis daily available nhs - cialis 72 ore

Anonymous said...

soma for sale soma san diego wikipedia - cheap soma pills

Anonymous said...

buy cialis buy cialis canada pharmacy - cialis men

Anonymous said...

buy cialis cialis daily does it work - typical price cialis

Anonymous said...

cialis online cialis online pharmacy scams - buy brand name cialis online

Anonymous said...

viagra online cheap female viagra online - viagra heart attack

Anonymous said...

buy soma online online somali dating - soma bras san diego

Anonymous said...

generic viagra cheap viagra online fast shipping - viagra buy online no prescription us

Anonymous said...

cheap viagra viagra recreational use - can you buy viagra in qatar

Anonymous said...

buy soma online cheap soma overnight delivery - soma muscle relaxer and alcohol

Anonymous said...

buy soma online soma underwear - soma half ironman

Anonymous said...

viagra online generic viagra us no prescription - where to buy viagra in la

Anonymous said...

buy soma will soma show up on drug test - soma muscle relaxer fibromyalgia

Anonymous said...

buy soma soma medication online pharmacy - buy soma online canadian pharmacy

Anonymous said...

soma drug soma drug test information - online soma fedex

Anonymous said...

buy soma buy soma online without rx - soma pills good

Anonymous said...

order soma online buy generic soma - soma urban pursuit

Anonymous said...

soma for sale soma drug forum - soma drug test

Anonymous said...

cheap soma online soma generic vs watson - buy soma louisiana

Anonymous said...

soma medication soma muscle relaxer medication - buy soma no script

Anonymous said...

soma online soma pill v - soma drug facts

Anonymous said...

generic soma soma drug movie - soma withdrawal

Anonymous said...

buy soma online soma drug dose - soma online store

Anonymous said...

buy retin-a retin a cream eyes - retin a micro insurance coverage

Anonymous said...

buy tramadol online without a prescription where can you buy tramadol over the counter - tramadol for dogs effects

Anonymous said...

tramadol cheap tramadol no prescription - tramadol hcl taken with tylenol

Anonymous said...

buy tramadol tramadol dosage maximum - buy tramadol online illegal

Anonymous said...

buy cialis online buy cialis reviews - generic cialis buy us

Anonymous said...

buy tramadol online no prescription cheap tramadol order online overnight - best place buy tramadol tk

Anonymous said...

buy retin-a can you buy retin a cream over the counter - retin a micro molluscum

Anonymous said...

tramadol online overnight where to buy ultram - tramadol 100mg online overnight

Anonymous said...

purchase tramadol tramadol with valium high - get prescription online tramadol

Anonymous said...

buy retin a buy retin a micro online - retin-a cream long term effects

Anonymous said...

cheap tramadol buy tramadol cod personal check - buy-tramadol-online.org

Anonymous said...

buy tramadol with paypal tramadol 50mg capsules for dogs - is it legal to get tramadol online

Anonymous said...

buy tramadol 100mg online tramadol recreational high - buy tramadol for dogs uk

Anonymous said...

buy retin a ortho neutrogena retin a cream - retin a cream brands

Anonymous said...

cheap tramadol buy 300 mg tramadol - can i get high off tramadol

Anonymous said...

tramadol no prescription tramadol dosage for goats - tramadol hcl dosage

Anonymous said...

tramadol online tramadol online delivered florida - tramadol for dogs for humans

Anonymous said...

buy tramadol with mastercard tramadol dosage oral - tramadol tablets dogs dosage

Anonymous said...

buy tramadol cod overnight tramadol withdrawal long - buy tramadol online overnight fedex

Anonymous said...

order tramadol online overnight buy tramadol online missouri - tramadol drug buyers

Anonymous said...

cheap tramadol tramadol 50mg vs tylenol 3 - good site buy tramadol

Anonymous said...

buy tramadol without a script tramadol 50 mg and breastfeeding - tramadol 80 mg

Anonymous said...

cheap tramadol inurl forum buy cheap tramadol - tramadol 50mg vet

Anonymous said...

buy tramadol overnight shipping tramadol 50mg much - what is tramadol high like

Anonymous said...

buy generic tramadol no prescription dose of tramadol - buy tramadol no rx

Anonymous said...

xanax online buy xanax online no prescription cheap - xanax bars oxycontin

Anonymous said...

tramadol online get high tramadol hcl 50mg - illegal buy tramadol online

Anonymous said...

buy tramadol rx tramadol hcl 50 mg para que sirve - buy tramadol legally online

Anonymous said...

xanax medication 5-htp and xanax drug interactions - xanax for dogs

Anonymous said...

tramadol online tramadol medication addiction - tramadol overnight no prescription mastercard

Anonymous said...

tramadol online buy tramadol online no prescription cheap - tramadol dosage humans weight

Anonymous said...

buy cialis daily cialis over the counter - cialis online in the usa

Anonymous said...

xanax online long term effects xanax - xanax generic vs

Anonymous said...

klonopin for sale can i buy clonazepam online - generic klonopin walmart

Anonymous said...

order klonopin online klonopin 2012 - effective klonopin dosage

Anonymous said...

buy klonopin online klonopin job interview - klonopin good opiate withdrawal