CodeGym
Course
Tasks
Games
Help
Subscriptions
Success stories
Chat
Forum
Articles
Users
Activity

Tasks

  • Reviews
  • About us
Start
Start learning
  • All tasks
All quests
All levels Level 0 Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8 Level 9 Level 10
Any status Available In progress Completed Closed
  • Code entry

    Java Syntax
    Level 1, Lesson 7
    Sometimes you don't need to think, you just need to hammer it out! As paradoxical as it may seem, sometimes your fingers will "remember" better than your conscious mind. That's why while training at the secret CodeGym center you will sometimes encounter tasks that require you to enter code. By entering code, you get used to the syntax and earn a little dark matter. What's more, you combat laziness!
    1
    Locked
  • The great purge

    Java Syntax
    Level 1, Lesson 8
    Whoever wrote this program obviously did it in a hurry. Actually, that's not true: this program was written for educational purposes, and the author deliberately crammed in superfluous variables and simultaneously failed to declare necessary variables. We're going to correct this: Comment out the unnecessary variables, and declare the missing variables. Then the program will achieve universal harmony.
    1
    Locked
  • Don't feel like it? Do it anyway.

    Java Syntax
    Level 1, Lesson 8
    Laziness afflicts even the best programmers. And not only programmers. Nevertheless, people have managed to become professionals by teaching themselves. So, we suggest not being lazy. Instead, display this slogan on the screen: "If you feel like it, do the task. If you don't feel like it, do it anyway". And to really remember this, display it 16 times.
    1
    Locked
  • Square of a number

    Java Syntax
    Level 1, Lesson 8
    There are several ways to square a number. For example, some people write a number and then draw a square around it. This method is used by people who haven't studied anywhere. Everybody else has to multiply, remember the table of squares, ... or use a program. Your program should display the square of 5.
    5
    Locked
  • As simple as 2+2

    Java Syntax
    Level 1, Lesson 8
    In a Java application, all the actions are performed by functions. Or more accurately, methods. In our program, a kind mentor has already implemented a method (that is, written the method's code) that can calculate the sum of two numbers. All you need to do is call this method with the arguments 2 and 2. You need to do this in the main method.
    5
    Locked
  • Choose healthy food! Choose fruit!

    Java Syntax
    Level 1, Lesson 8
    Display the variables whose values are names of fruit. Display each variable on a new line.
    1
    Locked
  • Favorite poem

    Java Syntax
    Level 1, Lesson 8
    Today's programmers are rarely full-fledged engineers obsessed with technology and gadgets and nothing else. Some of them are also passionate about poetry. If you're a fellow poetry-lover, then you'll find it easy to perform the following task: display a quatrain (or more) from your favorite poem.
    1
    Locked
  • Nerd Break

    Java Syntax
    Level 1, Lesson 12
    At the end of a level, it's helpful to unwind, watch an interesting video, and dream about your future. We suggest an excellent substitute for TV shows: videos about technology and famous nerds. During this break, you'll see Steve Jobs' famous speech to Stanford graduates. Let it inspire you to study with renewed intensity!
    1
    Locked
  • Implement the print method

    Java Syntax
    Level 2, Lesson 1
    Writing your own methods is the way to achieve unlimited freedom, but it is also a great responsibility. We implement methods carefully and thoughtfully. This task requires you to write a print method that will display a certain string. Not once, but four times. The string is a method argument, meaning that it will be supplied as an input.
    3
    Locked
  • Where does a Person come from?

    Java Syntax
    Level 2, Lesson 2
    In Java, people come from the same place that other classes come from: from the programmer's head. It is important for the creator of a class to think through what is important for the class and what is not. If he or she does, then the class will make sense and be useful. Let's begin. Let's create a Person class that allows our Person to have a name, age, weight, and... money. And then we'll create an object.
    3
    Locked
  • Family relations

    Java Syntax
    Level 2, Lesson 2
    A programmer can create a man and a woman with a couple of deft movements of his or her fingers. Easy-peasy: we'll write the appropriate classes and create objects. Let's work on a married couple: we'll create Man and Woman objects, and then save a reference to the Woman in man.wife, and a reference to the Man in woman.husband. You see? You don't even need a marriage license.
    3
    Locked
  • Pay raise

    Java Syntax
    Level 2, Lesson 2
    It's good to be a programmer: your salary will grow rapidly. And if this doesn't happen, you can influence the situation with a little help from your hacker friends. Imagine that you have access to the automated payroll system. You need to write an interceptor method that will add $1000 to each salary payment.
    3
    Locked
  • 1
  • 2
  • 3
  • 4
  • 5
  • ...
  • 109
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
About
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
Follow us
Interface language
© 2021 CodeGym Programmers Are Made, Not Born
© 2021 CodeGym Programmers Are Made, Not Born