Skip to content
Learn Netverks

Lesson

Step 5/36 14% through track

playground-workflow

Playground workflow

Last reviewed May 28, 2026 Content v20260528
Track mode
server_compiled
Means
Compiled runner
Reading
~2 min
Level
beginner

This lesson

This lesson teaches Playground workflow: the syntax, APIs, and habits you need before advancing in Java.

Teams ship Playground workflow on every Java codebase—skipping it leaves gaps in debugging and code reviews.

You will apply Playground workflow in contexts like: Spring Boot APIs, banking systems, Android (with Kotlin), and batch/data pipelines on the JVM.

Write Java with a public class (lessons use Main), click Run on server—the dev runner runs javac then java; fix compile errors from stderr (LEARNING_RUNNER_ENABLED=true). Also keep the public class name matching the file (Main) so javac succeeds; use public class Main and fix compile errors from javac before re-running.

At the start of the track—complete before lessons that assume you understand the server playground.

Get the most from each lesson's compiled editor with a deliberate loop—the same habits that transfer to IntelliJ, VS Code, or CI pipelines running mvn test.

Recommended workflow

  1. Read the concept section before editing code.
  2. Click Run to compile and execute on the dev runner.
  3. Use System.out.println for readable output; print arrays with Arrays.toString when needed.
  4. Change one idea at a time—a type, a loop bound, one method call.
  5. Read compile errors in stderr—often a missing semicolon, wrong type, or class name mismatch.
  6. Reset the editor if you drift far from the lesson goal.

What the runner can and cannot do

  • Can — compile and run single-file Main programs with standard library imports
  • Simulated — JDBC rows and Maven coordinates shown via println mock data
  • Needs local setup — real MySQL via JDBC, multi-file Maven projects, Spring Boot servers

Review JavaScript functions and PHP classes if OOP terms feel unfamiliar.

Self-check

  1. Why must the public class be named Main in this playground?
  2. What is the first step when you see a compile error?

Challenge

First compile and run

  1. Click Run with the default code.
  2. Confirm the Java version prints in the output.
  3. Add a second println with your name.

Done when: the terminal shows the Java version and your custom message.

Challenge

Verify compile output

  1. Run the default Main program.
  2. Confirm Java version prints.
  3. Introduce a type error (assign a String to int) and read the compile message.
  4. Fix the error and run again.

Done when: you see a clear compile error when broken and successful output after fixing.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • javac error you saw?
  • Why public class Main?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump