Victory Road Archive

You are viewing an archive of Victory Road.

Victory Road closed on January 8, 2018. Thank you for making us a part of your lives since 2006! Please read this thread for details if you missed it.

Technology → Java conversation

Page 1 of 1

1. Cat333Pokémon said on November 25, 2008, 08:10:23 AM (-08:00)

Administrator
10,307 posts

After this first post, all posts must be with Java (not JavaScript). Try to make it error-free if possible.

System.out.println("Welcome to the Java forum.\nHow are you?");

2. Yoshi648 said on November 25, 2008, 08:11:12 AM (-08:00)

Administrator
3,147 posts

System.out.println("I am fine.");

while(0<1){
System.out.println("I LIEK PIE!");
}

3. KingOfKYA said on November 25, 2008, 03:18:15 PM (-08:00)

Volcarona
523 posts

System.out.println("why not just you print or echo like other languages opinion of java below ");

while(java==sucks){
System.out.println("Stupid Java");
}

4. Blues said on November 25, 2008, 03:20:54 PM (-08:00)

Regigigas
867 posts

System.out.println("Erm...hello ");

while(I==may==not==understand==Java){
System.out.println("Copy and paste works well");
}

5. Yoshi648 said on November 25, 2008, 03:26:44 PM (-08:00)

Administrator
3,147 posts

System.out.println("You have no clue of what you just did");

6. Blues said on November 25, 2008, 03:30:53 PM (-08:00)

Regigigas
867 posts

System.out.println("Honestly I don't");

7. Yoshi648 said on November 25, 2008, 03:40:00 PM (-08:00)

Administrator
3,147 posts

array1.add("Then");
array1.add("don't");
array1.add("post");
array1.add("if");
array1.add("you");
array1.add("don't");
array1.add("get");
array1.add("it");

8. Cat333Pokémon said on November 25, 2008, 05:33:04 PM (-08:00)

Administrator
10,307 posts

int i = 0;
while (i < array1.length){
System.out.println(array1.get(i));
}

System.out.println("BlueHeat, your message does this:");
throw new CompileException("Your program doesn't run.");

9. Blues said on November 25, 2008, 05:36:04 PM (-08:00)

Regigigas
867 posts

int i = 0;
while (i < array1.length){
System.out.println(array1.get(i));
}

System.out.println("Moderator post deletion:");
throw new CompileException("OVER 9000.");

System.out.println("Java says:")
throw new CompileException("ROFL they must hate you.");

10. Cat333Pokémon said on November 25, 2008, 05:47:30 PM (-08:00)

Administrator
10,307 posts

Code:
/*
 * This actually runs.
*/
public static void main(String[] args)
{
    //You seriously just told me that I don't know Java.
    //And why are you just copy-pasting?
    System.out.println("-------------------\nX ");
    System.out.printf("%13.7f", d(5,7));
    System.out.print("   X\n-------------------\n");
}

public float d(int div, int di)
{
    return (float)(div) / (float)(di);
}

//Tell me exactly what this prints.

11. Yoshi648 said on November 25, 2008, 05:49:29 PM (-08:00)

Administrator
3,147 posts

System.out.print("Yeah, if you can't answer that you shouldn't be posting here");

12. Blues said on November 25, 2008, 05:50:36 PM (-08:00)

Regigigas
867 posts

System.out.print("uh oh trouble");

13. Cat333Pokémon said on November 25, 2008, 05:52:33 PM (-08:00)

Administrator
10,307 posts

//You get 10 minutes (starting now) to figure it out.

14. Yoshi648 said on November 25, 2008, 05:53:07 PM (-08:00)

Administrator
3,147 posts

//Yeah, and if there is no reply, then you can't speak on this board.

15. Cat333Pokémon said on November 25, 2008, 06:06:26 PM (-08:00)

Administrator
10,307 posts

/*
* Bye bye!
* It prints this:
*/

Code:
-------------------
X     0.7142857   X
-------------------

16. Yoshi648 said on November 25, 2008, 06:09:52 PM (-08:00)

Administrator
3,147 posts

for(int i=0; i<100; i++){
System.out.println("OWNED");
}

17. SpaceMan++ said on December 5, 2008, 08:24:58 PM (-08:00)

Zoroark
288 posts

Code:
package com.uniteduniverse.libs;

/**
 * isPrime library
 * @version 1.0
 * @author SpaceMan
 */
public class isPrime
{
	/**
	 * Check if the integer is a prime number
	 * @return boolean Is the integer prime?
	 * @param integer The integer to be tested
	 */
	public static boolean isPrime(int integer)
	{
		for (int i = 2; i < integer; i ++)
		{
			if (integer % i == 0)
			{
				return false;
			}
		}
		return true;
	}
}

18. §ethi Xzon said on July 30, 2009, 07:54:44 PM (-07:00)

Floatzel
150 posts

public static string
System.out.print("This returns a compiling error ");
for I = 7 public class 1 99

19. Serenade said on September 21, 2009, 08:02:33 PM (-07:00)

Volcarona
617 posts

static String sPhrase = "I Just started learning java like 2 weeks ago, so this all makes some since";
System.out.println(sPhrase);
System.out.println(sPhrase.substring(8,28)+" are several random words/letters.');

//and thats about all I can do so far, I just learned how to ask for input.
//I made a mistake didnt I?

20. Cat333Pokémon said on September 25, 2009, 10:00:54 AM (-07:00)

Administrator
10,307 posts

Code:
public static void main(String [] args){
   object giratina;
   object shaymin;
   if (snack(giratina, shaymin)){
      System.out.println("It's going to eat me!");
   }
   else{
      System.out.println("Well, I don't like Giratina. That monster tried to eat me!");
   }
}

public int snack(object mouth, object food){
   if (eat(mouth, food) = true) { return 0; }
   else { return 1; }
}

public boolean eat(object mouth, food){
   //add eating code here
}

21. randoguy101 said on April 6, 2010, 06:27:49 PM (-07:00)

Volcarona
688 posts

Code:
public class *****
{
	public static void main(String[] args)
	{
		int postcount = 0;
		while (postcount<1000000)
		{
			System.out.print("DESU ");
			postcount++;
			if (postcount==1000000)
			{
				System.out.println("Also, The Game");
			}
		}
	}
}

22. Velociraptor78 said on May 26, 2010, 10:27:45 PM (-07:00)

Regigigas
803 posts

The last Java thread is in captivity.
The rest have all been locked.

23. randoguy101 said on June 2, 2010, 03:29:12 PM (-07:00)

Volcarona
688 posts

do {
System.out.println("Hey no you have to speak in Java");
}
while (threadLocked = false);

Page 1 of 1

User List - Contact - Privacy Statement - Lycanroc.Net