Victory Road  

Go Back   Victory Road > General > Technology
FAQ Community Today's Posts Search

Notices

 
 
Search this Thread
  #1  
Old November 25, 2008, 07:10:23 AM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Java conversation

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  
Old November 25, 2008, 07:11:12 AM
Yoshi648's Avatar
Yoshi648 Yoshi648 is offline
Administrator

 
Join Date: Nov 2006
Location: Yoshi's Island
Posts: 3,147
Default Re: Java conversation

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

while(0<1){
System.out.println("I LIEK PIE!");
}
  #3  
Old November 25, 2008, 02:18:15 PM
KingOfKYA's Avatar
KingOfKYA KingOfKYA is offline
Volcarona
 
Join Date: Sep 2008
Location: On The PC
Posts: 523
Default Re: Java conversation

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  
Old November 25, 2008, 02:20:54 PM
Blues's Avatar
Blues Blues is offline
Regigigas
 
Join Date: Sep 2008
Posts: 867
Default Re: Java conversation

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

while(I==may==not==understand==Java){
System.out.println("Copy and paste works well");
}
  #5  
Old November 25, 2008, 02:26:44 PM
Yoshi648's Avatar
Yoshi648 Yoshi648 is offline
Administrator

 
Join Date: Nov 2006
Location: Yoshi's Island
Posts: 3,147
Default Re: Java conversation

System.out.println("You have no clue of what you just did");
  #6  
Old November 25, 2008, 02:30:53 PM
Blues's Avatar
Blues Blues is offline
Regigigas
 
Join Date: Sep 2008
Posts: 867
Default Re: Java conversation

System.out.println("Honestly I don't");
  #7  
Old November 25, 2008, 02:40:00 PM
Yoshi648's Avatar
Yoshi648 Yoshi648 is offline
Administrator

 
Join Date: Nov 2006
Location: Yoshi's Island
Posts: 3,147
Default Re: Java conversation

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  
Old November 25, 2008, 04:33:04 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Re: Java conversation

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  
Old November 25, 2008, 04:36:04 PM
Blues's Avatar
Blues Blues is offline
Regigigas
 
Join Date: Sep 2008
Posts: 867
Default Re: Java conversation

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  
Old November 25, 2008, 04:47:30 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Re: Java conversation

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  
Old November 25, 2008, 04:49:29 PM
Yoshi648's Avatar
Yoshi648 Yoshi648 is offline
Administrator

 
Join Date: Nov 2006
Location: Yoshi's Island
Posts: 3,147
Default Re: Java conversation

System.out.print("Yeah, if you can't answer that you shouldn't be posting here");
  #12  
Old November 25, 2008, 04:50:36 PM
Blues's Avatar
Blues Blues is offline
Regigigas
 
Join Date: Sep 2008
Posts: 867
Default Re: Java conversation

System.out.print("uh oh trouble");
  #13  
Old November 25, 2008, 04:52:33 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Re: Java conversation

//You get 10 minutes (starting now) to figure it out.
  #14  
Old November 25, 2008, 04:53:07 PM
Yoshi648's Avatar
Yoshi648 Yoshi648 is offline
Administrator

 
Join Date: Nov 2006
Location: Yoshi's Island
Posts: 3,147
Default Re: Java conversation

//Yeah, and if there is no reply, then you can't speak on this board.
  #15  
Old November 25, 2008, 05:06:26 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Re: Java conversation

/*
* Bye bye!
* It prints this:
*/
Code:
-------------------
X     0.7142857   X
-------------------
  #16  
Old November 25, 2008, 05:09:52 PM
Yoshi648's Avatar
Yoshi648 Yoshi648 is offline
Administrator

 
Join Date: Nov 2006
Location: Yoshi's Island
Posts: 3,147
Default Re: Java conversation

for(int i=0; i<100; i++){
System.out.println("OWNED");
}
  #17  
Old December 5, 2008, 07:24:58 PM
SpaceMan++'s Avatar
SpaceMan++ SpaceMan++ is offline
Zoroark
 
Join Date: Aug 2008
Location: BC
Posts: 288
Default Re: Java conversation

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  
Old July 30, 2009, 06:54:44 PM
§ethi Xzon §ethi Xzon is offline
Floatzel
 
Join Date: Nov 2008
Posts: 150
Default Re: Java conversation

public static string
System.out.print("This returns a compiling error ");
for I = 7 public class 1 99
  #19  
Old September 21, 2009, 07:02:33 PM
Serenade's Avatar
Serenade Serenade is offline
Volcarona
 
Join Date: May 2009
Location: Ryndafar- WAY beyond anything yo
Posts: 617
Default Re: Java conversation

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  
Old September 25, 2009, 09:00:54 AM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Re: Java conversation

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  
Old April 6, 2010, 05:27:49 PM
randoguy101's Avatar
randoguy101 randoguy101 is offline
Volcarona
 
Join Date: Aug 2009
Posts: 688
Default

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  
Old May 26, 2010, 09:27:45 PM
Velociraptor78's Avatar
Velociraptor78 Velociraptor78 is offline
Regigigas
 
Join Date: Aug 2009
Location: Central New York
Posts: 803
Default

The last Java thread is in captivity.
The rest have all been locked.
  #23  
Old June 2, 2010, 02:29:12 PM
randoguy101's Avatar
randoguy101 randoguy101 is offline
Volcarona
 
Join Date: Aug 2009
Posts: 688
Default

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

Forum Jump


All times are GMT -8.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Victory Road ©2006 - 2024, Scott Cat333Pokémon Cheney
Theme by A'bom and Cat333Pokémon