CodeGym /Courses /Java Syntax Zero /Best course about the fundamentals of programming

Best course about the fundamentals of programming

Java Syntax Zero
Level 1 , Lesson 7
Available

1. Summary of Level 1

Congratulations! You've completed the first level on CodeGym! Just one level and you've already mastered a bunch of important and interesting stuff. Good work!

You learned about:

  • Variables;
  • Displaying text on the screen;
  • Int and String types;
  • You learned the difference between compiling in Java and other languages;
  • Adding comments in code and why we need them.

Excellent! Of course, the levels that follow won't be as easy, but they will grow more difficult gradually. The same goes for the exercises.

It's like going to the gym: we add weights little by little, and 6 months later, the beginner can do 220 lbs on the bench press.

Boring lessons are so 21st century! Can you imagine writing in chalk on a blackboard! Nothing had changed since the 1400s. I suppose there were dinosaurs still roaming the streets then.

You are advancing to the next level! 😉


1
Task
New Java Syntax, level 1, lesson 7
Locked
Nerd break
The super secret CodeGym training center has both standard lessons and entertaining lessons. But we don't have them just for the sake of having them. They will teach you loads about your future field of employment! It's time to relax a bit and watch a video about your future colleagues.
Comments (52)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Anonymous #11503376 Level 2, United States of America, United States
16 April 2024
If we focus on console output, then it will be easy.
Kristina Pfeifer Level 4, Austria
16 February 2024
The calculation of the average attempts appears to be faulty. My guess is: If there are two tasks within a lesson, it counts the attempts but does not increase the number of tasks with which it ought to be divided with by the second task.
Anonymous #11480958 Level 2, Czech Republic
29 February 2024
Actually I think it's the average attempts of all users of the website
Anonymous #11469817 Level 2, Czech Republic
13 February 2024
public class Solution { public static void main(String[] args) { int x = 2; int y = 12; // y = x * y; y = x + y; x = y - x; y = y - x; System.out.println(x); System.out.println(y); } }
Mustafa ÖZER Level 2, Turkey
28 January 2024
public class Solution { public static void main(String[] args) { int a = 3; int b = 2; //System.out.print("two"); System.out.print(b); System.out.print(" plus "); //System.out.print(" minus "); System.out.print(a); // System.out.print("three"); System.out.print(" is equal to "); //System.out.print(" equals "); //System.out.print("five"); System.out.print(a + b); } }
Mustafa ÖZER Level 2, Turkey
28 January 2024
public class Solution { public static void main(String[] args) { int x = 2; int y = 12; // y = x * y; // y = x + y; x = y - x; y = y - x; System.out.println(x+y); System.out.println(y); } }
Rajesh Yadav Level 17, Delhi , India
28 December 2023
comments some mention line // System.out.print("two"); System.out.print(b); System.out.print(" plus "); // System.out.print(" minus "); System.out.print(a); // System.out.print("three"); System.out.print(" is equal to "); // System.out.print(" equals "); // System.out.print("five"); System.out.print(a + b);
Rajesh Yadav Level 17, Delhi , India
28 December 2023
just uncomment this below line y = x + y;
nikkehtine Level 2
12 November 2023
Pro tip: use Ctrl + / to quickly comment/uncomment lines! This shortcut works in most editors including VSCode and IntelliJ
zain Level 1, Syrian Arab Republic
21 October 2023
public class { public static void main(string[] args) { system.out.print("hello word); }
Kyle Akuya (Wicked98) Level 18, United States of America, United States
22 September 2023
this task is was good practice