Noob question about codeplayground | Sololearn: Learn to code for FREE!

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++; } } }

6/17/2017 9:40:16 AM

Robin Didriksen

2 Answers

New Answer

+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.

0

Added the code to my original post now @merkrafter