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
  • Paul
    Level 24
    Vienna
    Question about the task Mastering the static block
    Java Core, Level 5, Lesson 12
    Under discussion
    Failing to create a plane objectHi I don't understand what is going wrong in my code. It seems the plane object can't be created. Thanks for any hints
    • 07.08.2022
    • 504views
    • 4comments
    0
  • Coboliste
    Level 46
    Casablanca
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Resolved
    The code works correctly, but still rejected because of the last requirement !Hi everyone, The code seems working correctly, I got the same expected results for the two examples, but the code is still rejected by the validator, can any one please tell me the reason behind that ? thanks a lot. Recommendation from the mentor Be sure that the lines list has the SAME label with
    • 06.08.2022
    • 416views
    • 2comments
    0
  • Dawn( #11020889)
    Level 37
    Toronto
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 9, Lesson 2
    Under discussion
    i totally have no ideahexToBinary method run successfully and also i test some other number, but failed the task test. why? please help me!
    • 05.08.2022
    • 400views
    • 1comment
    0
  • Anitamalina
    Level 18
    København
    Question about the task User, loser, coder and programmer
    Java Core, Level 4, Lesson 8
    Under discussion
    I print correct, I think - but still don't pass :SI have made static methods in Person.java.. otherwise, my method doWork in Solution-class wouldn't work.. e.g. Person.User.live(); But I can't pass the last requirements?.. Anyone who can tell what I am doing wrong?
    • 04.08.2022
    • 573views
    • 8comments
    0
  • Anitamalina
    Level 18
    København
    Question about the task Wine tasting
    Java Core, Level 4, Lesson 8
    Resolved
    I can't pass the requirements.. ?I changed the return type of the method: public static SparklingWine getSparklingWine() to SparklingWine instead of Wine. But neither works.. so I don't understand what to do different?
    • 04.08.2022
    • 376views
    • 1comment
    0
  • Anitamalina
    Level 18
    København
    Question about the task Minesweeper (Part 13/16)
    Games, Level 0, Lesson 0
    Under discussion
    Can't pass two requirementsI can't pass the last requirements. Maybe it's the sentence "and the last revealed cell is not a mine" - that I don't do right ?.. Anyone knows?
    • 03.08.2022
    • 343views
    • 2comments
    0
  • Jaime Padilla
    Level 20
    Chandler
    Question about the task Chasing after types
    Java Syntax, Level 13, Lesson 7
    Under discussion
    Not validatingIt seems to work perfectly. Not sure why the last condition is not passing.
    • 30.07.2022
    • 448views
    • 2comments
    0
  • Dawn( #11020889)
    Level 37
    Toronto
    Question about the task Binary converter
    Java Syntax, Level 9, Lesson 2
    Under discussion
    what's the problem?after running my code i got the correct result, but the task failed. why? anyone can help? Please!
    • 31.07.2022
    • 368views
    • 3comments
    0
  • Abhishek Rangari
    Level 22
    Nagpur
    Question about the task Factory method pattern
    Java Core, Level 6, Lesson 13
    Resolved
    Can someone help me in this taskLast condition is not satisfying
    • 13.12.2018
    • 2807views
    • 14comments
    0
  • Денис Чистяков
    Level 30
    Poland
    Question about the task Cat carnage (2)
    Java Syntax, Level 10, Lesson 2
    Resolved
    Why this solution don't pass validator? Why this solution don't pass validator?
    • 01.08.2022
    • 368views
    • 2comments
    0
  • LuisRC
    Level 39
    Gijón
    Question about the task Binary converter
    Java Syntax, Level 9, Lesson 2
    Under discussion
    What's my mistake?Why I'm not able to pass the vaildation? This is the comment from my mentor but I'm not able to see my mistake. Be sure that the toDecimal(String) method returns 0 if it receives an empty string or null as input. Some help, please?
    • 13.01.2022
    • 1019views
    • 5comments
    0
  • Glenn Akens
    Level 2
    Riverview
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    not getting the correct c min value and code seems to work without { } brackets as well.I just need a little help understanding this and if I should be writing it any differently. I see other examples with " { } " brackets around the inside of the if statements and I see double boolean && that im a little unsure of how to use as well.
    • 20.08.2021
    • 953views
    • 3comments
    0
  • Alex Tor
    Level 31
    Question about the task Remove duplicate strings
    Java Syntax, Level 6, Lesson 4
    Resolved
    Input \ Output are corresponding to the conditions, but the solution won't validate.Hi guys, Please, gimme a hint. Thank you in advance!
    • 20.07.2022
    • 503views
    • 6comments
    1
  • Wojciech Dąbrowski
    Level 1
    Warsaw
    Question about the task Advanced file search
    Java Collections, Level 1, Lesson 2
    Under discussion
    Criteria didn't passet at the same time.Can you help?
    • 01.12.2020
    • 619views
    • 2comments
    0
  • Alex Tor
    Level 31
    Question about the task Correct order
    Java Syntax, Level 7, Lesson 2
    Under discussion
    The task was solved, but may it be written in a better way?Hi guys, I solved this task, but I don't like that I had to create a new int[] nums that needed to be populated with the reversed integers from the originating array, and I was wondering if there is another, better way to solve it without being necessary creating a new temporary int[] ? Thank you in
    • 27.07.2022
    • 669views
    • 5comments
    0
  • Albert ENG
    Level 6
    Question about the task Positive and negative numbers
    Java Syntax, Level 3, Lesson 10
    Under discussion
    whu my code doesnt work in itneleIDE but it works in Eclipse
    • 27.07.2022
    • 332views
    • 1comment
    0
  • Anitamalina
    Level 18
    København
    Question about the task Minesweeper (Part 12/16)
    Games, Level 0, Lesson 0
    Under discussion
    I can't solve this - and I don't understand what is wrong with my code..Can anyone help?
    • 27.07.2022
    • 380views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Bit operations
    Java Multithreading, Level 10, Lesson 6
    Resolved
    Works flawlessly, follows listed rules perfectly, but won't pass the "allowed operators" criteriaI should start by mentioning that I know Wei Cui posted something that will pass in another person's question, but if I just copy and paste that I won't be learning why my own code is not validating. I can't seem to find any of the listed requirements I'm not in line with, and it works for all value
    • 23.07.2022
    • 436views
    • 8comments
    0
  • Pranai Rao
    Level 7
    Nashua, NH
    Question about the task Lonely arrays interact
    Java Syntax, Level 7, Lesson 4
    Under discussion
    Requirement #4 not CheckingI've written this code and it is providing the correct output. Yet, the 4th requirement isn't passing. Any suggestions? package com.codegym.task.task07.task0703; import java.io.BufferedReader; import java.io.InputStreamReader; /* Lonely arrays interact */ public class Solution { public st
    • 26.07.2022
    • 351views
    • 1comment
    0
  • Alex Tor
    Level 31
    Question about the task Splitting an array
    Java Syntax, Level 6, Lesson 8
    Resolved
    How to proceed?Hi guys, I can't figure out how to proceed and whether I'm in the right way to resolve this task. Pls, gimme a hint(s). 1. Should I fill a new 2d Array result by adding the values from the two other arrays result1 and result2 2. Which method(s) would be suitable here? Thank you in advance!
    • 25.07.2022
    • 415views
    • 2comments
    0
  • Micle
    Level 12
    Barnaul
    Question about the task Triangular array
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Right result, except of one requirement It was required, that i had to fill array with right numbers in the main method. Where is my mistake? Help pls
    • 23.07.2022
    • 484views
    • 6comments
    0
  • RogerioGT.com
    Level 3
    Guatemala
    Question about the task How to take over the world
    Java Syntax, Level 2, Lesson 8
    New
    How to use this code in Eclipse and does the class change from main?I am not understanding how the structure is working or if the class is affected. I want to also try it on Eclipse compiler. Thank you!
    • 20.11.2021
    • 653views
    • 0comments
    0
  • Pranai Rao
    Level 7
    Nashua, NH
    Question about the task Notepad for new ideas
    Java Syntax, Level 6, Lesson 11
    Resolved
    Here is my code below. As far as I can tell, it works perfectly fine. I'm not sure what I need to change in order for this to meet the satisfaction of the verifier. Any tips? package com.codegym.task.task06.task0617; /* Notepad for new ideas By Pranai Rao */ public class Solution { public static void main(String[] args) { Idea newIdea = new Idea("I should rule the universe!"); printIdea(newIdea); } public static void printIdea(Idea idea)
    • 22.07.2022
    • 405views
    • 2comments
    0
  • Anonymous #10798360
    Level 8
    Woking
    Question about the task Maximum in an array
    Java Syntax, Level 7, Lesson 4
    Resolved
    Getting nullpointerException. I've re-read the code several times even got rid of return null but nothing seems to be working. Pls help!!! Thanks package com.codegym.task.task07.task0701; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Maximum in an array */ public class Solution { public static void main(String[] args) throws Exception { int[] array = initializeArray();
    • 22.07.2022
    • 429views
    • 4comments
    0
  • Raj Mishra
    Level 15
    India
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Under discussion
    I am getting correct output but the second last validation is failingUnable to identify the cause of failure as I am getting correct output.
    • 23.07.2022
    • 327views
    • 2comments
    0
  • Nobody
    Level 37
    Seattle
    Question about the task Bit operations
    Java Multithreading, Level 10, Lesson 6
    Under discussion
    I dont know why am i fails. this is so ridiculousI use only allowed operators but still fail on exactly this condition
    • 15.06.2019
    • 1583views
    • 3comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Bit operations
    Java Multithreading, Level 10, Lesson 6
    Resolved
    Having a hard time figuring out where to startSo the number that gets returned is going to be the largest power of 2 that is less than or equal to the number that is passed by argument. My thinking is bitshift right until you have only 0001, then bitshift back left the same number of times and you have the answer. You could have a while loop th
    • 23.07.2022
    • 651views
    • 7comments
    0
  • Tadeusz Sikora
    Level 13
    Katowice
    Question about the task 2048 (Part 13/18)
    Games, Level 0, Lesson 2
    Resolved
    Two last conditions aren't met despite working properlyHi, The last 2 conditions are not met, but I can clearly see it is working. I debugged it, the message was displayed, is there something wrong with the test that was written for this one or did I do something wrong? The createNewNumber() method must call the getMaxTileValue() method. The win() m
    • 13.07.2022
    • 532views
    • 15comments
    0
  • Alex Tor
    Level 31
    Question about the task Multiplication table
    Java Syntax, Level 6, Lesson 5
    Resolved
    Need a Help.My code gives the right output: ========================== 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 ......................................... 10 20 30 40 50 60 70 80 90 100 ========================== BUT, it's irrelevant according to the conditions, because the table should have 10 x 10 dime
    • 22.07.2022
    • 545views
    • 2comments
    0
  • Korlat
    Level 25
    Gasteiz
    Question about the task Spaces
    Java Core, Level 8, Lesson 11
    Under discussion
    Where is the error? I have tried in a thousand ways and I can not get it to pass the tests. Please help.
    • 08.07.2022
    • 413views
    • 3comments
    0
  • 1
  • ...
  • 41
  • 42
  • 43
  • 44
  • 45
  • ...
  • 372
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