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
  • Nakul Sehgal
    Level 9
    New Delhi
    Question about the task Good or bad?
    Java Syntax, Level 4, Lesson 4
    Under discussion
    How did we use method compare directly instead of creating an object?We called the compare() method directly in main() method. Should we not have created an object first, through "Solution solution = new Solution();" and used the compare method like this: solution.compare(3); solution.compare(6); solution.compare(5);
    • 4/10/20
    • 1116views
    • 2comments
    0
  • hidden #10362262
    Level 9
    Question about the task Good or bad?
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Code runs but What is wrong with the formatting of the answer?I am running this successfully offsite and I don't know what the test is looking for. Can someone please help me to figure out why my output is not acceptable? Thank you.
    • 10/26/18
    • 2477views
    • 9comments
    0
  • Dave Andrea
    Level 41
    Question about the task Chat (part 22)
    Java Multithreading, Level 6, Lesson 15
    Under discussion
    I finished, but it still doesn't work. Could someone send me their solution to help me debug?Hey guys, I got through all the steps and everything verified, but I have a bug somewhere that stops it from working properly. I don't want to ask someone to go through all my code (there's way too much for that), but I'd appreciate it if someone could perhaps send me their completed code so I cou
    • 9/20/20
    • 565views
    • 0comments
    0
  • sourav bamotra
    Level 20
    jammu
    Question about the task Order of loading variables
    Java Core, Level 5, Lesson 12
    Under discussion
    passed the task but i still not get the use of "this" operator.--> "printAllFields(this)" how is this "this" is working in place of Solution obj argument.
    • 9/21/20
    • 540views
    • 0comments
    0
  • Bhuvana Kumar
    Level 14
    Mumbai
    Question about the task Exceptions. Just exceptions.
    Java Syntax, Level 9, Lesson 8
    Under discussion
    Error in com/codegym/task/task09/task0913/Solution.java on line 3 package jdk.internal.org.objectweb.asm.tree does not existError in com/codegym/task/task09/task0913/Solution.java on line 3 package jdk.internal.org.objectweb.asm.tree does not exist why I am getting this error
    • 9/23/20
    • 561views
    • 0comments
    0
  • Dave Andrea
    Level 41
    Question about the task Archiver (part 15)
    Java Multithreading, Level 7, Lesson 15
    Under discussion
    Doesn't seem to work for nested directoriesI passed the verification, but my solution got an error if I had any directories inside the zip file. I used the code from part 16 to check with my zip file and the same thing happens. So the updated corrected code they make us use doesn't work either. I wouldn't mind knowing why, but I also want to
    • 9/24/20
    • 585views
    • 0comments
    0
  • Youngsan
    Level 41
    Seoul
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    Last two conditions were failed.I got the right answer in IntelliJ, but failed last two requirements. Pls help.
    • 9/24/20
    • 615views
    • 0comments
    0
  • Lawson
    Level 29
    Lagos
    Question about the task How to avoid Copy+Paste
    Java Multithreading, Level 4, Lesson 6
    Under discussion
    Pls helpThe output is correct but not validating
    • 9/26/20
    • 559views
    • 0comments
    0
  • Russell
    Level 2
    Galmpton, Brixham
    Question about the task Minesweeper (Part 16/16)
    Games, Level 0, Lesson 0
    Under discussion
    unable to publishGame is competed and has varified so am unable to post the code here, however, I am having a problem whereby the game will not publish. It runs fine, all works perfectly, but when i try to publish it publically, i get a publish error
    • 9/27/20
    • 432views
    • 0comments
    0
  • sourav bamotra
    Level 20
    jammu
    Question about the task Following a pattern
    Java Core, Level 6, Lesson 13
    Under discussion
    masters i need little helphow can i use System.currentTimeMillis() for checking how long the CountupRunnable and CountdownRunnable run? I'm actually confused how placing the "Thread.sleep(500)". before the if statement made my task to get pass.
    • 9/28/20
    • 441views
    • 0comments
    0
  • Berkay Gültekin
    Level 1
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    I still struggle even I checked the help section... Help
    • 9/28/20
    • 524views
    • 0comments
    0
  • isaacfibo
    Level 24
    Huntington
    Question about the task Reading and writing to a file: CodeGym
    Java Core, Level 10, Lesson 2
    Under discussion
    What exception occurs?Help pls? Stuck......
    • 9/30/20
    • 603views
    • 0comments
    0
  • Garrett Bowler
    Level 3
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Helpful hintwhile comparing, single out one int at a time, so do a against b and then against c rather than a < b and b < c. this should help with last unresolved issue
    • 7/24/20
    • 736views
    • 0comments
    1
  • hidden #10625598
    Level 23
    Question about the task Deep cloning of a map
    Java Multithreading, Level 1, Lesson 8
    Under discussion
    can somebody tell me why this is wrong?
    • 7/26/20
    • 689views
    • 1comment
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Under discussion
    Error: Could not find or load main class com.codegym.task.task14.task1408.SolutionI've got my code in intelija but when I run the solution class I get the error Error: Could not find or load main class com.codegym.task.task14.task1408.Solution. Can anyone help me resolve this issue? public class Solution { public static void main(String[] args) { Hen hen = HenFactor
    • 7/31/20
    • 535views
    • 0comments
    0
  • Dennis
    Level 1
    Malakoff
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    What Does This Have to Do With SerializtionThis stage is about serialization and there is no serialization in this task. Wondering why it's here?
    • 7/31/20
    • 638views
    • 0comments
    0
  • Rodrig R.
    Level 7
    Greensboro
    Under discussion
    Validation question markHi I am having trouble validating the result. when I send this code I see a question mark in the feedback. Should I be using less variables? I am not sure what the issue in my code is. Thanks
    • 8/1/20
    • 455views
    • 0comments
    0
  • Collin Morudi
    Level 17
    Polokwane
    Under discussion
    How to bookmark a lesson?Hello everyone, can anyone tell me how to bookmark the lessons for later reference?
    • 8/2/20
    • 537views
    • 0comments
    0
  • Fabian Andiel
    Level 9
    Vienna
    Question about the task Countdown at the races
    Java Core, Level 6, Lesson 10
    Under discussion
    Why is it not working?Please help don`t understand why it`s not working. When i tested the code with 3 in my Inteliji it worked just fine. With 4 im not sure if I´m getting the supposed result.
    • 8/4/20
    • 768views
    • 0comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Under discussion
    could anyone please clear my doubt?we used here 'fileReader' in BufferedReader object instead of System.in , what does it actually mean.🤔🤔
    • 8/5/20
    • 501views
    • 0comments
    0
  • hidden #10625598
    Level 23
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    can anybody see my mistake here?
    • 8/5/20
    • 624views
    • 0comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task Refactoring (part 8)
    Java Multithreading, Level 5, Lesson 16
    Under discussion
    HELP plsno idea what to do "The removeStudent(int index) method should remove the student with the specified index." "Use a break statement in the findJohnOrAlex() method." (StudentDatabase class)
    • 8/5/20
    • 611views
    • 0comments
    0
  • Lydia
    Level 0
    Under discussion
    help me solve this...*URGENT*Write a Java Program which includes at least 6 different questions with 4 Multiple Choice Options. Ask the User to choose one answer from those 4 choices. You can implement the MCQs with RadioButton Class of Swing Package. After answering all the answer by the user your program should be able to com
    • 8/6/20
    • 638views
    • 0comments
    0
  • asdqwe
    Level 2
    Prague
    Under discussion
    将下列代码中各个不同功能的类放在不同的包定义package aaaa; interface Pet{ public String getName(); public String getColor(); public int getAge(); } class Cat implements Pet{ private String name; private String color; private int age; public Cat(String name,String color,int age) { this.setName(name); this.setColor(color); this.setA
    • 8/8/20
    • 622views
    • 0comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task Determining locking order
    Java Multithreading, Level 7, Lesson 6
    Under discussion
    Followed Guadalupe's suggestion and it still doesn't work. Help, plsHi. I followed the steps suggested by Guadalupe here and it still doesn't work. Can someone help me here? I don't know exactly what should I return. I don't know if the problem is there or somewhere else. Thanks.
    • 8/11/20
    • 533views
    • 0comments
    0
  • Maxim Raitin
    Level 20
    Tomsk
    Under discussion
    IntelliJ IDEA shidt+F10 doesn't workHello. After install plugin IntelliJ IDEA doesn't run a program
    • 8/11/20
    • 463views
    • 0comments
    0
  • Tony Roy
    Level 41
    Victorville
    Question about the task HTML Editor (part 24)
    Java Multithreading, Level 8, Lesson 15
    Under discussion
    extending the editorI have managed to extend the editor including with an indent action. For an action class that extends StyledEditorKit.StyledTextAction the key code is, MutableAttributeSet mutableAttributeSet = new SimpleAttributeSet(); StyleConstants.setLeftIndent(mutableAttributeSet, );
    • 8/11/20
    • 668views
    • 0comments
    0
  • allthemore
    Level 41
    Question about the task How many potential friends does a person have?
    Java Collections, Level 6, Lesson 8
    Under discussion
    Got the same result as expected but verification didn't passI've got the same results as expected but verification didn't pass. Could you help me figure out why?
    • 8/14/20
    • 692views
    • 0comments
    0
  • Teodor Clipa
    Level 41
    Bucharest
    Question about the task Restaurant (part 22)
    Java Multithreading, Level 9, Lesson 15
    Under discussion
    Can't get validator to workNo matter what I change, the validator still gives Time out.
    • 8/14/20
    • 804views
    • 0comments
    0
  • Blizniak
    Level 4
    Cieszyn
    Under discussion
    Program run to loong dlaczego ? package pl.codegym.task.task03.task0314; /* Tabliczka mnożenia */ public class Solution { public static void main(String[] args) { int a = 1; while (a <=10); int b = 1; while (b <= 9) ; System.out.println(a * b + b++); System.o
    • 1/14/21
    • 557views
    • 1comment
    0
  • 1
  • ...
  • 97
  • 98
  • 99
  • 100
  • 101
  • ...
  • 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