CodeGym
Promotion
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 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
  • Bouncer policy

    New Java Syntax
    Level 3, Lesson 8
    Use the keyboard to enter the name and age. If the age is more than 20, display "18 is old enough".
    3
    Locked
  • Quadrants

    New Java Syntax
    Level 3, Lesson 8
    Use the keyboard to enter two integers representing the coordinates of a point not on the X and Y axes. Display the number of the quadrant that contains the given point. Hint: Point (a, b) belongs to a quadrant if the following conditions are true: for the first quadrant: a>0 and b>0; for the
    3
    Locked
  • Labels and numbers

    New Java Syntax
    Level 3, Lesson 10
    Use the keyboard to enter an integer. Display a string description as follows: "Negative even number" - if the number is negative and even, "Negative odd number" - if the number is negative and odd, "Zero" - if the number is 0, "Positive even number" - if the number is positive and even, "Positive o
    3
    Locked
  • Describing numbers

    New Java Syntax
    Level 3, Lesson 10
    Enter an integer from the keyboard in the range 1 - 999. Display a string description as follows: "even single-digit number" - if the number is even and has one digit, "odd single-digit number" - if the number is odd and has one digit, "even two-digit number" - if the number is even and has two digi
    3
    Locked
  • Positive number

    New Java Syntax
    Level 3, Lesson 10
    Use the keyboard to enter three integers. Display the number of positive numbers in the original set. Here are some examples: a) if you enter the numbers -4 6 6 then we display 2 b) if you enter the numbers -6 -6 -3 then we display 0 c) if you enter the numbers 0 1 2 then we display 2
    3
    Locked
  • Positive and negative numbers

    New Java Syntax
    Level 3, Lesson 10
    Use the keyboard to enter three integers. Display the number of positive and negative numbers in the original set in the following form: "Number of negative numbers: a", "Number of positive numbers: b", where a and b are the relevant values. Examples: a) if you enter the numbers: 2 5 6 then we displ
    3
    Locked
  • How a CPU Works in 100 Seconds // Apple Silicon M1 vs Intel i9

    New Java Syntax
    Level 3, Lesson 13
    After working religiously to master Java fundamentals, you can relax a bit and watch a movie about Java! Learn how the central processing unit (CPU) works in your computer. Compare performance and processor architecture between the Intel and Apple Silicon M1 chips
    3
    Locked
  • 10 numbers

    New Java Syntax
    Level 4, Lesson 4
    Display the numbers from 1 to 10 using a while loop. Each value should be on a new line.
    4
    Locked
  • From 10 to 1

    New Java Syntax
    Level 4, Lesson 4
    Display the numbers from 10 to 1 using a while loop. Each value should be on a new line.
    4
    Locked
  • You can't have too much of a good thing

    New Java Syntax
    Level 4, Lesson 4
    Use the keyboard to enter a string and a number N greater than 0. Use a while loop to display the string N times. Each value should be on a new line. Example input: abc 2 Example output: abc abc
    4
    Locked
  • Seeing dollars in your future

    New Java Syntax
    Level 4, Lesson 4
    Use a while loop to display a 10x10 square of dollar signs. Don't separate the symbols in each line. Example output: $$$$$$$$$$ $$$$$$$$$$ $$$$$$$$$$ $$$$$$$$$$ $$$$$$$$$$ $$$$$$$$$$ $$$$$$$$$$ $$$$$$$$$$ $$$$$$$$$$ $$$$$$$$$$
    4
    Locked
  • Multiplication table

    New Java Syntax
    Level 4, Lesson 5
    Use any kind of loop to display a 10x10 multiplication table. Separate the numbers with spaces. Example output: 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 15 18 21 24 27 30 4 8 12 16 20 24 28 32 36 40 5 10 15 20 25 30 35 40 45 50 6 12 18 24 30 36 42 48 54 60 7 14 21 28 35 42 49 56 63 7
    4
    Locked
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 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 © 2022 CodeGym
Download App
  • Google Play
  • Huawei AppGallery
  • App Store
MastercardVisa
Programmers Are Made, Not Born © 2022 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.