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
  • Janusz
    Level 11
    Radomsko
    Question about the task Countdown
    Java Syntax, Level 7, Lesson 12
    Under discussion
    What is wrong Why the message appears? I'm sure the code is OK com/codegym/task/task07/task0723/Solution.java:12: error: unreported exception java.lang.InterruptedException; must be caught or declared to be thrown Thread.sleep(100); public class Solution { public static void main(String[] args) {
    • 1/21/19
    • 2773views
    • 7comments
    1
  • Matno
    Level 2
    London
    Question about the task As simple as 2+2
    Java Syntax, Level 1, Lesson 8
    Under discussion
    did we learn this in the previous lesson?..I don't understand at all even the previous task.
    • 11/29/20
    • 832views
    • 2comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Do we have a pair?
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What went wrong import java.io.*; public class Pair { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader (new InputStreamReader(System.in)); String num1 = reader.readLine(); String num2 = reader.r
    • 11/29/20
    • 623views
    • 2comments
    0
  • // Java Poser
    Level 18
    Cincinnati
    Question about the task Time for 10,000 get calls
    Java Syntax, Level 8, Lesson 6
    Resolved
    Can someone please drop a hint??intelliJ is not allowing my getSeconds() method to work, not sure why.
    • 3/9/19
    • 1661views
    • 3comments
    0
  • Rohit Aggarwal
    Level 32
    New Delhi
    Question about the task Aggregator (part 15)
    Java Collections, Level 8, Lesson 15
    Resolved
    Can anyone help me out here???It's failing on 3rd condition and I'm not able to understand why. I tried running the code on my local machine with dummy data, and it seems to produce the correct output. I'm clearly removing the template class and style attribute from the copy of element having the template class, Line 24-27
    • 8/14/20
    • 906views
    • 3comments
    2
  • BlueJavaBanana
    Level 37
    Question about the task Palindrome?
    Java Multithreading, Level 10, Lesson 2
    Resolved
    Can someone explain the requirements a bit more?I'm getting different outputs, I'm ot sure I understand the task requirements properly. This ismy curren code: public class Solution { public static void main(String[] args) { System.out.println(getRadix("112")); // Expected output: [3, 27, 13, 15] System.out.println(ge
    • 11/29/20
    • 526views
    • 2comments
    0
  • Tay2von
    Level 6
    Oklahoma City
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Everything functions properly but fails.... Why????
    • 11/29/20
    • 622views
    • 2comments
    0
  • Usama Ali
    Level 2
    Multan
    Question about the task As simple as 2+2
    Java Syntax, Level 1, Lesson 8
    Under discussion
    I didn't understand what to do can anyone help plz?Tried all the methods that I could
    • 9/16/18
    • 1837views
    • 8comments
    0
  • Maria
    Level 7
    Berlin
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Resolved
    Help please, I dont know why the program dosent workHello everyone, I need help with these task, is not verifying, I dont know why, I hope you can help me Greetings, Maria :D
    • 11/29/20
    • 764views
    • 2comments
    0
  • Shadow
    Level 7
    Hogsmead
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    helppwhy is still the last condition not completed...
    • 11/26/20
    • 620views
    • 2comments
    0
  • Lex Icon
    Level 17
    Sofia
    Question about the task Remove and insert
    Java Syntax, Level 7, Lesson 6
    Resolved
    The problem with 4th condition.Please, help.
    • 11/20/20
    • 713views
    • 5comments
    0
  • Robert Constantinescu
    Level 1
    Bucharest
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    Am i missing something?So the program looks like it displays the desired output, but for some reason(that i can't figure out) it doesn't pass testing? Could you let me know what the problem is here? Thanks you
    • 10/22/19
    • 1304views
    • 5comments
    0
  • MP
    Level 8
    Wietzendorf
    Under discussion
    Redoing tasksIs there a way to redo tasks? I stopped learning and want to start over again
    • 11/28/20
    • 738views
    • 1comment
    0
  • Matthäus Schüle
    Level 6
    Question about the task Man and woman
    Java Syntax, Level 5, Lesson 12
    Under discussion
    I need some help here ...Hi all, i really do not get it. Where exactly is my failure in this task ... Thanks in advance for your help
    • 11/28/20
    • 616views
    • 2comments
    0
  • Шарох
    Level 12
    Question about the task Maximum in an array
    Java Syntax, Level 7, Lesson 4
    Resolved
    Hi Coders ! We want to find max number in an array list . I have three questions : 1) We need a loop, for checking our condition in the scope of array list. And we need a "if condition" for our purpose. So what should I do now.I don't know why "Arrays" is such ambiguous. 2) What's my fault ? 3) Please introd
    • 11/27/20
    • 755views
    • 4comments
    0
  • Erhan H.
    Level 23
    Istanbul
    Question about the task Introducing properties
    Java Core, Level 10, Lesson 2
    Under discussion
    Help pleaseHelp please
    • 12/2/19
    • 1380views
    • 1comment
    0
  • Baurzhan Konurbayev
    Level 40
    Question about the task Introducing properties
    Java Core, Level 10, Lesson 2
    Under discussion
    Still failing after fixing commentsHi, Previously I had issue with comments, but it was fixed and I was able to load from txt with the same content as on Wikipedia. Could you please check? Thanks
    • 8/18/20
    • 650views
    • 2comments
    0
  • hidden #10618197
    Level 16
    Under discussion
    Condition 4 not met? but why, the programm does what it shoud
    • 11/20/20
    • 635views
    • 2comments
    0
  • hidden #10618197
    Level 16
    Under discussion
    Last condition not met, but why? The programm does what it shoud!
    • 11/20/20
    • 505views
    • 2comments
    0
  • Seferi
    Level 22
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Under discussion
    Help is greatly appreciatedI'm failing the last condition..
    • 11/10/20
    • 737views
    • 11comments
    0
  • Nouser
    Level 36
    Question about the task CountDownLatch
    Java Multithreading, Level 7, Lesson 9
    Resolved
    Can someone explain me why?So I have stripped down the someMethod() to just latch.await() and the retrieveValue() call. Validation gives me the hint to 'call countDown on the object stored in the latch field'. But why? await stops all threads till the latchs internal counter is set to zero. If I countdown before await what's
    • 11/25/20
    • 865views
    • 7comments
    0
  • Andrei
    Level 41
    Question about the task Census
    Java Syntax, Level 8, Lesson 8
    Resolved
    On paper everything is fine, even read many other comments to the problem and the Help section, still, not passing verification. public class Solution { public static int countFirstName = 0; public static int countLastName = 0; public static HashMap createMap() { //write your code here HashMap mapOfNames = new HashMap<>(); mapOfNames.put("Andrei", "Damigeana"); mapOfNames.p
    • 11/3/20
    • 838views
    • 4comments
    0
  • Andrei
    Level 41
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Resolved
    Is there a way I could make my program simpler, more elegant? public class Solution { public static void main(String[] args) throws IOException, FileNotFoundException { // write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String str1 = null; String str2 = "exit"; String
    • 11/27/20
    • 511views
    • 2comments
    0
  • Seferi
    Level 22
    Question about the task Stranger things
    Java Core, Level 10, Lesson 2
    Resolved
    Help is appreciated - equals methodNothing I tried worked. Can someone point me to the right direction?
    • 11/25/20
    • 673views
    • 4comments
    0
  • Шарох
    Level 12
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    Hi Coders! 1. What's @Override ? 2. What's my code wrong 😞?
    • 11/25/20
    • 882views
    • 7comments
    0
  • Karol Wijas
    Level 12
    Zawada
    Under discussion
    Poziomy trudności zadań ?Witam, Czy ktoś opisze poziomy trudności zadań? Tak z ciekawości bo nie mogę nigdzie znaleźć na stronie :D
    • 11/26/20
    • 544views
    • 5comments
    0
  • Andrei
    Level 41
    Question about the task Don't mix beer with cola
    Java Core, Level 3, Lesson 2
    Resolved
    public vs default?If public interface drink is public, and public class beer is public and boolean isAlcoholic is default, why do I have to change it to public when implementing it in beer class?
    • 11/26/20
    • 546views
    • 2comments
    0
  • Jeremi Nuer
    Level 7
    San Francisco
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Resolved
    Should work... why doesn't it?I've checked other peoples problems, and looked over mine quite a few times. Everything should work, but its not fulfilling last two requirements, and its not telling me whats wrong.
    • 11/26/20
    • 486views
    • 1comment
    0
  • Albert
    Level 6
    Hong Kong
    Question about the task Create a Rectangle class
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Cannot get the point of this task// I kind of pass the task, but I have completely no idea what I have done // Did I miss any element from the task? /* if I type: public Rectangle(int left, int width){ // case A this.left = left; this.width = width; } does it presents to the system the same as: pu
    • 11/24/20
    • 835views
    • 2comments
    0
  • Maryem Vickers
    Level 7
    HT...
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Hey, what is the NullPointerException Error here?! I need some help!Hi coders, Can I have some help?! If you run this, you find this error; java.lang.NullPointerException at com.codegym.task.task07.task0708.Solution.main(Solution.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethod
    • 11/13/20
    • 509views
    • 2comments
    0
  • 1
  • ...
  • 113
  • 114
  • 115
  • 116
  • 117
  • ...
  • 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