School Survival Forums
Java - Printable Version

+- School Survival Forums (http://forums.school-survival.net)
+-- Forum: The Lounge (/forumdisplay.php?fid=34)
+--- Forum: Other Languages (/forumdisplay.php?fid=17)
+--- Thread: Java (/showthread.php?tid=3026)



Java - యూజర్ పేరు - 09-17-2010 09:39 AM

Code:
import java.util.Scanner;

public class JavaThread
{
    public static void main(String[] args)
    {
        System.out.println("In this thread we speak Java? (y/n)");
        Scanner user = new Scanner(System.in);
        String x = user.next();
        if (x=="y")
        {
            System.out.println("Okay.");
        }
        if (x=="n")
        {
            System.out.println("Fuck you.");
        }
        else
        {
            System.out.println("Invalid.");
            return false;
        }
    }
}
//I am so good at programming
This will compile and run correctly, assuming you save the class under the name JavaThread.


Re: Java - jillyronald - 09-22-2010 04:56 PM

I learned Java languages in school. You can create very good application with the use of Java. There are so many advantages in JDB, advance JAVA, and other plug ins of java, it is a very easy language to make any types of programmes, your suggested programs is runs perfectly.


Re: Java - RandomTroll - 04-17-2011 01:59 AM

Code:
#include <iostream>
using namespace std;
int main()
{
cout<<"I CAN'T SPEAK IN JAVA, HALP"<<endl;
cin.get();
return 0;
}



Re: Java - aaaaaaasd - 04-17-2011 02:14 AM

Code:
@Fuck you,[10 0f] I'm gonna post in EarthBound Control Code motherfucker,[10 0f 03 00]
@because thats how I roll.[13 02]



Re: Java - Faby - 04-17-2011 05:29 AM

Code:
instance DIA_Faby_GTFO(C_Info)
{
    npc = GOD_000_Faby;
    nr = 1;
    condition = DIA_Faby_GTFO_Condition;
    information = DIA_Faby_GTFO_Info;
    permanent = FALSE;
    important = TRUE;
};


func int DIA_Faby_GTFO_Condition()
{
    if(Npc_IsInState(self,ZS_Reading_This_Thread) && (sight = TRUE))
    {
        return TRUE;
    };
};

func void DIA_Faby_GTFO_Info()
{
    AI_Output(self,other,"DIA_Faby_GTFO_05_01");    //I'll just go ahead and write this in Daedalus.
    };



Re: Java - LOON_ATTIC - 05-01-2011 03:56 PM

Faby Wrote:
Code:
instance DIA_Faby_GTFO(C_Info)
{
    npc = GOD_000_Faby;
    nr = 1;
    condition = DIA_Faby_GTFO_Condition;
    information = DIA_Faby_GTFO_Info;
    permanent = FALSE;
    important = TRUE;
};


func int DIA_Faby_GTFO_Condition()
{
    if(Npc_IsInState(self,ZS_Reading_This_Thread) && (sight = TRUE))
    {
        return TRUE;
    };
};

func void DIA_Faby_GTFO_Info()
{
    AI_Output(self,other,"DIA_Faby_GTFO_05_01");    //I'll just go ahead and write this in Daedalus.
    };
what the fuck is that thing, eh, language.

Code:
bleh=0
while bleh==0:
        print("Is Python better than Java? (y/n)")
        asd=input()
        if asd == "y":
                print("CORRECT ANSWER")
                bleh=9001
        else:
                print("Invalid")



Re: Java - Faby - 05-01-2011 04:36 PM

Lunatic Wrote:what the fuck is that thing, eh, language.

A scripting language for my favourite game series in the world <3

http://wiki.worldofgothic.com/Daedalus/Syntax


RE: Java - hipplzzz - 10-18-2011 09:10 AM

Public class hi{
public static void main(Strings args[]){
for(1==1){
System.out.println("WHY")
}
}
}


RE: Java - LOON_ATTIC - 10-18-2011 01:16 PM

omg u fags u sux r33l men code in c java is for fags

#include <stdio.h>; int main() { while (1) { printf("NIGGERS "); } }


RE: Java - Efs - 10-19-2011 06:51 AM

Java is good but I don't know it, I'm currently learning C++ Biggrin


RE: Java - Absnt - 10-19-2011 07:03 AM

Python bitches (I can't remember anything I learned lol.)


RE: Java - LOON_ATTIC - 10-28-2011 02:35 PM

(10-19-2011 07:03 AM)Absentinsomniac Wrote:  Python bitches (I can't remember anything I learned lol.)

not even print("NIGGERS") or print "NIGGERS"
(depending whether it's 3.X or 2.X)


RE: Java - Absnt - 10-28-2011 06:58 PM

I'll break out the interpreter later and make a calc for ya if you want. I'm just saying, most of the shit I forgot because I'm lazy like that.


RE: Java - monkey - 11-23-2011 04:35 PM

<HTML>
<HEAD><TITLE>Fuck that use HTML</TITLE></HEAD>
<BODY>
Lol u mad I used something thats not even code?
</BODY>
</HTML>


RE: Java - LOON_ATTIC - 11-23-2011 05:27 PM

private parts() {
printf("what the fuck language is this"};
}


Java - jamescarter - 04-29-2013 05:55 PM

The very nice code written on this post that might be very useful for so many peoples. I have seen all the code written on this post that is really nice and provide good information about JAVA functions.


Java - no - 04-30-2013 04:41 AM

jamescarter.ignore()