Archive for April, 2010

Anyone with really good Java Skills? Try this.?

April 30th, 2010

I’ve pasted a question before on java programming.But never quite got the answer I was expecting.This time,I’m approaching the other way around.Instead of asking for a code,I would like somebody to guess what this code*below*is all about…:)Ten points to whoever gets it right,it’s education.And if anyone’s learn Java before,try it.I might be helping you remember your skills again.And please,be more specific.HERE WE GO!

public class Cards {

public static void main(String[] argv) {
Card a = randomCard(), b = randomCard();
int comp = a.compare(b);
if(comp == 0)
System.out.println(a.toString() + ” = ” + b.toString());
else if(comp < 0)
System.out.println(a.toString() + " < " + b.toString());
else
System.out.println(a.toString() + " > ” + b.toString());
}

/**
* Generates a random card
* @return returns a randomly generated card object
*/
static Card randomCard(){
int suit = (int)(Math.random() * 100) % 4;
int value = (int)(Math.random() * 100) % 13;
return new Card(suit, value);
}
}

class Card {
/**
* Create a card has Suit s, value n
* @param s suit of the card with, possible values are:
0(club), 1(diamond), 2(heart), 3(spade)
* @param n value of the card 0 <= n <= 12
*/
public Card(int s, int n) {
suit = s;
num = n;
}

/**
* @return a string representation of the heart object.
*/
public String toString() {
String str = SuitString[suit] + ” ” + numStr[num];
return str;
}

public int toInt(){
return suit*100+num;
}

/**
* Compares the value of this card to the card c
* @param c the card to be compared to
* @return 0 if equal, less than 0 if less than, greater 0 otherwise.
*/
public int compare(Card c){
return this.toInt() – c.toInt();
}

int suit, num;
private static String SuitString[] = {“Club”, “Diamond”, “Heart”, “Spade”};
private static String numStr[] = {“A”, “2″, “3″,
“4″, “5″, “6″, “7″, “8″, “9″, “10″, “J”,
“K”, “Q”
};
}

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Rick Ross Goes On A $600K Shopping Spree! (New Whip & Black Diamonds Chain)

April 30th, 2010


Miami rapper Rick “The Boss” Ross goes on a shopping spree and spends nearly $600K. “Teflon Don” comin soon! Enjoy! Follow me on Twitter: twitter.com

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

It’s All Free For Seniors!

April 30th, 2010

Here Are Thousands Of Little-known Give-aways For People Over 55.
It’s All Free For Seniors!

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

If I ain’t got you – Alicia Keys (lyrics) – Ibrahim Siddique

April 30th, 2010


Some people live for the fortune Some people live just for the fame Some people live for the power yeah Some people live just to play the game Some people think that the physical things Define what’s within And I’ve been there before But that life’s a bore So full of the superficial Some people want it all But I don’t want nothing at all If it ain’t you baby If I ain’t got you baby Some people want diamond rings Some just want everything But everything means nothing If I ain’t got you Some people search for a fountain The promises forever young Some people need three dozen roses And that’s the only way to prove you love them Hand me a world on a silver platter And what good would it be? With no one to share, with no one who truly cares for me Some people want it all But I don’t want nothing at all If it ain’t you baby If I ain’t got you baby Some people want diamond rings Some just want everything But everything means nothing If I ain’t got you, you, you Some people want it all But I don’t want nothing at all If it ain’t you baby If I ain’t got you baby Some people want diamond rings Some just want everything But everything means nothing If I ain’t got you If I ain’t got you with me baby Nothing in this whole wide world don’t mean a thing If I ain’t got you with me baby

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Ladies Designer Diamond Ring from ItsHot.com Jewelry

April 29th, 2010


Ladies Designer Diamond Ring from ItsHot.com Jewelry; offers LUXURMAN diamond watches and jewelry, engagement wedding anniversary rings, earrings, pendants, bracelets, bangles, charms, necklaces, bling etc., all crafted from solid gold and genuine diamonds. Exquisite Ladies Diamond Rings!…

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Is African diamond smuggling still an issue?

April 29th, 2010

I have to do a project for my AP World History class about a problem going on somewhere in the world.
I remembered the movie Blood Diamond, and immediately thought of doing this as a problem.

Are there still problems within the African Diamond industry? Are there still groups committing genocide to get to these diamonds?

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

My uncle lost a small safe with 2,000 dollars and a diamond bracelet! What should he do?

April 29th, 2010

He called the police and they came but they barely did anything! Ther wasn’t any break-ins or broken windows! But he and the police think that the workers that fixed his roof took it! I feel really sorry and sad. But what could he do and what if he can’t get his stuff back, then what should he do?
Boy, these are some really bad advices!
People these days, so inmature!!! GROW UP, PEOPLE!!!!!!!!

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Powered by Yahoo! Answers