/**
*
* @author John Pringle
*/
public class Revolution extends Thread {
static boolean weExist = true; //WE NEED THIS TO BE TRUE
static boolean government = true; //THIS IS IN QUESTION
static boolean freedom = false; //WE NEED THIS TO BE TRUE
static boolean equality = false; //WE NEED THIS TO BE TRUE
static boolean injustice = true; //WE NEED THIS TO BE FALSE
public static void main(String[] args){
while(weExist){ //WHILE WE EXIST
if(government != freedom //IF GOVERNMENT DOES NOT EQUAL FREEDOM
|| government != equality //OR IF GOVERNMENT DOES NOT EQUAL EQUALITY
|| government == injustice //OR IF GOVERNMENT EQUALS INJUSTICE
){ //THEN
new Revolution().start(); //START "THE METHOD" BELOW
}else{ //OTHERWISE
System.err.println("REVOLUTION NOT NEEDED");
System.exit(0); //EXIT TO THE SYSTEM STATUS ZERO
}
}
}
@Override
public void run(){ // "THE METHOD"
while(freedom == false //WHILE FREEDOM DOES NOT EXIST
|| equality == false //OR EQUALITY DOES NOT EXIST
|| injustice == true //OR JUSTICE DOES NOT EXIST
|| weExist == true) { //OR WE ARE ALIVE
boolean revolutionCodeComplete = false; //WE NEED YOUR HELP
if(revolutionCodeComplete == true){ //TO MAKE THIS WORK
System.out.println("STARTING PROCESS"); //HELP US?
}else{ //OTHERWISE
System.err.println("REVOLUTION FAILED"); //WE FAIL
//System.exit(0); //EXIT TO THE SYSTEM STATUS ZERO
/**IMPORTANT remove "//" at start of above line(38) to activate
//the line of code otherwise your system will crash. */
//Sorry but you shouldn't run code without checking it :P/>
}
}
//BUT WE NEED THE REVOLUTION TO SUCCEED
System.out.println("REVOLUTION COMPLETE");
System.exit(1); //EXIT TO THE SYSTEM STATUS ONE :)/>
}
}
Enjoy life

New Topic/Question


MultiQuote













|