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
  • 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.
    • 8/20/21
    • 1131views
    • 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!
    • 7/20/22
    • 609views
    • 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?
    • 12/1/20
    • 720views
    • 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
    • 7/27/22
    • 791views
    • 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
    • 7/27/22
    • 447views
    • 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?
    • 7/27/22
    • 484views
    • 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
    • 7/23/22
    • 565views
    • 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
    • 7/26/22
    • 454views
    • 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!
    • 7/25/22
    • 529views
    • 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
    • 7/23/22
    • 625views
    • 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!
    • 11/20/21
    • 751views
    • 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)
    • 7/22/22
    • 517views
    • 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();
    • 7/22/22
    • 558views
    • 4comments
    0
  • Raj Mishra
    Level 2
    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.
    • 7/23/22
    • 422views
    • 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
    • 6/15/19
    • 1722views
    • 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
    • 7/23/22
    • 773views
    • 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
    • 7/13/22
    • 657views
    • 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
    • 7/22/22
    • 635views
    • 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.
    • 7/8/22
    • 516views
    • 3comments
    0
  • Wyatt Wilhelmi
    Level 20
    United States of America
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 9, Lesson 2
    Resolved
    toBinary method works in IDE but will not validateAny helpful tips would be much appreciated. Edit: I found a logic error so I remedied it with the code below but it is still failing to validate. if(hexNumber != null && !hexNumber.equals("")) { for (int i = 0; i < hexNumber.length(); i++) { placeHolder = he
    • 7/18/22
    • 928views
    • 7comments
    0
  • Andrei
    Level 41
    Question about the task TableAdapter
    Java Core, Level 9, Lesson 3
    Resolved
    How can you instantiate an interface? Creating an aTable object from ATable interface ?I don't understand this; you have interface ATable : public interface ATable { String getCurrentUserName(); String getTableName(); } Then you create object: ATable aTable = new ATable() { @Override public String getCurrentUserName() {
    • 2/3/21
    • 910views
    • 6comments
    2
  • Alex Tor
    Level 31
    Question about the task Combining arrays
    Java Syntax, Level 6, Lesson 2
    Resolved
    I need a help, JUDGE won't validate it. Hi guys, I thought I understood the conditions, but definitely, I don't or the author made it unclear on purpose. My code is assigning values of firstArray to the resultArray, then it's assigning values of the second one, precisely in accordance with the task conditions. Please, help!
    • 7/19/22
    • 582views
    • 4comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Smallest possible radix
    Java Multithreading, Level 10, Lesson 2
    Resolved
    Can't pass first two conditionsI should start by saying that I have looked at the solution after I couldn't figure out why this wasn't working. So it's not so much finding a solution that I need help with, just want to know why my beautifully simple solution does not pass. I have tested it with just about every string I can think
    • 7/18/22
    • 547views
    • 2comments
    0
  • Onome Brownly-Otiede
    Level 9
    Galway
    Question about the task 20 words that start with the letter "L"
    Java Syntax, Level 8, Lesson 8
    Resolved
    Why doesn't Set.of work?The first thing that I would do in any scenario like this is to use the of() method but for some reason it doesn't work. I copied the exact same code into eclipse and it worked just fine so I don't know why codegym is doing this. I downloaded the correct code and it showed me like the HashSet but th
    • 7/15/22
    • 739views
    • 4comments
    0
  • wer08
    Level 0
    Radom
    Question about the task Racer (Part 15/28)
    Games, Level 0, Lesson 5
    Under discussion
    Second and third requirementHi! When i run the game everything runs perfectly but I can't verify second and third requirement. Where did I go wrong ?
    • 7/18/22
    • 564views
    • 1comment
    0
  • Alex Tor
    Level 31
    Question about the task Second smallest number entered
    Java Syntax, Level 4, Lesson 5
    Under discussion
    My program does its job, but JUDGE won't validate it.Hi guys, pls gimme a hint.
    • 7/13/22
    • 1057views
    • 13comments
    0
  • wer08
    Level 0
    Radom
    Question about the task Racer (Part 10/28)
    Games, Level 0, Lesson 5
    Under discussion
    Where do I have to create road package ?Hi, I tried creating subfolder road in every folder and can't verify it. Help needed
    • 7/15/22
    • 534views
    • 3comments
    0
  • Nobody
    Level 37
    Seattle
    Question about the task Numeral system converter
    Java Multithreading, Level 10, Lesson 2
    Under discussion
    why am i wrong?i checked and have the right answer even check with negative number but still fail with an unclear feedback "you need to implement it right"?
    • 6/14/19
    • 1573views
    • 3comments
    2
  • Cronox79
    Level 9
    Harker Heights
    Question about the task Array of numbers in reverse order
    Java Syntax, Level 6, Lesson 3
    Under discussion
    how do you get this to run in IntelliJ?I am trying to do this task in IntelliJ and it will not work correctly. On the website it already has the list of names but in IDE it doesnt have it attached. How can you work/run a program in the IDE if you dont have all the tools for the program in the plugin?
    • 7/16/22
    • 830views
    • 17comments
    0
  • wer08
    Level 0
    Radom
    Question about the task 2048 (Part 18/18)
    Games, Level 0, Lesson 2
    Under discussion
    ERROR : AN UNKNOWN ERROR OCCUREDWhen i try to run the game a get the error from the title. What could be the problem ?
    • 7/15/22
    • 579views
    • 1comment
    0
  • 1
  • ...
  • 44
  • 45
  • 46
  • 47
  • 48
  • ...
  • 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