Thursday, March 20, 2008

List of People i have offened

/**
* For all the people i done bad , this is what i ask.
* I wonder what the output will be?
*
**/
public class People {

String me = "Amin";
String person[];
int noOfpeople = unlimited;
boolean accept = 0;

public People() {
}

// forgiveness method

public boolean askForgiveness(){

// looping though everyone for the past 28 years
for(int i=0; i<=noOfpeople; i++){
accept= Amin.ask.forgiveness(person[i]);
if(accept){
person[i-1];
return accept
}
// else method call you self again
else{
People p= new People().askForgiveness();
accept = 0;
}
}

return accept;
}

}

3 comments:

wannabe_doctor said...

lolz. its been over 2 years since ive seen a C++ program and then I check ure blog to see an amazing one.

Amin said...

Hehe, its one of those things at the early mornings, so what links Medcine to C++??

wannabe_doctor said...

I took Computer Science in high school... it was one of those optional subjects you could take. I was good so I took it! And in high school I really wasn't sure if I was going to take medicine or not.