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
  • Tony Roy
    Level 41
    Victorville
    Question about the task Bug fix
    Java Collections, Level 7, Lesson 6
    Resolved
    This "easy" task has me stumped!Doesn't iterate in expected order. My first thought was some version of LinkedList (as below). This would give the expected output if lines 22, 23 were exchanged. After that, I think I've looked at all the implementations of map. . . Thanks for any help!!!
    • 03.06.2020
    • 425views
    • 1comment
    2
  • Thomas Rogge
    Level 12
    Ronse
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Resolved
    need helpHello, I implemented this solution in Intelij and it seems to work but i doesn't validate, some ideas? Thank you!
    • 27.10.2020
    • 502views
    • 3comments
    0
  • Noob_Coder
    Level 22
    Springfield
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Resolved
    Code looks pretty good but the result is infinite repeatedDon't know why it prints infnite second array.Code is beautiful
    • 26.10.2020
    • 588views
    • 4comments
    0
  • Michael Buckley
    Level 4
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    I don't fully understand where i am going wrong. Please can somone help me ?
    • 29.09.2020
    • 559views
    • 5comments
    0
  • Torben
    Level 26
    Halle (Saale)
    Question about the task Most frequent bytes
    Java Core, Level 8, Lesson 3
    Under discussion
    I don't know, can someone help me pleaseWhen testing everything works
    • 27.10.2020
    • 412views
    • 2comments
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Player and Dancer
    Java Core, Level 4, Lesson 4
    Under discussion
    Need explanation on why this code worksI'm really confused over the code ((Player) person).play();. Why do we put Player person in parenthesis? if(person instanceof Player){ ((Player) person).play(); }else if(person instanceof Dancer){ ((Dancer) person).dance(); }
    • 31.07.2020
    • 1061views
    • 6comments
    3
  • Ryan Woodward
    Level 3
    Vancouver
    Question about the task Minesweeper (Part 7/16)
    Games, Level 0, Lesson 0
    Under discussion
    Runs in intellij, can't pass the verification thoughDoes anyone see the error in my code. When I run this in IntelliJ it compiles and runs as it should. Thanks in advance :)
    • 26.10.2020
    • 451views
    • 1comment
    0
  • Jhoal
    Level 22
    Berlín
    Question about the task Who called me?
    Java Syntax, Level 9, Lesson 2
    Resolved
    why index 2?can someone explain me why do always we need to reference the index 2 in order to get the solution? Thanks :)
    • 27.10.2020
    • 755views
    • 2comments
    0
  • Adarsh bangera
    Level 3
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Under discussion
    what is wrong i am not getting what's wrong🤔
    • 26.10.2020
    • 425views
    • 2comments
    0
  • Jonas
    Level 41
    Vilnius
    Question about the task Circular iterator
    Java Collections, Level 7, Lesson 4
    Resolved
    Please help with the remove methodDon't get it
    • 26.03.2020
    • 1221views
    • 1comment
    2
  • Andrei
    Level 26
    Liverpool
    Question about the task Work up a sweat!
    Java Multithreading, Level 5, Lesson 7
    Resolved
    what about buffer?I have passed task, but I did nothing in run method, which has comment "// Process the buffer here". Dont we need to do something there?
    • 30.09.2020
    • 485views
    • 1comment
    0
  • Bill Wu
    Level 29
    Wellington
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Resolved
    Not sure about the requirementMy code works fine with the example, but fails the verification. I'm wondering about this: All words passed to the getLine method must be included in the resulting string, if possible. if not possible (a word not matching the condition) how should I deal with it? I deleted those ones in the result.
    • 07.04.2019
    • 2067views
    • 26comments
    0
  • AlfredW
    Level 23
    Denver
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Resolved
    Just Understanding what they are looking for, Is this it?I think this is what they are looking for. Obviously the result would be in the proper format...
    • 26.10.2020
    • 445views
    • 3comments
    0
  • Joshua Tyrrell
    Level 7
    Poughkeepsie
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    How do I display the max of entered numbers? That's the only condition I'm not passing.package com.codegym.task.task05.task0532; import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String a = reader.readLine(
    • 21.10.2020
    • 527views
    • 2comments
    0
  • lukesky
    Level 11
    Zurich
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Resolved
    Code works but task not verified Question My code does exactly as requested. Any suggestions?
    • 21.10.2020
    • 811views
    • 3comments
    0
  • Fabian Andiel
    Level 25
    Vienna
    Question about the task Find a substring
    Java Multithreading, Level 2, Lesson 5
    Under discussion
    Don`t understand why the last condition won`t verifyPlease help me, i tried it with string.length()-1 and string.length() and I doesn`t work both ways. Greetings Fabian
    • 26.10.2020
    • 378views
    • 1comment
    0
  • Dmitri
    Level 22
    Seversk
    Question about the task HashSet of plants
    Java Syntax, Level 8, Lesson 3
    Resolved
    I initialized the set in slightly different way.I initialized the set in slightly different way. What is wrong with the validator?
    • 25.10.2020
    • 662views
    • 3comments
    0
  • Nicolas Huet
    Level 41
    Provins
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Under discussion
    I don't see what to do next :[ it SEEMS to be working fineAs said int the title, when I test with my tests files it seems to be working just fine but obviously I missed something but I don't see it... Can someone help me?
    • 02.07.2019
    • 1294views
    • 2comments
    0
  • Dmitrii
    Level 38
    Saint Petersburg
    Question about the task Archiver (part 12)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    FilePropertiesTried different ways to format numbers, either missing something or didn't find the right one
    • 05.06.2019
    • 1604views
    • 3comments
    0
  • Niklas Braun
    Level 33
    Freiburg
    Question about the task Archiver (part 12)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    Is this a bug?I have tried to format it in so many different ways but it is still not working.
    • 23.06.2020
    • 559views
    • 1comment
    0
  • Andrei
    Level 41
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Resolved
    I get the " Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 5 out of bounds for length 5 " error - pls help? public class Solution { private static List strings; public static void main(String[] args) throws Exception { //write your code here strings = new ArrayList(); for (int i = 0; i < 5; i++){ BufferedReader reader = new BufferedReader(new InputStreamRe
    • 23.10.2020
    • 1195views
    • 4comments
    0
  • raulGLD
    Level 8
    Cluj-Napoca
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    Output is correct, why is it not working?Hey, I am not getting the "The program should display the maximum of the N entered numbers." checked. Here is my code, the output is correct, I've tried with N being 0 or lower and I don't print anything, which is correct, then I've tested with N being 1 or whatever and added even 0 and I still get
    • 22.10.2020
    • 767views
    • 3comments
    0
  • Dinesh
    Level 7
    Delhi
    Under discussion
    I am not getting proper outputclass Mortgage{ public static void main(String[]args){ int rateOfInterest = 6; float monthlyRoi = (rateOfInterest/100)*12; System.out.print("Rate of Interest : "+ monthlyRoi); } }
    • 25.10.2020
    • 476views
    • 3comments
    0
  • Cristian
    Level 13
    Ploiesti
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Under discussion
    The output is 0 instead of 15. Why? Thank you so much!public class Solution { public static void main(String[] args) { System.out.println(sumDigitsInNumber(546)); } public static int sumDigitsInNumber(int number) { //write your code here int sum = 0; while (number > 0) { sum = sum + number % 1
    • 25.10.2020
    • 686views
    • 2comments
    0
  • Goran
    Level 41
    Belgrade
    Question about the task Words with numbers
    Java Core, Level 9, Lesson 11
    Resolved
    Going mad hereI am getting correct output but still not passing! And as hint I am getting this : Be sure that your solution uses FileWriter. Am I missing something ?
    • 21.06.2020
    • 636views
    • 6comments
    0
  • Anitamalina
    Level 18
    København
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Under discussion
    hm.. can't figure it outI have tried several input and get right results.. can someone "see" what's wrong? :-)
    • 25.10.2020
    • 404views
    • 2comments
    0
  • Anitamalina
    Level 18
    København
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    odd three digits number doesn't work :SI don't understand why this fails ??
    • 25.10.2020
    • 530views
    • 2comments
    0
  • Lex Medeiros
    Level 18
    San Jose
    Question about the task Ascending numbers
    Java Syntax, Level 6, Lesson 11
    Resolved
    The code works but it fails the testIf someone could point me to what I am doing wrong I would appreciate it.
    • 01.04.2019
    • 2677views
    • 3comments
    1
  • Brad Reed
    Level 19
    Hartford
    Question about the task Zombie cats, zombie dogs
    Java Syntax, Level 6, Lesson 5
    Under discussion
    quick clarificationOk, so my code works and it is fine, but nothing displayed and it still passed. I did tell it to print the given lines, just nothing was out put onto the screen. I think I understand why but just looking for some clarifications if any of you all have some. Thanks in advance!
    • 25.06.2020
    • 646views
    • 4comments
    0
  • towelie8
    Level 16
    Darmstadt
    Question about the task Climb, fly, and run
    Java Core, Level 2, Lesson 12
    Under discussion
    I need helphelp me plz.
    • 28.08.2020
    • 546views
    • 4comments
    0
  • 1
  • ...
  • 119
  • 120
  • 121
  • 122
  • 123
  • ...
  • 371
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 © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym