Ad

Tuesday, March 10, 2009

public class IndianCricket :: Method shouldSachinRetire

For Sachin Fans :-)

public class IndianCricket {

// constructor
public IndianCricket() {
System.out.println("Welcome to IndianCricket. This class give output of should sachin retire or not");
}

public void shouldSachinRetireOrNot() {
// if will be decided by 3 categories of people media, fans and sachin himself.
mediaJudgement();
fansJudgement();
sachinJudgement();
}

private void mediaJudgement() {
// get sachin last 5 scored and calculate average and then analyse.
int sachinLastFiveScores = ICC_Data(Sachin);
int average = sachinLastFiveScores/5;

if(average < 30)
System.out.println("Sachin has gone old, he should retire and let youngsters be allowed to show their potential");
System.out.println("Is this the same Sachin we used to love !! No his time has gone now.");
}
else {
System.out.println("Sachin is a great player, he should carry on...");
}

// Get Result of India last five matches played and then analyse.
int indiaLastFiveMatchesResults = ICC_Data(India);

if(indiaLastFiveMatchesResults == Loss) {
System.out.println("Sachin has not won much for India!! He plays for himself");
System.out.println("Sachin always fails in big matches");
// they show some matches' details in which sachin has failed.
System.out.println("Here you can see the data how he has failed in big matches");
}
else {
System.out.println("Sachin is legend he has won India many matches !! India and we are proud of him");
}

if((average <>indiaLastFiveMatchesResults == Loss) ) {
String NDTV;
String CNN_IBN;
String India_TV;
String OtherNews;

NDTV= startWalkTheTalk("Should Sachin Retire Gracefully now? Discuss !! Barkha Dutt");
CNN_IBN = startFaceTheNation("Should Sachin Retire Gracefully now? Discuss !! Sagarika Ghosh");
India_TV = startDiscussion-with-Facts("yeh dekhiye sachin kaise pehle run banate the ab pata nahi kya ho gaya hai inko!! Kya yeh wahi sachin hai !! ");
OtherNews = start("Should he retire now!! Should BCCI selectors give some one younger a chance? ");
}
}

public int ICC_Data(String PlayerName_CountryName) {
return data;
}

public void fansJudgement() {
// fans will be divided into two categories true cricket lovers and evangelists and others just game watchers.
cricketEvangelists();
justGameWatchers();
}

public void cricketEvangelists() {
boolean anything;
if(Anything) {
// for cricket Evangelists
System.out.println("Sachin is a legend and he has done what no other player has done to India.");
System.out.println("He will retire by himself when he will feel his interests level is not the same");
System.out.println("We bow to sachin he is God");
}
}

public void justGameWatchers() {
if(India_Loosing) {
System.out.println("These players dont do anything! They dont practice hard");
System.out.println("They always do ads and roam around with celebrities");
System.out.println("Some fanatics will burn effigies of players");
}

if(Sachin_Not_Scoring) {
System.out.println("Sachin is old now he should retire");
System.out.println("Selectors should bring some new face");
} else {
System.out.println("Sachin is our hope and true hero");
System.out.println("We never miss him playing");
}
}

public void sachinJudgement() {
System.out.println("I will retire when my time will come! I am loving the game and enjoying it");
}

public static void main(String args[]) {
IndianCricket obj = new IndianCricket();
obj.shouldSachinRetireOrNot();
}
}

Some compilation errors may creep in :-)


3 comments:

giri said...

awesome post lucy darling.....i felt bad that I have not written a post for a long time......thats why I emailed you.......but then you wanted me to post it here.........anyways....N1

jaine said...

Great post ... Lucy !
Makes me nostalgic about 2 things ... worshipping sachin and of course programming !!

Prabhu Dutta Das said...

I have always thought that this post is coming!
Timing could not have been apt!