Monday, May 26, 2014

Java: Arraylist

A bit introduction:
  Arraylist is a class in java.
  A constructor must be made for adding the data

Initialization:
   ArrayList list = new ArrayList();
Adding data:
   list.add(new Student(matric, name, totalpoint, totalCH, gpa, cgpa));

Retrieving data:
   double cgpa= student.getCGPA();

Update data:
   student.setTotalPoint(tp);

To go through the list / iterating through the list :
   for (senior student : list2) 
   { //to do code here
   }

Getting list size/length:
   int s= list2.size();

Getting specific element of list:
   for(int i =0; i
   {   list.get(i).getcgpa()
   }

Swapping element of list:
   list.set(i, list.get(i+1));    // listname.set(list index, new element)

Printing list:
   for(senior l: list)
      System.out.println(l.toString()); // where t.String method is the method in Student constructor

Tuesday, January 25, 2011

regret

im regreating my past.
regret for what i've done and what i've left.
i thanked Allah for a trillions times for the awareness.
maybe the time had came.
the time where everything should be change
according to what we've done, we had not much times actually
but still we had something that Allah endowed us
something that being award to every living life
something that could make we're feel like just having a bath.
cold, pleasant & cozy
that something is called "DOA" & "SOLAT"
its a must that we have to solat.
to make us success and been protect in this small world
to make us can enjoy the true live
and to make us adore the God

its only a marginal regretness from me.
still i have a lot to be regret.
with the God permission, i'll keep try and try ;)

Wednesday, December 1, 2010

1st December 2010

1st December of 2010 was awesome!! went out with girfies,  nouru na, pia dudin, asmaa' amirah and syuhada shafee, enjoyed the night funkly and forgetting all the stressful thingy. we went to many places of TERENGGANU. ehh, sounds suspicious! hahah. but then the night turns dark when i lost beloved phone gave by my father. hmm. a great day indeed *but still i missed that phone. huu ;(

Wednesday, November 10, 2010

FAULT



it wasnt my fault
when i saw ur ****d picture together
it wasnt my fault
when i gave u a sympathy
it wasnt my fault
when i gave u a chance
it wasnt my fault
when i gave u a beaming smile
it wasnt my fault
when i lied for your sake
it wasnt my fault
when i became rude with you
it wasnt my fault
when u cried for me
it wasnt my fault
when the time is over
it wasnt my fault
when i leave you
it wasnt my fault
when u said i am cruel
and it was my fault
when u said u hate me
when i saw myself how much u hate me
when i hate the way u hate me
when i said IMISSYOU!


Wednesday, October 20, 2010

Life In Campus

life in campus is all about the FRIENDS. if a friend was selected in ACCORDANCE with us, then life will be viewed as a BEAUTIFUL life. But! If the selected partner is like a DEVIL, then our existing life will be SORROW. Friends like these will make our eyes always flow on the TEARS, runny our noses and we will cause the strong pressure to our MIND and CRASH it. sometimes they will be the one who make us LAUGH all the times. but it was only 30%. they are more into make us SAD than make us SMILE.

Sunday, October 10, 2010

I MISS YOU, HOME!

Even you are small as the cave,i always MISS YOU!

Even u are crowded as "pasar malam", i still MISS YOU!

the noisy made from u deaf my ears
the yummy taste of you full my tummy
the brightness of your wall blind me
and the smell of u stuck my nose
i really MISS YOU!

I miss all the people on you
i miss when one by one started to yelling at each other when it was the dinner time
i miss when mum started to bubbling every dawn in the morning
i miss when daddystarted car's engine and volume up his terengganu F.M chanel
i miss when kaklong bought us many clothes

i miss my mimie'shandmade food
i miss the "dush dush" from my funny brother
i miss the jokes from my stupid yaya
i miss when aizat sulking

i miss when people called NINA "boroi"
i miss the smell of danial

i miss to have a talk with ADIK & BABY
and the most i miss was ayeh's laughter :'(

Thursday, August 19, 2010

TAK

tak semua yang dicipta itu menjadi
melainkan yg dicipta-Nya
tak semua yang dicipta itu buruk
andai batas-batasnya diteroka

tak salah mencuba
andai keyakinan itu teguh
tak salah mencuba
andai kebenaran itu sukar

tak perlu membenci
andai terasa dihati
tak perlu mencaci
andai hati membenci

tak usah mengerti
andai sukar difahami
tak usah mengerti
andai tiada kejujuran di hati

tak mudah menulis
andai pengetahuan tak mencukupi
tak mudah juga membaca
andai pengetahuan sebesar kuman