Home Original Content Funny Pictures Funny GIFs YouTube Funny Text Funny Movies Channels Search

hide menu
What do you think? Give us your opinion. Anonymous comments allowed.
User avatar #18 - waaw (06/01/2012) [-]
public class Shopping
{
public static Arraylist<Item> goToMarket
{
Arraylist<Item> cart = new Arraylist<Item>();
Item egg = new Item();
if (haveEggs)
{
for(int i = 0; i < 6; i++)
{
cart.add(egg);
}
}
else
{
cart.add(egg);
}
return cart;
}
}
User avatar #19 to #18 - waaw (06/01/2012) [-]
******* hell, they don't let you do multiple spaces. Imagine all the periods are space:

public class Shopping
{
..public static Arraylist<Item> goToMarket
..{
....Arraylist<Item> cart = new Arraylist<Item>();
....Item egg = new Item();
....if (haveEggs)
....{
......for(int i = 0; i < 6; i++)
......{
........cart.add(egg);
......}
....}
....else
....{
......cart.add(egg);
....}
....return cart;
..}
}
#24 to #19 - kainhall (06/01/2012) [-]
i have done some coding for a few games...this language looks interesting...what it is?
#25 to #24 - eckwritj (06/01/2012) [-]
C++ if memory serves.
#27 to #25 - kainhall (06/01/2012) [-]
figured. EXTRAMLY common.
User avatar #30 to #27 - waaw (06/03/2012) [-]
Actually it's Java, but they're pretty similar.
 Friends (0)