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
  • 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
    • 576views
    • 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
    • 1073views
    • 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
    • 546views
    • 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
    • 1581views
    • 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
    • 843views
    • 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
    • 592views
    • 1comment
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Restaurant (part 16)
    Java Multithreading, Level 9, Lesson 15
    Resolved
    Trying to figure out why this won't passThis task is hard to test because the Date stored in the EventDataRow class is taken from the current date, so the only way I can try to have it match the sample output is to have it generate a couple orders right around before and after midnight to get different dates. Or I would have to edit the c
    • 7/14/22
    • 816views
    • 13comments
    0
  • Mary Khan
    Level 23
    Russia
    Question about the task User, loser, coder and programmer
    Java Core, Level 4, Lesson 8
    Under discussion
    Why I get this error:Why I get this error: com/codegym/task/task14/task1411/Solution.java:15: error: cannot infer type arguments for java.util.HashMap HashMap persons = new HashMap<>(){{ ^ reason: cannot use '<>' with anonymous inner classes Inp
    • 7/14/22
    • 1018views
    • 3comments
    0
  • Anonymous #11016365
    Level 39
    Detroit
    Question about the task Convert a list to an array
    Java Syntax, Level 19, Lesson 2
    Under discussion
    Method reference clarificationWhat is the difference between doing this strings.toArray(new String[]{}); and this strings.toArray(String[]::new); They both work but what is the benefit of choosing the latter over the former?
    • 7/12/22
    • 591views
    • 1comment
    0
  • Alex Tor
    Level 31
    Question about the task Summation
    Java Syntax, Level 4, Lesson 3
    Resolved
    Not sure if I got the conditions right.Hello everyone, my program does precisely what the conditions are stated, but the Judge has a different opinion, pls gimme a hint.
    • 7/12/22
    • 766views
    • 5comments
    0
  • hidden #10994753
    Level 46
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    Correct behavior but not validatedHi everybody, My program works correctly, but it has not been validated because of the last requirement, I'm getting this indication but I'm sure it's already covered : Any suggestion please? thanks a lot .
    • 7/11/22
    • 517views
    • 2comments
    0
  • Barsha
    Level 4
    Eluru
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    The task is failing condition: "The displayed text should contain 10 lines". Not sure how to push it to the next linepublic class Solution { public static void main(String[] args) { //write your code here for(int i=1; i<=10; i++) { for(int j=1; j<=10; j++) { int num=i*j; System.out.print(num+"\t");
    • 7/14/20
    • 1188views
    • 3comments
    0
  • Florin1
    Level 1
    Question about the task File in a static block
    Java Core, Level 5, Lesson 12
    Resolved
    The program ran too long and was closed...I tried the following: - absolute path; - relative path; - placed it in the root of a drive; - placed on desktop so as to be more accessible; I also did tests and the lines are read properly. However, when submitting the material, I get time out (The program ran too long and was closed) Any ideas
    • 7/11/22
    • 711views
    • 3comments
    0
  • Josephine
    Level 1
    Normal
    Question about the task Space Invaders (Part 6/34)
    Games, Level 0, Lesson 6
    Under discussion
    Can someone please check this?Can someone check this? The Shapematrix didn't create it own...So i copied .. All the requirements are coded .But it is not passing..
    • 7/11/22
    • 576views
    • 1comment
    0
  • Josephine
    Level 1
    Normal
    Question about the task Space Invaders (Part 5/34)
    Games, Level 0, Lesson 6
    Under discussion
    What is wrong with my draw(Game) method?Please helpWhat is wrong with my draw(Game) method?Please help
    • 7/9/22
    • 633views
    • 2comments
    0
  • Andrew
    Level 7
    Charlotte
    Question about the task Price of apples
    Java Syntax, Level 3, Lesson 4
    Under discussion
    I do not understand where Apples came from. I don't understand why it's Apple.applePrice + applesPrice instead of Apple.applePrice + Apple.apple2Price... since you're adding the prices of apple1 and apple2.
    • 2/17/22
    • 944views
    • 2comments
    0
  • Denil Pepa
    Level 7
    Munich
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Help?Hello, I don`t know what is wrong with the last Task...🤔
    • 9/26/20
    • 868views
    • 2comments
    0
  • TempanyJ
    Level 6
    Question about the task Positive and negative numbers
    Java Syntax, Level 3, Lesson 7
    Resolved
    -10 input is outputting -9 but won't pass the test? I am not understanding why my solution isn't passing the 'If the entered number is negative, increase it by one and display the result.' test. When i input a negative number and run my code it outputs the correct answer e.g -10 outputs -9 but i can't pass the tests? Any hints for this would be appre
    • 5/11/22
    • 1159views
    • 10comments
    1
  • Mack
    Level 20
    Osiedle-Nowiny
    Question about the task Comparable
    Java Core, Level 7, Lesson 10
    Resolved
    Help, pleaseHelp
    • 12/15/18
    • 3078views
    • 24comments
    0
  • HACKER3000
    Level 0
    Under discussion
    KANN NICHTS MACHEN I have a question that I can not do a single task . the system says an unknown error has occurred. What can I do ?
    • 7/5/22
    • 591views
    • 0comments
    0
  • Greg Martel
    Level 5
    Under discussion
    Solving w/ Math.floor(): what did I do wrong?CodeGym tells me all conditions are met, save "if light is red, print "red" "... I'm pretty sure if (T+2) % 5 == 0 is yielding "yellow", then (T+1) % 5 == 0 should yield "red" no? Thanks so much for your help!
    • 9/13/21
    • 598views
    • 1comment
    0
  • Whisper
    Level 31
    Question about the task Correct order
    Java Syntax, Level 7, Lesson 2
    Under discussion
    why is this not workingThe code print the original array twice. The code works just fine under main methods, but it fail when it runs under reverseArray method
    • 7/1/22
    • 636views
    • 2comments
    0
  • Matt.P.72
    Level 26
    Killen
    Question about the task Hexadecimal converter
    Java Syntax, Level 9, Lesson 2
    Under discussion
    where is my mistake public static String toHex(int decimalNumber) { if (decimalNumber <=0) return ""; int i=0; StringBuilder hex= new StringBuilder(); while ((int)(decimalNumber/Math.pow(16,i))>0)i++; int j=i-1; while (decimalNumber>0){ int a =
    • 6/29/22
    • 652views
    • 1comment
    0
  • Fuad Teymurov
    Level 2
    Question about the task Three numbers
    Java Syntax, Level 3, Lesson 5
    Resolved
    Why this does not pass Please, could someone explain why this does not pass while it works correct ?
    • 6/29/22
    • 787views
    • 2comments
    0
  • Dennis
    Level 4
    Resolved
    DownloadWie kann ich die ersten aufgaben machen wenn ich nichtmal ein programm habe wo ich es ausführen kann. Ich brauche den download
    • 12/13/20
    • 979views
    • 2comments
    2
  • Fabian Andiel
    Level 9
    Vienna
    Question about the task Synchronized methods
    Java Core, Level 7, Lesson 10
    Under discussion
    Solution but I don't understand! - Java Core Level 7, Lesson 10, exercise synchronised methodsHi guys, I got 3 questions 1. Why is param a class variable? It doesn`t have the keyword static. 2.How do I know what is a shared ressource? 3. Why do need the methods 3,4,6 a synchronizsed? Many thanks in advance! Greetings Fabian
    • 2/24/20
    • 1518views
    • 5comments
    2
  • Andre M.
    Level 4
    Glenn Dale
    Question about the task This age doesn't work for me…
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Unclear task requirementHello. The task requirement states "The Person class's adjustAge method should increase the Person's age by 20." The code for the adjustAge method has age = age+20. I am thinking that this is correct as the formula adds 20 from the passed in class variable. I tried multiplication 20* 20 and age =
    • 12/16/21
    • 1242views
    • 4comments
    0
  • Anonymous #11016365
    Level 39
    Detroit
    Under discussion
    Out class has access to private inner class fields?How is it possible that the outer class is able to access the private instance variables of the inner class? In this example, how does the newNode instance have access to the private field value in the outer class method? Here are both classes: public class StringsLinkedList { public v
    • 6/27/22
    • 457views
    • 1comment
    0
  • Anonymous #10798360
    Level 8
    Woking
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    I'd appreciate it if someone could help. I think I've done everything else right it's just that I'm stuck in an infinite loop. package com.codegym.task.task05.task0507; /* Arithmetic mean */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int
    • 6/26/22
    • 606views
    • 1comment
    0
  • Chawin Pathompornvivat
    Level 0
    Bellevue
    Question about the task Snake (Part 1/20)
    Games, Level 0, Lesson 1
    Under discussion
    Stuck on: Game class method must be called with arguments in the initialize methodI believe I'm coding the solution to Part 1 right but it is saying I am not for one of the steps: The Game class's setScreenSize(int, int) method must be called with arguments (WIDTH, HEIGHT) in the initialize() method. What am I doing wrong? // organize class into package for CodeGym Games Snake
    • 5/8/20
    • 1244views
    • 1comment
    0
  • 1
  • ...
  • 45
  • 46
  • 47
  • 48
  • 49
  • ...
  • 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