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
  • Jaisingh
    Level 14
    Hyderabad
    Question about the task Minimum of two numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    whats wrong with this solution . it display the correct answer . but server is not accepting it . plz tell me whats mistake
    • 9/15/18
    • 2036views
    • 2comments
    2
  • Prahlad Singh
    Level 6
    Mumbai
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Under discussion
    pls help
    • 9/13/18
    • 2113views
    • 4comments
    2
  • Mfon Joseph
    Level 2
    Question about the task 2048 (Part 1/18)
    Games, Level 0, Lesson 2
    Under discussion
    I can't understand the basicswhy can't I understand the basic concepts
    • 3/29/23
    • 477views
    • 1comment
    2
  • EDDIE SANCALA JR
    Level 6
    Caraga DAVAO ORIENTAL
    Question about the task Even and odd cells of an array
    Java Syntax, Level 5, Lesson 0
    Under discussion
    answerpackage en.codegym.task.pro.task05.task0502; /* Even and odd cells of an array */ public class Solution { public static final String ODD = "Odd"; public static final String EVEN = "Even"; public static String[] strings = new String[5]; public static void main(String[] args) {
    • 12/27/22
    • 782views
    • 2comments
    0
  • Mithun
    Level 1
    Черкаси
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Resolved
    Where is the mistake?I have tried different ways
    • 7/25/18
    • 1999views
    • 6comments
    2
  • Chan Nyein
    Level 1
    Amagasaki
    Question about the task Amigo is very smart
    Java Syntax, Level 1, Lesson 1
    Under discussion
    What's the name?What's the Java? Amigo is very smart#
    • 8/20/24
    • 334views
    • 0comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Resolved
    How big do synchronized blocks have to be?I can't attach my solution, as it's already been completed, but I have a question about synchronization. I made my synchronized blocks include only the lines that somehow referred to the allPeople list (and they were present in every case label of the switch block, according to the task). But in the
    • 8/9/24
    • 274views
    • 3comments
    0
  • Craig McCollum
    Level 8
    Belgrade
    Under discussion
    Why is this code not acceptableThis is my code, it is so much easier to read then the solution provided and when I add random hex values in it does correctly convert to decimal. import java.util.Arrays; public class Solution { public static String[] hexces = {"0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"};
    • 10/12/24
    • 314views
    • 4comments
    0
  • Eyiyemi Odukunle
    Level 1
    Question about the task It's cool to be a programmer!
    Java Syntax, Level 1, Lesson 3
    Under discussion
    how to code
    • 3/25/23
    • 679views
    • 3comments
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Find the bugs
    Java Core, Level 10, Lesson 10
    Under discussion
    I have one questionI had problem with this. task, I surfed a little in help section and I did it like below, but today I read whole day articles on Serialization topic, and now I rereaded this task and I commented one line in writeObject() method and one in readObject() becouse I thought that two maybe are redundant.
    • 2/15/23
    • 594views
    • 7comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Resolved
    What am I doing wrong?My code is supposed to read several file names from the console until the "end", sort them by the number that follows the "part" word in the name (tried to do so with the help of my Sorter class), create a file in the same directory and name it the same way as the other files, just without "partN",
    • 9/3/24
    • 295views
    • 10comments
    1
  • Mary Khan
    Level 23
    Russia
    Question about the task Path update
    Java Syntax, Level 9, Lesson 5
    Under discussion
    What my code doesn't get passed by validator?What my code doesn't get passed by validator?
    • 2/4/22
    • 631views
    • 3comments
    0
  • yehuda b
    Level 23
    Beersheba
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Resolved
    Output is correctSo I made this algorithm where I add all Strings (filenames) from the console to an ArrayList, then I add the file part numbers to a TreeSet (lines 25 - 28) then to an ArrayList (line 29), then I iterate (lines 30 - 46) through the filename ArrayList to find the one which part number comes first by
    • 8/23/20
    • 651views
    • 4comments
    1
  • Priti
    Level 20
    Noida
    New
    Dark Matters relatedI don't have any pending task but still I don't have enough dark matters to move ahead so what I can do?
    • 10/21/24
    • 193views
    • 0comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    Why not this way?When tested with the suggested input, my code produces the expected output. However, the code is still wrong, as it does not pass the last requirement. I'm not quite sure why. I understand the problem must be with the last while-loop I have. I might be failing to check for all the possible variatio
    • 10/15/24
    • 279views
    • 5comments
    0
  • Josue Matheus
    Level 1
    fisick
    New
    Maria teste número 1
    • 10/17/24
    • 190views
    • 0comments
    0
  • Manish Sinha
    Level 1
    london
    Question about the task Implementing an interface using a local class
    Java Multithreading, Level 4, Lesson 6
    Resolved
    not sure why it's failiing. Output looks all good.Pls. help.
    • 10/23/20
    • 692views
    • 7comments
    0
  • Kingpvz
    Level 31
    Question about the task A method for all seasons
    Java Syntax, Level 7, Lesson 2
    Under discussion
    i'm not doing thatwhy 10? it's such a waste of time
    • 10/11/24
    • 243views
    • 3comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Resolved
    How do we ensure the alteration of labels properly?This is quite an interesting task, actually. I'm supposed to create a list that merges lines from two files: the original one and its updated version. The lines should be preceded by suitable labels: SAME, REMOVED OR ADDED. The tricky requirement is that the ADDED and REMOVED labels should not be us
    • 9/25/24
    • 267views
    • 5comments
    0
  • 17022
    Level 1
    Guangzhou
    Question about the task Snake (Part 7/20)
    Games, Level 0, Lesson 1
    New
    import com.codegym.engine.cell.*;包不存在 import com.codegym.engine.cell.*; java: 程序包com.codegym.engine.cell不存在
    • 10/11/24
    • 211views
    • 1comment
    0
  • Rene
    Level 28
    Question about the task Even characters
    Java Core, Level 9, Lesson 5
    Resolved
    Can't pass the 2nd requirement even with an explicit close() statement. I tried it without a catch block and with one. And also added an explicit close statement (not needed) in this try-with-resources block in my last attempt. The 2nd requirement just won't give me a pass. What is the catch here? It annoys the hell out of me. I learned from the web that in a program
    • 10/7/24
    • 237views
    • 2comments
    0
  • ugabuga
    Level 39
    Question about the task Space (part 16)
    Java Collections, Level 3, Lesson 15
    Under discussion
    Validator won't validateEven with the "official" CodeGym Solution the methods checkBombs() and checkRockets() will not validate. The error messages also don't help.
    • 10/5/24
    • 246views
    • 2comments
    0
  • Pinapleu
    Level 11
    Question about the task Remove duplicate strings
    Java Syntax, Level 6, Lesson 4
    Under discussion
    Yet again, correct solution but not right for the exercise, whyI don't understand what's the issue with the code honesty
    • 10/2/24
    • 210views
    • 1comment
    0
  • lonk
    Level 7
    Atlanta
    Question about the task Cutting down the middle
    Java Syntax, Level 6, Lesson 5
    Under discussion
    I believe this task should be clarifiedHello all, The condition listed for passing this check isn't as clear as it should be; the example that is listed only has you place the first and second row's interior characters with the hyphen. However, the passing solution wants you to replace every interior character with a hyphen. This is wh
    • 5/21/24
    • 282views
    • 2comments
    0
  • Dustin Lerch
    Level 9
    United States of America
    Question about the task Cutting down the middle
    Java Syntax, Level 6, Lesson 5
    Under discussion
    What am I doing wrongI tried so many different things, like replacing the all the public static chars with the '-'s; Ive tried the chars [1] = new char [] {'m', '-',.......} for both elements 1 &2; I cant figure out how to loop the new elements into it...i'm in a rough patch with this one.....
    • 12/14/22
    • 569views
    • 2comments
    0
  • Pinapleu
    Level 11
    Question about the task Minimum of N numbers
    Java Syntax, Level 6, Lesson 3
    Under discussion
    My code fails the first conditionWhy does it fail the first condition, I did everything as told
    • 9/28/24
    • 200views
    • 4comments
    0
  • slowly
    Level 10
    Mörfelden-walldorf
    Question about the task Chess board
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Why wrong?Why wrong?
    • 9/29/24
    • 221views
    • 1comment
    0
  • Pinapleu
    Level 11
    Question about the task Combining arrays
    Java Syntax, Level 6, Lesson 2
    Under discussion
    This is kinda dumbMy first solution used only one for loop to copy both strings which worked exactly as was necessary and the output was good, didn't use any hard coded information like does the loop up to 20, but when I pressed correct solution I was met with the same code just in two for loops? That's honestly pret
    • 9/28/24
    • 196views
    • 1comment
    0
  • Arkoo
    Level 1
    Germany
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Under discussion
    I can't understand why it doesn't pass validationOnly the first 3 requirements are validated, not even the last about closing streams
    • 9/23/24
    • 209views
    • 1comment
    0
  • GOUTHAM B J
    Level 1
    New
    changing Java learning patternHow to change Java learning patterns from story to minimum material in this Codegym App
    • 9/20/24
    • 194views
    • 0comments
    0
  • 1
  • ...
  • 6
  • 7
  • 8
  • 9
  • 10
  • ...
  • 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