0

Noob question about codeplayground

I copied my code from Eclipse to save it here, but it will not run. My question is, how do I create a new class in codeplayground? The error message I get is: "Uncaught SyntaxError: Unexpected token class Line: 1" Edit: This is the code. The reason I wanted to save it here is because I want to know exactly why I get the strange output that I am getting. public class MyProgram { public static void main(String[] args) { int x = 1; byte z = 1; while ( x<10000 ) { System.out.println(x); x += z++; } } }

17th Jun 2017, 9:40 AM
Robin Didriksen
Robin Didriksen - avatar
2 odpowiedzi
+ 1
There should be no difference to any other Java tool: It is just class CLASSNAME {...} Maybe you can link your code here so that people can help you better.
17th Jun 2017, 9:30 AM
merkrafter
0
Added the code to my original post now @merkrafter
17th Jun 2017, 9:38 AM
Robin Didriksen
Robin Didriksen - avatar