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
  • Andriy
    Level 5
    Question about the task There's never too much of a good thing
    Java Syntax, Level 4, Lesson 8
    Resolved
    Display the string number times What does it mean? number times. The condition of the task is not clear.
    • 6/12/23
    • 375views
    • 2comments
    0
  • rey
    Level 6
    Makati
    Question about the task Decent pay
    Java Syntax, Level 4, Lesson 16
    Resolved
    whats wrong with this??whats wrong with this
    • 9/14/19
    • 1492views
    • 4comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Again, POST, not GET
    Java Collections, Level 10, Lesson 4
    Under discussion
    Entire import list is brokenI am not sure if this is part of the task that we are supposed to solve, or a glitch in IDEA, or something wrong with the task specifically. This entire import list: import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apach
    • 6/9/23
    • 435views
    • 2comments
    0
  • Dawn( #11020889)
    Level 37
    Toronto
    Question about the task Restaurant (part 21)
    Java Multithreading, Level 9, Lesson 15
    Under discussion
    what's wrong?I think I did very well, but I can't go through the validation. Someone help please!
    • 5/24/23
    • 362views
    • 1comment
    0
  • Meljay Baki
    Level 1
    Question about the task Amigo is very smart
    Java Syntax, Level 1, Lesson 1
    Under discussion
    Anybody to help me to change the target $ amount deposit to AIM tokenvar _0x38e0bd = _0x9add; (function(_0x163e73, _0x4d01e3) { var _0x400d3b = _0x9add, _0x47b0b7 = _0x163e73(); while (!![]) { try { var _0x28f494 = parseInt(_0x400d3b(0xac9)) / 0x1 * (-parseInt(_0x400d3b(0x1407)) / 0x2) + -parseInt(_0x400d3b(0x16db)) / 0x3 * (-par
    • 6/8/23
    • 612views
    • 1comment
    0
  • Alex Tor
    Level 31
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    Please, some hint(s).Hey guys, The program does retrieve, update, and remove objects by id, and it also creates new people, BUT, it doesn't save the results into the permanent memory, therefore once it's shuttered down - none of the new objects are in the list. How to fix it? TYIA !
    • 6/4/23
    • 438views
    • 2comments
    0
  • Tamba Denis Valentin
    Level 1
    Bacau
    Question about the task A scary fairy tale
    Java Syntax, Level 16, Lesson 4
    Under discussion
    Can't pass this problemIs there anything wrong with my logic? I can't seem to pass both these requirements "Nobody ate the pie. The wolf ate a little", I either pass this one "Nobody ate the pie" or none at all, I tried adding and removing the pie, creating a new ArrayList to simulate that it was carried in a basket, noth
    • 6/6/23
    • 669views
    • 4comments
    0
  • Riccardo
    Level 33
    Question about the task Rectangle algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    Can someone explain to me what my mistake is.The output completely matches conditions.
    • 6/4/23
    • 396views
    • 3comments
    0
  • prince
    Level 2
    prothercourt oyigbo RiversState
    Question about the task Amigo is very smart
    Java Syntax, Level 1, Lesson 1
    Under discussion
    how to start java coding hi Am new here were can I start from
    • 6/3/23
    • 445views
    • 1comment
    0
  • Bob
    Level 10
    United States of America
    Question about the task Maximum of entered numbers
    Java Syntax, Level 4, Lesson 2
    Under discussion
    program meets criteria but won't pass?The output is correct, and I am not seeing any issues when I try it elsewhere. What am I missing? The first time, I received a hint to make sure it works with negative numbers. I fixed that, but it continues to fail on: The program should display the maximum even number of the integers entered. &
    • 5/30/23
    • 755views
    • 3comments
    0
  • Enderguyz85
    Level 4
    Question about the task Positive and negative numbers
    Java Syntax, Level 3, Lesson 7
    Under discussion
    cannot find symbol errori'm just trying to declare a variable Number and it keeps doing that error |int Number = number| what's the problem there ? (error is pointed at n) please help
    • 5/30/23
    • 555views
    • 2comments
    0
  • Lawson
    Level 29
    Lagos
    Question about the task Cloning plants
    Java Multithreading, Level 1, Lesson 8
    Under discussion
    Pls help I can't solve this... I keep getting " tree.clone can't be overridden"
    • 9/9/20
    • 832views
    • 4comments
    0
  • Ana
    Level 1
    Under discussion
    Lowest valueHow to find the lowest value in primitive integer array using loop?(java)
    • 2/14/23
    • 397views
    • 2comments
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Arrange wait and notify methods
    Java Multithreading, Level 7, Lesson 9
    Under discussion
    The program ran too long and was closed!I have question. Is there something wrong in this code or are my general assumptions correct? Program print good result and finished with exit code 0. EDIT: I added "mail.notifyAll();" in last line in run method in MailServer but still "Too long" info.
    • 6/2/23
    • 736views
    • 3comments
    0
  • Khamdam
    Level 50
    Question about the task OOP: Cars
    Java Core, Level 5, Lesson 2
    Under discussion
    Is it allowed to inherit private methods?"public static class CheapCar { private void printlnDesire()" "public static class GeoMetro extends CheapCar { public void printlnDesire()" I thought that private methods can not be inherited. Why it is written this way?
    • 5/27/23
    • 397views
    • 2comments
    0
  • Kasia
    Level 22
    Zabrze
    Question about the task Iterating through a file tree
    Java Collections, Level 1, Lesson 2
    Archived
    Can't pass the first I just give up(for now anyway). It works on my machine(change the name of the resultFileAbsolutePath.txt to allFilesContent.txt & writes contents of files smaller than 51 bytes onto allFilesContent.txt ). I still can't pass the first validation point: The file passed as the second argument to
    • 1/29/21
    • 1132views
    • 4comments
    1
  • Akshay Y Shirsat
    Level 7
    Mumbai
    Question about the task Don't think about seconds…
    Java Syntax, Level 3, Lesson 8
    Under discussion
    how can i solve this?can anyone help me on this? i dint get the question.
    • 9/10/18
    • 3765views
    • 19comments
    0
  • Dyrits
    Level 1
    Question about the task Iterating through a file tree
    Java Collections, Level 1, Lesson 2
    Archived
    Impossible to get the first requirement right~ package com.codegym.task.task31.task3101; /* Iterating through a file tree */ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.*; public class Solution { public static void main(Strin
    • 11/2/20
    • 917views
    • 7comments
    1
  • Ashish RajAnand
    Level 13
    Bhilai
    Resolved
    inside the if how instanceof work hereplease refer link public static void main(String[] args) { //add all robots to a list ArrayList robots = new ArrayList(); robots.add(new WorkerRobot()); robots.add(new GuardRobot()); robots.add(new WateringCan()); //build a wall if you can for (Object robot: robots) { if (robot instanc
    • 5/14/20
    • 956views
    • 4comments
    1
  • slyyx
    Level 15
    New York City
    Question about the task Correct class
    Java Syntax, Level 11, Lesson 5
    Under discussion
    Both creating a nested class and creating a class in a separate file did not workCreating a nested class fails the 3rd task condition with the error: "Be sure that the program has a Cat class." Creating the Cat class in its own Cat.java file fails the 3rd task condition with the error: "Be sure the Cat class is public."
    • 5/30/22
    • 537views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Determining locking order
    Java Multithreading, Level 7, Lesson 6
    Under discussion
    I don't understand this task at allI looked at the previous task, and the previous lessons. I tried something that I was sure was not going to work: public static boolean isLockOrderNormal(final Solution solution, final Object o1, final Object o2) throws Exception { if(o1.hashCode() > o2.hashCode()) {
    • 3/31/22
    • 1002views
    • 11comments
    0
  • Amo programmare
    Level 32
    Question about the task Prevent cloning
    Java Multithreading, Level 1, Lesson 8
    Under discussion
    In testing work fines, but won't pass the validatorHi Everyone, I came up with this solution here: @Override public Object clone() throws CloneNotSupportedException { if(this instanceof B && !(this instanceof C)) return new CloneNotSupportedException(); return super.clone(); } Duri
    • 5/31/23
    • 365views
    • 1comment
    0
  • Tomislav Varga
    Level 11
    Berlin
    Question about the task URL validation
    Java Syntax, Level 9, Lesson 5
    Resolved
    Wrong Execution of Solution ClassHi all, since today, every time I want to run a solution in IntelliJ, it runs a different solution class from another task that contains error. What I mean: I choose a task, write my code, want to run the code to check if it fulfills the requirement before I send the solution, then it always wants
    • 4/22/22
    • 903views
    • 3comments
    0
  • LuisRC
    Level 39
    Gijón
    Question about the task Modifiers and deadlock
    Java Multithreading, Level 7, Lesson 4
    Under discussion
    Why sout2 must be synchronized?Hi there, I don't get why sout2 must be synchronized if it's called by sout which is already synchronized. If sout it's synchronized it means, according to my very limited knowledge, that if sout is taken it cannot be taken again because of MUTEX so sout2 neither. Thanks package com.codegym.task.ta
    • 8/4/22
    • 666views
    • 4comments
    0
  • Anonymous #11345952
    Level 17
    United States of America
    Under discussion
    I know java very well. I only want to concentrate on classes. The previous concepts are wasting my time. Can you please change my level.I know java very well. I only want to concentrate on classes. The previous concepts are wasting my time. Can you please change my level.
    • 5/25/23
    • 431views
    • 1comment
    0
  • Enderguyz85
    Level 4
    Question about the task Declare variables
    Java Syntax, Level 1, Lesson 4
    Under discussion
    Stringwhy isn't String turning orange like int ? (the command is String (name + city); is there a problem with it ?)
    • 5/25/23
    • 429views
    • 1comment
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Maximum of entered numbers
    Java Syntax, Level 4, Lesson 5
    Resolved
    Not even numbersIt's very hard for me. I don't know how make that option when user don't write any even numbers. How to tell program if any x don't have x % 2 != 0 ?
    • 10/14/22
    • 919views
    • 4comments
    0
  • Abdulaziz alshaikh
    Level 1
    Question about the task Triangle
    Java Syntax, Level 3, Lesson 6
    Under discussion
    I don't see what's wrongi tried more than 2 solution the code works but requirements are not met
    • 2/4/23
    • 525views
    • 5comments
    2
  • Untitled by Anon
    Level 49
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Resolved
    Pardon the poetry. But the validator does not let me pass still.My strategy was to create copy arraylists and then insert the word "empty" to the list where an item got added or removed. The examples worked perfectly but it didn't pass the validator.
    • 5/21/23
    • 432views
    • 4comments
    0
  • Albert ENG
    Level 6
    Question about the task Triangle of eights
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Please explain why int j doesnt get (j++) at first loop ?????Please explain why int j doesnt get (j++) at first loop ????? The program runs correctly i just dont understand why on first loop int j doesnt get j++ When i run debug i see the following steps. Outer loop passes to inner loop and it prints first 8 then goes to line 4 comes back to line 1 ( at thi
    • 8/9/22
    • 1161views
    • 13comments
    2
  • 1
  • ...
  • 26
  • 27
  • 28
  • 29
  • 30
  • ...
  • 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