CodeGym /Java Course /Java Syntax /Java For Beginners

Java For Beginners

Java Syntax
Level 0 , Lesson 0
Available
Java programming Learn Java from scratch

Hi. If you’re reading this, I can confirm that, yes, these are Java Basics. This course is actually chock full of opportunities for hands-on learning (with over 1200 exercises) and is meant for adult students. I hate boring lectures. That’s why CodeGym was created as an online game.

Have you ever played games where you get to level-up your character? Sometimes you get drawn into it before you even notice, right? Can you guess where I'm headed with this? At CodeGym, you have to level-up your character. The first quest ends when you’ll manage to upgrade from Level 1 to Level 18. These are Java Basics you need to score AP Computer Science A Exam.

If you choose to continue and finish three more quests (10 levels each) — Java Core, Multithreading and Collections — there’s strong chance you’ll be a rockstar Java programmer.

The game is set in the distant future – year 3018, at a time when humans share the Earth with robots and space travel is routine.

Once upon a time, a spaceship crashed on an unknown planet...

Back story

Java programming Learning from scratch

The Galactic Rush crew crash-landed on an unknown planet. During the crash, the spaceship slammed into a mountainside and was almost completely buried under debris. After trying for days to free the ship, the crew lost all hope of returning home and started settling into this new, unfamiliar place...

A week later, Ellie, the ship’s navigator, happened to discover that the planet was inhabited by thousands of wild robots! They could have helped clear the rocks and free the ship, but they were too primitive and stupid. They lacked the ability to do anything at all. They couldn’t even carry rocks, an ability which would have come in handy.

Professor Noodles, the mission’s chief scientist, would later recall:
"After a few days, I came up with a solution. I would take the firmware from Diego, a robot member of our crew, convert it into firmware for a bricklayer, and then load it onto the wild robots."

"But luck seemed to be against us. After looking into it, we found that the natives didn’t have any connectors for uploading the firmware. In fact, they didn’t have any connectors at all!"

Java programming

"Bilaabo, the only extraterrestrial on the crew, recalled that he had once met a robot on his home planet who knew how to program. Not only that, but this robot could even fix bugs in his own firmware."

"That’s when a brilliant idea occurred to me. After all, I had once managed to teach a capable robot to program in Pascal."

"I gave orders to trap the most talented young robot and teach him how to Java program. With his new coding skills, he would be able to rewrite his own firmware to help us out!"

Learn Java from scratch

"In the end, we found a promising candidate. Diego suggested naming him Amigo, after the brother he’d always wanted, but never had."

"I offered to give Amigo metal beads for every month of his learning Java and then $10 per year to clear the debris after his training. For the savages, this was generous. After all, we were enlightening them for free."

Learn Java

Diego later wrote in his memoirs:

"I was outraged by this blatant robbery of my fellow robot, but the whole crew sided with the professor and Rishi. So, of course, I agreed, or at least pretended to agree, and offered to help teach Amigo. Ha-ha! After all, nobody can teach a robot better than another robot."

"Everybody was so happy that I was willing to help that they decided to join me in training Amigo Java programming."


You’ll start at level 1. Your goal is to help Amigo level-up his programming skills.

Now, let’s get to learning from scratch. Click Next lesson.

Comments (599)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Anonymous #11593591 Level 1, Bangalore, India
14 November 2024
Hi
Urban kolly Kolly Level 1, Kenya
11 November 2024
lets go
oussama Level 1, Morocco
8 November 2024
😄hello
Miranda Howard Level 1, United States
31 October 2024
With little hope left, I reached out to them. From our initial interaction, I was impressed by the professionalism and empathy demonstrated by the Tech Cyber Force Recovery team. They took the time to understand my situation and laid out a clear strategy for recovery. Their approach involved meticulous documentation and communication with various financial institutions, which provided me with a sense of direction and support. After several weeks of diligent work on their part, I received the news that they had successfully recovered 50% of my lost funds. While it wasn’t the full amount I had lost, it was a significant relief and a testament to their expertise. TELEGRAM = t.me/Techcyberforc
Anonymous #11587782 Level 1, Karachi, Pakistan
31 October 2024
hi
Mudavath Mounika Level 1, India
28 October 2024
Can I earn certificate here if I learn any course
John Squirrels Level 41, San Francisco, Poland
31 October 2024
The certificate is issued upon completion of our CodeGym University.
Anonymous #11584097 Level 1, Delhi, India
25 October 2024
hello where i can start to learn java
Anonymous #11584088 Level 1, China
24 October 2024
hello where i can start to learn Java
Anonymous #11583244 Level 1, Guadalajara, Mexico
23 October 2024
Hi
Anonymous #11581773 Level 1, Hong Kong, Hong Kong
22 October 2024
float myVariable; // "when started" hat block int whenStarted1() { while (true) { while (true) { Drivetrain.setTurnVelocity(50.0, percent); Drivetrain.setDriveVelocity(50.0, percent); wait(20, msec); } Drivetrain.driveFor(forward, 26000.0, mm, true); Drivetrain.stop(); wait(1.0, seconds); Drivetrain.turnFor(right, 180.0, degrees, true); wait(1.0, seconds); Drivetrain.driveFor(forward, 26000.0, mm, true); Drivetrain.stop(); Drivetrain.turnFor(right, 180.0, degrees, true); wait(20, msec); } return 0; } int main() { // Initializing Robot Configuration. vexcodeInit()