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

Help with tasks

  • Reviews
  • About us
Start
Start learning
Start learning now
  • All questions
  • Durmus Gulbahar
    Level 22
    Antalya
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Resolved
    Everything is okay but displayi can't understand what happened but i did part of sort , then i can't display why did it wrong ??
    • 6/12/19
    • 1554views
    • 4comments
    0
  • Berkson
    Level 17
    Fortaleza
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Resolved
    Only gives the error: The displayed text does not correspond to the task conditions.Gives the error: The displayed text does not correspond to the task conditions. But if you try, the answer is correct! Can someone help me? package com.codegym.task.task03.task0319; /* Predictions */ import java.io.BufferedReader; import java.io.InputStreamReader; public class Solution { p
    • 5/2/19
    • 1809views
    • 6comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the task HashMap of Objects
    Java Syntax, Level 8, Lesson 3
    Resolved
    What is the problem?Displays on the screen correctly. But does not pass the test What is the problem? package com.codegym.task.task08.task0806; import java.util.HashMap; import java.util.Map; /* HashMap of Objects */ public class Solution { public static void main(String[] args) throws Exception { H
    • 6/12/19
    • 1895views
    • 6comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    Help Needed :)I have tried a else{ four.add(a);} in line 38 but i am not achieving the goal.. What am i missing?
    • 6/12/19
    • 1318views
    • 1comment
    0
  • smile
    Level 7
    Tainan
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Resolved
    What's wrong with my code?I run my code, and it seems nothing wrong, but I still failed. It says, "Be sure that you have displayed the correct number of rows." Why?
    • 6/12/19
    • 1705views
    • 2comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Rip my sanityI don't understand why not work. If I don't put "else { return null; }" at the end I get missing return statement error.
    • 5/27/19
    • 1768views
    • 3comments
    1
  • Nikitha J
    Level 3
    Chikmagalur
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    how to solve print methodhow to solve it
    • 6/12/19
    • 1386views
    • 1comment
    0
  • Andrei Stratu
    Level 18
    Iasi
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Desired output but not correct answerHello, I implemented the method and got the correct output but i still cant pass the task. Can anyone help me please?
    • 3/6/19
    • 1590views
    • 2comments
    0
  • Jeff Jeffy
    Level 15
    Irvine
    Question about the task Calculate the circumference of a circle
    Java Syntax, Level 2, Lesson 2
    Resolved
    Help! It says I'm not displaying the circumfrence, but I feel as if I am. Can soemone explain?I'm not displaying the circumfrence, but I feel as if I am. Can soemone explain?
    • 12/25/18
    • 2131views
    • 5comments
    0
  • D13angos
    Level 3
    Bydgoszcz
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    It's correct but I used function that is forbiddenI used function system.out.println and checking code and programm marked is correct. This function system.out.print is forbidden. What will be function instead of system.out.print?
    • 6/7/19
    • 1197views
    • 1comment
    1
  • yara
    Level 8
    St.gallen
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Can't find my mistake.Heeyy Does anyone find the mistake in my code? Thankkk youuuuuuu.
    • 6/11/19
    • 1766views
    • 2comments
    0
  • Nayan Lochan Huzuri
    Level 5
    Guwahati
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    Whats wrong in here?The output is coming fine but the last condition fails!
    • 6/10/19
    • 1407views
    • 1comment
    0
  • Ankita Patra
    Level 5
    Bhubaneshwar
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Resolved
    What's wrong in this code!!
    • 6/8/19
    • 1436views
    • 1comment
    0
  • Bashimgeldi Kurbanov
    Level 3
    Cyberjaya
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Easy way just use for looppublic class Solution { public static void print3(String s) { for (int x = 0; x < 3; x++){ System.out.print (s +" "); } }
    • 4/14/19
    • 1542views
    • 4comments
    0
  • ARYAN
    Level 4
    Pune
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Under discussion
    can someone tell me whats wrong in it?plz tell my error
    • 12/13/18
    • 2869views
    • 10comments
    0
  • Robert P
    Level 20
    Nashville
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    Just a little confused...Alright, I'm confused. This produces the required results, but I can't seem to get it validated. It does sort numbers descending, via an exchange type logic, so they just move around without disturbing the order of the words. Line 45 and 46: These lines reference the String numbers from array, c
    • 11/17/18
    • 2288views
    • 5comments
    0
  • Texas Pete
    Level 7
    Bucharest
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    The displayed text must match the task conditions.I can't see where the problem is with this, it compiles and seems to output correctly, still fails verify with "The displayed text must match the task conditions." Can someone please help me with this to get it to verify.
    • 4/15/19
    • 1989views
    • 4comments
    0
  • Kristian
    Level 12
    Zagreb
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    It should work i guessI understand i did not need to write an else if only else but I wanted to try it anyway
    • 6/10/19
    • 1545views
    • 2comments
    0
  • Guadalupe Gagnon
    Level 37
    Tampa
    Question about the task Chat (part 14)
    Java Multithreading, Level 6, Lesson 15
    Resolved
    Is this brokenHave no idea what is going on.
    • 4/15/19
    • 1873views
    • 28comments
    0
  • Loki
    Level 9
    Mumbai
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    what is wrong in this?package com.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { if(a<=b && a<=c) return a; else if(b<=a && a<=c) return b; else return c; }
    • 6/7/19
    • 1799views
    • 3comments
    0
  • Earil
    Level 25
    Paris
    Question about the task Family census
    Java Syntax, Level 7, Lesson 12
    Resolved
    Bug report - Task 0724Hello, The valadity test for this task has a bug. Complete code is not allowed, so here are the key points : Here are the constructors I used (second constructor calls the first one with null argument for father and mother). public Human(String name, boolean sex, int age, Human fathe
    • 6/7/19
    • 1947views
    • 3comments
    0
  • ann
    Level 4
    Dusseldorf
    Question about the task Setting the number of cats
    Java Syntax, Level 4, Lesson 2
    Resolved
    I don't understand the problem
    • 12/21/18
    • 2327views
    • 3comments
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Distributing items into baskets with their own lock
    Java Multithreading, Level 6, Lesson 8
    Resolved
    Not sure what formula to use for synchronized lock....depending on the object hash/element and the number of lock objects? I need more hints. Also tried ternary with lock[hash or i] but didn't know what the else would be if hash or i was larger than lock.length.
    • 5/13/19
    • 1855views
    • 6comments
    0
  • Joyonta Saha
    Level 31
    Question about the task Singleton
    Java Core, Level 4, Lesson 8
    Resolved
    3rd and 4th condition is not verifying Need help!
    • 9/25/18
    • 2404views
    • 3comments
    0
  • Arun Karthikeyan
    Level 3
    Bangalore
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    While Loop why now?Why is the Loops example when loops have not been covered yet?
    • 3/3/19
    • 1916views
    • 5comments
    0
  • Djole
    Level 41
    Belgrade
    Question about the task Aggregator (part 3)
    Java Collections, Level 8, Lesson 15
    Resolved
    "You haven't created a getter and setter for the websiteName field." public class JobPosting { ... public String getWebsiteName() { return websiteName; } public void setWebsiteName(String websiteName) { this.websiteName = websiteName; } ... }
    • 6/7/19
    • 1510views
    • 4comments
    0
  • Peerawas
    Level 18
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Resolved
    Need some helpIt said "Be sure that the sort() method is able to sort arrays of different lengths."
    • 12/23/18
    • 2020views
    • 6comments
    0
  • Profj
    Level 20
    Lagos
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    I don't know what the problem is. please helppackage com.codegym.task.task04.task0409; /* Closest to 10 */ public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); displayClosestToTen(7,13); } public static void displayClosestToTen(int a, i
    • 6/1/19
    • 1559views
    • 2comments
    0
  • Rhythem Parashar
    Level 11
    Mumbai
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    I dont know why it is not verifying :\When I ran the code on intellij, the output is "Sam I Am". But Still it is not verifying.
    • 5/31/19
    • 1303views
    • 1comment
    0
  • past cham
    Level 6
    Delhi
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Under discussion
    how to slovehow to slove
    • 3/31/19
    • 2128views
    • 3comments
    0
  • 1
  • ...
  • 313
  • 314
  • 315
  • 316
  • 317
  • ...
  • 374
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
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 a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym