Posted on 31 August 2016 - 10:04 PM
This isn't a bad code for learning Java literally 4 days ago. Also I'm a kid….Mess around with the if and else/if statements to get different results. Than mess around with the char characters to get different cases.
Arraybot final
public class Arraybot{
public static void main(String[] args) {
if (5 * 5 <= 96 / 54) {
System.out.println("Arraying has been blacklisted for 'idk' by Arraybot");
} else if ( (25 == 2 && 5 > 10)) {
System.out.println("Arraying has been banned for a period of forever for 'stop doing that C++ bs scumbag' by Archybot");
} else {
System.out.println("Arraying has been kicked for 'GET OFF OF MY SERVER SCUM' by MasterGBerry ");
}
char answerChoice = 'D';
switch (answerChoice) {
case 'A': System.out.println("Appeal pending, na jk gtfo-Arraybot");
break;
case 'B': System.out.println
("Appeal accepted. Unban time: October 21, 2030");
break;
case 'C': System.out.println("Appeal denied by MaccaTacca for 'Don't you dare call me Rudolph the reindeer ever again…' ");
break;
case 'D':
System.out.println("Appeal Accepted by Archybot. Unban Date: Setember 2nd 2016.
Appeal denied by Arraybot for 'This scumbag Arraying created me, but JavaScript and JQuery are better than scummy C++");
break;
default:
if (true) {
System.out.println("Appeal accepted by Arraybot for 'I'm lazy, meh I'll just accept, idk how I'm lazy when I'm a robot…");
Last edited on 01 September 2016 - 08:08 AM by Jmqcc
I know how to make a guy move across the screen in scratch. Rekt. Get out.Last edited on 01 September 2016 - 09:42 AM by *deleted-191881
Automatically DeletedPosted on 01 September 2016 - 10:03 AM
EhhThing wrote
SavagedBlade wrote...
Looking though your code:
- You forgot many curly brackets at the end.
Here is your code that I corrected (ignore the first line being different)
https://ideone.com/13tMes
PS: This is literately the first time I ever use Java xD.
Well first the curly brackets are called braces, and second I ran this through and it was all good. White space doesn't matter in java
Last edited on 01 September 2016 - 10:22 AM by Astounding
EhhThing wrote
SavagedBlade wrote...
Are you sure that you copied all of it then?
Because when I tried to compile it, it told me that "error: reached end of file while parsing " which means that you did not end the file with } (since you started it with "public class Arraybot{" you also need to close it)
I did fix that error before, I'm going to run it through again and see if it works
Edit: I recall putting those braces at the end but oh well, I fixed it
Error with my copy paste thing so…
Arraybot final
public class Arraybot{
public static void main(String[] args) {
if (5 * 5 <= 96 / 54) {
System.out.println("Arraying has been blacklisted for 'idk' by Arraybot");
} else if ( (25 == 2 && 5 > 10)) {
System.out.println("Arraying has been banned for a period of forever for 'stop doing that C++ bs scumbag' by Archybot");
} else {
System.out.println("Arraying has been kicked for 'GET OFF OF MY SERVER SCUM' by MasterGBerry ");
}
char answerChoice = 'D';
switch (answerChoice) {
case 'A': System.out.println("Appeal pending, na jk gtfo-Arraybot");
break;
case 'B': System.out.println
("Appeal accepted. Unban time: October 21, 2030");
break;
case 'C': System.out.println("Appeal denied by MaccaTacca for 'Don't you dare call me Rudolph the reindeer ever again…' ");
break;
case 'D':
System.out.println("Appeal Accepted by Archybot. Unban Date: Setember 2nd 2016.
Appeal denied by Arraybot for 'This scumbag Arraying created me, but JavaScript and JQuery are better than scummy C++");
break;
default:
if (true) {
System.out.println("Appeal accepted by Arraybot for 'I'm lazy, meh I'll just accept, idk how I'm lazy when I'm a robot…");
}}}}
Posted on 01 September 2016 - 12:51 PM
Umm is this what the output should be: https://gyazo.com/3c82ff517411d443cf1adca4b38aba05Posted on 01 September 2016 - 07:13 PM
Paradoxion wrote
Success :)
Posted on 01 September 2016 - 07:30 PM
Uhh yea you forgot like half your brackets and I'm not sure what the first line of the code is suppose to do…