CodeGym
Christmas Sale
CodeGym University
Learning
Course
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Tasks

  • Reviews
  • About us
Start
Start learning
Start learning now
  • All tasks
All quests Java Syntax Java Core Java Multithreading Java Collections JSP & Servlets Java Syntax Pro Module 3. Java Professional Module 4. SQL & Hibernate Module 5. Spring Games
All levels Level 0 Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8 Level 9 Level 10 Level 11 Level 12 Level 13 Level 14 Level 15 Level 16 Level 17 Level 18 Level 19 Level 20 Level 21 Level 22 Level 23 Level 24 Level 25 Level 26 Level 27 Level 28
Any status Available In progress Completed Closed
  • Price of apples

    New Java Syntax
    Level 3, Lesson 4
    Calculate the total cost of apples. The total cost of apples corresponds to public static int applePrice.
    3
    Locked
  • What's the cat's name?

    New Java Syntax
    Level 3, Lesson 5
    Help the cat get a name using the setName method.
    3
    Locked
  • Cat register

    New Java Syntax
    Level 3, Lesson 5
    Write code in the addNewCat method to increase the number of cats by 1 each time it is called. The variable catCount corresponds to the number of cats.
    3
    Locked
  • Setting the number of cats

    New Java Syntax
    Level 3, Lesson 5
    Write the setCatCount method. The method must set the number of cats (catCount).
    3
    Locked
  • Name register

    New Java Syntax
    Level 3, Lesson 5
    Finish writing the code of the setName method so that it sets the value of private String fullName to the value of the local String variable fullName.
    3
    Locked
  • Count the number of cats

    New Java Syntax
    Level 3, Lesson 5
    Write a code that correctly counts the number of created cats (count) and correctly displays the count on the screen.
    3
    Locked
  • Good or bad?

    New Java Syntax
    Level 3, Lesson 7
    Write the compare(int a) method so that it: - displays "The number is less than 5" if the method argument is less than 5, - otherwise, displays "The number is equal or greater than 5".
    3
    Locked
  • Interval

    New Java Syntax
    Level 3, Lesson 7
    Implement the checkInterval method. The method should check whether an integer is between 50 and 100, not inclusive, and report the result on the screen in the following form: "The number a is not in the interval." or "The number a is in the interval.", where a is the method argument. Example for 11
    3
    Locked
  • Positive and negative numbers

    New Java Syntax
    Level 3, Lesson 7
    Use the keyboard to enter a number. If the number is positive, then double it. If the number is negative, add one. If the entered number is zero, display zero. Display the result on the screen.
    3
    Locked
  • Day of the week

    New Java Syntax
    Level 3, Lesson 7
    Use the keyboard to enter a number representing a day of the week. Then, depending on the entered number, display the name of the day of the week: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", if you enter a number greater than 7 or less than 1, display "No such day o
    3
    Locked
  • Minimum of two numbers

    New Java Syntax
    Level 3, Lesson 8
    Use the keyboard to enter two integers, and display the minimum. If the two numbers are equal, display either of them.
    3
    Locked
  • 18+

    New Java Syntax
    Level 3, Lesson 8
    Use the keyboard to enter the name and age. If the age is less than 18, display "Grow up a little more".
    3
    Locked
  • 1
  • 2
  • 3
  • 4
  • 5
  • ...
  • 107
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning and Java developer’s career.
Follow us
Interface language
Programmers Are Made, Not Born © 2023 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2023 CodeGym
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.