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
  • Oliver Heintz
    Level 18
    Mustang
    Question about the task UnsupportedFileName
    Java Core, Level 8, Lesson 8
    Resolved
    Why doesn't this work? I found a method I vaguely understand on Baeldung that I repurposed for this task, but I get the gist of it. We check the string at the end of the last "." and if it equals txt then we create a new FileInputStream, otherwise we close and throw the exception. It seems straightforward. Did I miscal
    • 3/12/21
    • 920views
    • 4comments
    0
  • Anatoly
    Level 17
    Question about the task The early bird gets the worm
    Java Core, Level 6, Lesson 13
    Resolved
    How to debug it?I did solve it,but i didn't use extra checker "if String is NOT equal to Zero" (if (string!=null) { result.add(s);, and after it has passed the validator - I didn't get why do we need it? Also i do have an issues with debugging multithreading Solutions, is anyone could sugge
    • 3/10/21
    • 717views
    • 4comments
    0
  • Josephine
    Level 1
    Normal
    Question about the task Find a substring
    Java Multithreading, Level 2, Lesson 5
    Resolved
    Getting the right output..Not veryfying.Can someone lookthrough please?Getting the right output..Not veryfying.Can someone lookthrough please?
    • 3/11/21
    • 706views
    • 1comment
    0
  • Anonymous #10714753
    Level 5
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    Alternative solution is not acceptedHello folks, I solved this question in another way and I tested it many times and each time I get the correct answer, but my Solution doesn't get accepted. Can anybody figure out why? public class Solution { public static void main(String[] args) throws IOException { //write your code
    • 3/12/21
    • 1064views
    • 3comments
    0
  • Saunter
    Level 0
    Colorado Springs
    Under discussion
    How to see completed tasks? Is there a way to review the descriptions of previous tasks? I finished the Hungry Snake game but wanted to go back and see the steps again.
    • 3/12/21
    • 504views
    • 1comment
    0
  • Libby
    Level 2
    Question about the task Different methods for different types
    Java Core, Level 5, Lesson 12
    Resolved
    java.lang.NumberFormatException: For input string: "exit"output: java.lang.NumberFormatException: For input string: "exit"
    • 3/11/21
    • 1236views
    • 11comments
    0
  • John Kluse
    Level 6
    Bountiful
    Question about the task Getters and setters for the Person class
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Not sure what I'm missingI've looked over the errors but I'm not seeing any missing variables, and I don't see what the issue is with the setters or getters. Any insight would be appreciated. Thanks.
    • 3/26/19
    • 2126views
    • 7comments
    2
  • Banak
    Level 29
    Saint-Gratien
    Question about the task Phone number verification
    Java Multithreading, Level 2, Lesson 13
    Resolved
    Cases that work Could someone tell me all the cases that work !!
    • 3/11/21
    • 721views
    • 4comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    How do you save the number value??The last two tasks are not passing for some reason?? package com.codegym.task.task10.task1019; import java.io.*; import java.util.HashMap; import java.util.Map; /* Functionality is not enough! */ public class Solution { public static void main(String[] args) throws IOException { B
    • 3/11/21
    • 764views
    • 2comments
    0
  • Pahunchik
    Level 8
    Moscow
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    What it want from me?What it want from me? Error: missing return statement at string 34
    • 3/11/21
    • 576views
    • 2comments
    0
  • Aleksandar Bajic
    Level 13
    Banja Luka
    Question about the task Minesweeper (Part 5/16)
    Games, Level 0, Lesson 0
    Resolved
    Can't pass validation. I don't understand.Am I wrong? Or it is validator?
    • 3/11/21
    • 793views
    • 4comments
    0
  • Andrei
    Level 41
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Resolved
    An int[][] array that contains strings? What is this , I don't understand.So we have the array below which is an int array yet it contains strings. How is that possible? int[][] wordSearch = new int[][]{ {'f', 'd', 'e', 'r', 'l', 'k'}, {'u', 's', 'a', 'm', 'e', 'o'}, {'l', 'n', 'g', 'r', 'o', 'v'}, {'m', '
    • 3/11/21
    • 536views
    • 5comments
    0
  • Daniel Whyte
    Level 17
    Question about the task Task No. 1 about integer type conversions
    Java Syntax, Level 10, Lesson 4
    Under discussion
    (Short) to (long) Can someone explain why changing the short to a long means that d will now be > 0?
    • 3/11/21
    • 692views
    • 1comment
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Question about the task OOP: Books
    Java Core, Level 5, Lesson 2
    Resolved
    about "this"Why is it necessary to use getBook().getTitle() in getOutputByBookType() method? Does this make sense/importance? The this.getTitle() is perfectly working, too.
    • 3/11/21
    • 645views
    • 2comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Chat (part 11)
    Java Multithreading, Level 6, Lesson 15
    Resolved
    Not handling Exceptions properlyNot sure what more they want
    • 3/10/21
    • 715views
    • 3comments
    0
  • EugeneEmory
    Level 8
    San Antonio
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Under discussion
    What am I doing wrong?So, on my end it's outputting the 8 inputs from the keyboard but the verifier doesn't accept it. Any idea why?
    • 3/8/21
    • 1107views
    • 3comments
    0
  • Vinay
    Level 11
    Resolved
    Getters and SettersCan we use getters without using setters & vice-versa?
    • 3/9/21
    • 566views
    • 2comments
    0
  • Romain
    Level 26
    Paris
    Question about the task Adding a file to an archive
    Java Collections, Level 1, Lesson 6
    Resolved
    why use ByteArrayOutputStreamHi, My solution didn't pass (althought it worked on my computer,for what I could see) until I take a look at the help section and test the ByteArrayOutputStream In my solution, to save content of the differents ZipEntry I used a buffer sized thanks the ZipEntry class getSize method and success to
    • 3/9/21
    • 911views
    • 3comments
    0
  • Josephine
    Level 1
    Normal
    Question about the task Bug in equals/hashCode
    Java Multithreading, Level 1, Lesson 5
    Resolved
    What is wrong in my code? Someone please helpWhat is wrong in my code? Someone please help
    • 3/9/21
    • 590views
    • 2comments
    0
  • Josephine
    Level 1
    Normal
    Question about the task Bug in equals/hashCode
    Java Multithreading, Level 1, Lesson 5
    Resolved
    checked for null.still not passing.please helpchecked for null.still not passing.please help
    • 3/9/21
    • 869views
    • 2comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Chat (part 6)
    Java Multithreading, Level 6, Lesson 15
    Resolved
    Please helpOther options I've tried for the loop: 1) catch (Exception e){ ConsoleHelper.writeMessage("error"); socket.close(); serverSocket.close(); break; } 2) catch (Exception e){ System
    • 3/9/21
    • 994views
    • 4comments
    0
  • Andrei
    Level 41
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    Why are you like this, validator? " The getNumbers method must return the array of numbers that satisfy the task conditions. "In order to figure what is wrong I would probably have to do it by hand or wth ? Here are my results after compilation [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407] memory 256 time = 0 [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1634, 8208, 9474, 54748, 92727, 93084, 548834] memory 4458 tim
    • 3/9/21
    • 617views
    • 2comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task OOP: Animal inheritance
    Java Core, Level 5, Lesson 2
    Under discussion
    method does not override or implement a method from a supertype - for Override ErrorWhy am I getting this error?? Thanks package com.codegym.task.task15.task1502; /* OOP: Animal inheritance */ public class Solution { // Add the Goose and Dragon classes here public static class Goose extends SmallAnimal { @Override public static
    • 3/8/21
    • 659views
    • 3comments
    0
  • Nobody
    Level 37
    Seattle
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    Can not pass the last conditionsEverything seems to be ok but don't know why i'm still fail
    • 5/29/19
    • 1837views
    • 3comments
    0
  • Vinay
    Level 11
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    Please help!After struggling for 2 days I could not find the solution. But what I got is that we need to use for (String key : copy.keySet()) I am still not used to enhanced for loop. Can someone please convert the enhanced for loop to longer version of for loop? And, little explanation will also help. Tha
    • 1/27/21
    • 661views
    • 3comments
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Rectangle algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    I don't understand this task at all.Could someone explain please?
    • 3/18/19
    • 2405views
    • 9comments
    2
  • Khurram
    Level 16
    Lahore
    Question about the task Fill a pool with water
    Java Syntax, Level 3, Lesson 5
    Resolved
    stuckwhy doesnt this pass the test? even tried return (a*b*c);
    • 9/3/18
    • 3153views
    • 7comments
    0
  • Banak
    Level 29
    Saint-Gratien
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Resolved
    Analysis of my code Could someone please explain to me what is wrong with my code????
    • 3/4/21
    • 1000views
    • 7comments
    0
  • Maxim Raitin
    Level 20
    Tomsk
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    Why 2 last requirerements don't metI think everything is fine
    • 3/7/21
    • 695views
    • 4comments
    0
  • Libby
    Level 2
    Question about the task Mastering the static block
    Java Core, Level 5, Lesson 12
    Resolved
    What's wrong?com/codegym/task/task15/task1529/Helicopter.java:4: error: com.codegym.task.task15.task1529.Helicopter is not abstract and does not override abstract method fly() in com.codegym.task.task15.task1529.CanFly public class Helicopter implements CanFly { ^ com/codegym/task/task15/task1529/Plane.ja
    • 3/7/21
    • 686views
    • 2comments
    0
  • 1
  • ...
  • 83
  • 84
  • 85
  • 86
  • 87
  • ...
  • 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