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
  • Fabian Andiel
    Level 9
    Vienna
    Question about the task Four mistakes
    Java Core, Level 3, Lesson 2
    Under discussion
    Dream interface?Hi guys, I got the sulotion with the help of the forum, but I am not completely sure about the following points: "hy has the dream Interface access to the Hobby class? Why can we access the Dream Interface directly? I thought interfaces are all abut methods, why we instantiate a variable in the i
    • 7/20/20
    • 737views
    • 1comment
    0
  • Rafał
    Level 35
    Łódź
    Question about the task Deserializing an XML object
    Java Collections, Level 3, Lesson 8
    Under discussion
    what am i doing wrong?what am i doing wrong?
    • 10/8/20
    • 624views
    • 1comment
    0
  • Szymon
    Level 41
    Warsaw
    Question about the task Another kind of deadlock
    Java Multithreading, Level 7, Lesson 4
    Resolved
    Woudn't just synchronized (lock) {} be enough?Why do we need to lock (this) as well? I see it that way: The thread goes into the first method -> locks the 'lock' mutex -> then goes to the second method and tries to go into the synchronize (lock) {} block but it can't because the 'lock' mutex was already acquired in the first method ->
    • 4/27/21
    • 771views
    • 5comments
    0
  • Maria
    Level 22
    Moscow
    Question about the task Symbol frequency
    Java Core, Level 8, Lesson 11
    Resolved
    trying to pass penultimate requirements..What is wrong? Treemap is already sorted...
    • 4/29/21
    • 513views
    • 2comments
    0
  • The Chief
    Level 18
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Need help understanding this code.I couldn't figure out this task so I had to download the solution but I need help understanding it. First, how can the user enter both strings and numbers when the arraylist and array in the main method are only string types? Is it because the compiler takes the numbers and sets them as being of st
    • 4/28/21
    • 848views
    • 5comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Help there is no copy happeningi can't figure out what's wrong or lacking
    • 4/27/21
    • 804views
    • 8comments
    0
  • Jurij Thmsn
    Level 29
    Flensburg
    Question about the task Serializing people
    Java Core, Level 10, Lesson 10
    Resolved
    quick questionI get it why the Logger and PrintStream fields must be transient. Can anyone explain me briefly why the fullName and greeting fields have to be transient, too? (regarding "final" modifier the Professors' article said: "Second, you should also pay attention to variables with the final modifier. Whe
    • 4/28/21
    • 708views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task Finagle's first law: if an experiment succeeds, then something went wrong...
    Java Multithreading, Level 5, Lesson 11
    Resolved
    What's the point of this exercise? I moved the Thread.yield(); around the code and the output was the same. I don't get it. public class Solution { public static class YieldRunnable implements Runnable { private int index; public YieldRunnable(int index) { this.index = index; } public void run() { System.out.println("begin-" + index); Thread.yield
    • 4/28/21
    • 930views
    • 2comments
    0
  • Csaba Fülöp
    Level 6
    Debrecen
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    Display max is not fullfilled even if it is :/Every condition have passed except displaying max, however on the console it gets displayed yet the condition is not met. Can anyone help me to understand why it is not accepted?
    • 4/25/21
    • 701views
    • 3comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Minimum and Maximum
    Java Core, Level 1, Lesson 11
    Under discussion
    My output is The minimum is 0 The maximum is 0. Why? What should I change in my code? Thanks a lot! package com.codegym.task.task11.task1123; public class Solution { public static void main(String[] args) throws Exception { int[] data = new int[]{1, 2, 3, 5, -2, -8, 0, 77, 5, 5}; Pair result = getMinimumAndMaximum(data); System.out.println("The minimum is " + result
    • 4/28/21
    • 531views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task It's not as easy as it seems
    Java Multithreading, Level 5, Lesson 7
    Under discussion
    Help please? What should I do here?Can anyone please provide some pointers?
    • 4/27/21
    • 584views
    • 5comments
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Resolved
    Is this possible?? Isn't it just another misspelling again?https://codegym.cc/quests/lectures/questcore.level07.lecture01 The "another example" in the lesson, with the swaping of the names. As Dmitri said in his post at 29 December 2020, 06:07: "if each thread is working with it's own MyClass instance why all this mess should happen?" In my opinion, this pr
    • 4/26/21
    • 863views
    • 10comments
    0
  • Maxim Raitin
    Level 20
    Tomsk
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Resolved
    Please Help meHello there! What is wrong?
    • 4/26/21
    • 726views
    • 3comments
    0
  • Sophia
    Level 1
    Question about the task Kind words for the teacher
    Java Syntax, Level 0, Lesson 4
    Under discussion
    Can't find what's wrongI can't see what's wrong with this. Everytime I try to run it, it says it can'r find the symbol and highlights the first period in the code. public static void main(String[] args) { System.out.printIn("Ellie is clever"); System.out.printIn("Ell
    • 12/28/20
    • 726views
    • 5comments
    0
  • Steven's Education
    Level 7
    Jahil
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    The code works but not with the taskI created the algorithm to find the maximum number from x input.It works but it doesn't fill the requirements. Somebody help please
    • 4/23/21
    • 794views
    • 3comments
    0
  • Emeka
    Level 4
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    confusion about the ? operatorI have an idea for how the ? operator works: it is shorthand for if else statements. though I'm confused as to how it can be put as a return value of a method. At first, I thought the operator was syntactically equivalent (i.e. in any context, you can interchange the two and the program will yield t
    • 4/24/21
    • 1106views
    • 3comments
    0
  • Sansho
    Level 19
    Bordeaux
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    The outputs are okay, but the robot is tellin' me NooOOooWell, I think my algo is correct but it doesn't validate 2 things (well I admit, I don't used correctly the "greaterThan" because I found something more efficient)...
    • 4/23/21
    • 723views
    • 4comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Something is wrong here! Thank you so much! package com.codegym.task.task10.task1019; import java.io.*; import java.util.HashMap; /* Functionality is not enough! */ public class Solution { public static void main(String[] args) throws IOException { HashMap map = new HashMap<>(); BufferedReader reader = new Buffe
    • 4/23/21
    • 735views
    • 2comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Writing our own ThreadFactory
    Java Multithreading, Level 8, Lesson 4
    Under discussion
    Got it right but don't understand small pointI initially failed: The AmigoThreadFactory factory must create threads that are not daemons. The AmigoThreadFactory factory must create threads with a normal priority level. Until I added: thread.setDaemon(false); thread.setPriority(5); But aren't these the default values for any new Thread?
    • 4/22/21
    • 1306views
    • 7comments
    0
  • Xavier
    Level 17
    Pearland
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    I get an error when nothing is entered for id.I've spent hours on this and I don't know what more to do. The code works just fine if nothing is entered for name, but I get a NumberFormatException error when nothing is entered for id.
    • 4/23/21
    • 781views
    • 2comments
    0
  • Jurij Thmsn
    Level 29
    Flensburg
    Question about the task Reading and writing to a file: CodeGym
    Java Core, Level 10, Lesson 2
    Resolved
    falseWhen checking with my test file everything seems fine to me. Still getting a "false" output, not to mention the validation. I've been staring at this for too long. Maybe someone has a hint for me? Thanks in advance! public class Solution { public static void main(String[] args) { /
    • 4/22/21
    • 710views
    • 3comments
    0
  • Maria
    Level 22
    Moscow
    Question about the task Clew
    Java Core, Level 6, Lesson 13
    Resolved
    Last requirements..Why?? whats wrong?? @#$@#@#
    • 4/16/21
    • 937views
    • 6comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Array of string lists
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Something is wrong here! Thanks a lot! package com.codegym.task.task10.task1015; import java.util.ArrayList; /* Array of string lists */ public class Solution { public static void main(String[] args) { ArrayList[] arrayOfStringList = createList(); printList(arrayOfStringList); } public static ArrayList[
    • 4/22/21
    • 729views
    • 5comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Who called me?
    Java Syntax, Level 9, Lesson 2
    Under discussion
    How do you get the correct element in the stackTrace? package com.codegym.task.task09.task0903; /* Who called me? */ public class Solution { public static void main(String[] args) throws Exception { method1(); // StackTraceElement[] elements = Thread.currentThread().getStackTrace(); // for (StackTraceElement el
    • 4/15/21
    • 668views
    • 2comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Method in a try-catch
    Java Syntax, Level 9, Lesson 11
    Under discussion
    how do i know what exception to catch?in this case how can i able to know what specific exception to catch instead of using Exception as general?
    • 4/22/21
    • 853views
    • 4comments
    0
  • Edward Rickers
    Level 15
    Washington
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    Says I didn't create an array of 15 integers package com.codegym.task.task07.task0706; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Streets and houses */ public class Solution { public static void main(String[] args) throws Exception { Integer[] houses = new Integer[15];
    • 4/22/21
    • 710views
    • 2comments
    0
  • ImDevin
    Level 15
    Old Town
    Resolved
    Intellij not running the current task - Help would be appreciatedI've not been able to run the current task for a while. Every time I run a current task (right now, I'm on 0712), it runs 0523. The Edit Configuration shows the current, correct task, but it only runs the task 0523. Don't know what I can do to fix this. Any help would be appreciated. thx
    • 4/20/21
    • 647views
    • 2comments
    0
  • John
    Level 17
    Mansfield
    Question about the task What's today's date?
    Java Syntax, Level 9, Lesson 11
    Resolved
    Month is in LowerCaseI got the exact right output except that the month is in lower case, can someone give a hint on how to fix it?
    • 4/22/21
    • 871views
    • 3comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Catching custom exceptions
    Java Syntax, Level 9, Lesson 8
    Under discussion
    HelpCan somebody give a little hint?
    • 4/19/21
    • 644views
    • 2comments
    0
  • oli blaustrom
    Level 18
    Luzern
    Question about the task Let's talk music
    Java Core, Level 6, Lesson 3
    Under discussion
    My thread doesn't wake upAfter calling the sleep method nothing else will be called in run. I don't get it? I tried some solutions of others here too that supposed to work but they have the same problem when I put it in after sleepNseconds nothing gets called.
    • 2/28/20
    • 1121views
    • 6comments
    0
  • 1
  • ...
  • 76
  • 77
  • 78
  • 79
  • 80
  • ...
  • 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