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
  • p saraf
    Level 2
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    what happened in this code can someone explain me this code ? pleasewhat happened in this code can someone explain me this code ? please
    • 1/29/21
    • 611views
    • 1comment
    0
  • Oliver Heintz
    Level 18
    Mustang
    Question about the task Symbol frequency
    Java Core, Level 8, Lesson 11
    Resolved
    It makes sense to me, but doesn't passUsing TreeMap to auto-sort. This is basically the way I did the earlier tasks where you count letters and spaces. I waited until the print statement to cast into a character in case that messed up the TreeMap sorting since I don't know how that works. Why is it that every task here now makes me w
    • 5/13/21
    • 1244views
    • 9comments
    0
  • Ramen
    Level 23
    South Lake Tahoe
    Question about the task Task No. 6 about integer type conversions
    Java Syntax, Level 10, Lesson 4
    Under discussion
    why does (short) 150,000 print 18,928I solved the task, but I'm not sure how casting 150,000 as a short turns the number into 18,928.
    • 5/14/21
    • 517views
    • 1comment
    0
  • Andrei
    Level 41
    Question about the task 2048 (Part 12/18)
    Games, Level 0, Lesson 2
    Resolved
    What is wrong with my moveRight, up, down algorithm?My code is a loop, the mentor's solution is calling manually as needed. Am I doing something wrong? Please ignore the break in moveUp method, I was testing something private void moveLeft(){ boolean isNumberNeeded = false; for (int[] row : gameField) { boolean com
    • 5/14/21
    • 972views
    • 1comment
    1
  • John
    Level 17
    Mansfield
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Help what's wrongif the uaer type empty name then my program tellla to put(id,null) so i can still display the number as said by the condition but it's not working :(
    • 5/14/21
    • 999views
    • 12comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Please someone explain the algorithmI just finished this task but then I'm confused how it works
    • 5/2/21
    • 713views
    • 9comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Second and fifth tasks not passing ( but I clearly have output)? package com.codegym.task.task10.task1019; import java.io.*; import java.util.HashMap; import java.util.Map; /* Functionality is not enough! */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStr
    • 5/13/21
    • 564views
    • 1comment
    0
  • Ali Diksin
    Level 3
    Bispham
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Resolved
    How do i create a person object?I cant fulfill this requirement In the main method, create a Person object and immediately assign a reference to it to the variable person. someone please help me
    • 5/13/21
    • 1083views
    • 2comments
    0
  • Dan Ursu
    Level 27
    Question about the task Symbol frequency
    Java Core, Level 8, Lesson 11
    Under discussion
    Doesn't work, and i dont understand why. Help me pleaseDoesn't work, and i dont understand why. Help me please
    • 5/12/21
    • 642views
    • 4comments
    0
  • Vo
    Level 41
    Sofia
    Question about the task Log parser (part 1)
    Java Collections, Level 7, Lesson 15
    Resolved
    Can anyone give me a hint?According to the verification I am only failing when both dates are null. Any suggestions why is it like that ?
    • 5/7/21
    • 752views
    • 3comments
    0
  • Maria
    Level 22
    Moscow
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Resolved
    Where is the problem? NOT SOLVED!I have been tested with different path and folders - all ok!
    • 4/30/21
    • 984views
    • 20comments
    0
  • Prop
    Level 11
    Englewood
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Resolved
    I don't understand why the console outputs an error based on the placement of "int num = Integer.parseInt(input);". If I place it right after the input string from bufferedreader, there is an error. If I place it after logic/code and before adding to sum, there is no error. There doesn't seem to nee public class Solution { String input = reader.readLine(); int num = Integer.parseInt(input); vs. int num = Integer.parseInt(input); sum += num; }
    • 5/11/21
    • 653views
    • 4comments
    0
  • Maria
    Level 22
    Moscow
    Question about the task Picking out numbers
    Java Core, Level 9, Lesson 5
    Resolved
    Why??? Please, help me understand whats wrong with Code G verification...It is not first task, when verification is not passed, the same problem with 1825 task. Code gym, please fix that In one case it is not pass 3 and 4 requirements. in second - program to long.. very disappointed -_-
    • 5/12/21
    • 775views
    • 3comments
    0
  • Roy
    Level 22
    Bangkok
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    Annoying bug in this one1. Declare a string list variable and immediately initialize it. Found an annoying bug in this one, as it needs to be declared as; ArrayList<> xxx = new ArrayList<>(); I personally used the List<> xxx = new ArrayList<>(); but this will not let it pass. (its even been mentio
    • 4/17/19
    • 1896views
    • 9comments
    7
  • Richard Han
    Level 4
    Lipa
    Question about the task What's the cat's name?
    Java Syntax, Level 4, Lesson 2
    Under discussion
    How to call an object variable?please help, for I do not understand
    • 9/9/18
    • 2736views
    • 10comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Under discussion
    can i get a clue?I can't think of a solution sorry -_- (I'm thinking to declare a counter variable for each letter of the alphabet but that seems not efficient)
    • 5/11/21
    • 589views
    • 2comments
    0
  • Pahunchik
    Level 8
    Moscow
    Question about the task Flip the array
    Java Syntax, Level 7, Lesson 4
    Under discussion
    Please help to understand what's wrongThe solution cannot pass the first and last points check.
    • 5/11/21
    • 1048views
    • 2comments
    0
  • Francesco Bertolini
    Level 3
    Question about the task Minesweeper (Part 11/16)
    Games, Level 0, Lesson 0
    Under discussion
    Check failOn line 79 I keep failing the check do call gameOver() even though I put the call in the (I think) correct section. If I run the game it behaves correctly. Any thougths?
    • 1/29/21
    • 792views
    • 0comments
    0
  • Andrei
    Level 41
    Question about the task Determining locking order
    Java Multithreading, Level 7, Lesson 6
    Under discussion
    Can someone please explain in short if possible the logic of the solution? I don't understand why in main, System.out.println(isLockOrderNormal(solution, o1, o2)); if I change the order, it always returns true. public class Solution { public void someMethodWithSynchronizedBlocks(Object obj1, Object obj2) { synchronized (obj1) { synchronized (obj2) { System.out.println(obj1 + " " + obj2); } } } private static volatile boolean flag = false
    • 5/10/21
    • 639views
    • 2comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Neo
    Java Core, Level 3, Lesson 11
    Under discussion
    What's wrong with my code? Thank you very much! package com.codegym.task.task13.task1320; /* Neo */ public class Solution { public static void main(String[] args) throws Exception { System.out.println(Matrix.NEO); } static class Matrix { public static DBObject NEO = new User().initializeIdAndName(1, "Neo"); }
    • 5/10/21
    • 630views
    • 2comments
    0
  • The Chief
    Level 18
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Why am I getting a Number Format Exception?The compiler says that my code has a number format exception. Why?
    • 5/8/21
    • 598views
    • 2comments
    0
  • Kent Hervey
    Level 19
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    List Interface not workingSometimes the hardest part is figuring out the requuirements For requirement #1 I used List listOfStrings = new ArrayList(); codegym.cc rejected that I will try changing to ArrayList listOfStrings = new ArrayList();
    • 11/6/19
    • 1471views
    • 3comments
    1
  • Dwight Burrow
    Level 3
    Minnetonka
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    I'm missing something so many thingsI keep checking solution to find out there is something new that they didn't go over in the lessons. it's just new and random.
    • 5/8/21
    • 638views
    • 1comment
    0
  • Niranjan Soni
    Level 15
    Bangalore
    Question about the task 10 thousand deletions and insertions
    Java Syntax, Level 8, Lesson 6
    Under discussion
    out of Bounds ExceptionHow to fix out of bounds Exception at line 56.
    • 9/30/18
    • 3727views
    • 21comments
    2
  • Gellert Varga
    Level 23
    Szekesfehervar
    Resolved
    What does it mean: synchronized (MyClass.class) ?This code was included in the link below, but there was no explanation for it. Does this keep the whole class out of the other threads? I mean: the whole class = all static methods are locked? But only the static ones? https://codegym.cc/quests/lectures/questcore.level07.lecture03
    • 5/5/21
    • 894views
    • 11comments
    0
  • Gera
    Level 3
    Hamburg
    Under discussion
    Was ist falsch? Die Methode gibt doch die kleinste Zahl aus?package de.codegym.task.task02.task0216; /* Die kleinste aus drei Zahlen */ public class Solution { public static int min(int a, int b, int c) { int m = 0; if ((a < b) && (a < c)) m = a; else if ((b < a) && (b < c)
    • 5/6/21
    • 574views
    • 2comments
    0
  • Xavier
    Level 17
    Pearland
    Question about the task Making the top ten
    Java Core, Level 2, Lesson 12
    Resolved
    It seems like it should work.According to everything I read about overloading, this should work, but the validation claims that the transformValue method is not doubling the number when it is, and that the main method should only call transformValue once, which it does.
    • 5/6/21
    • 736views
    • 3comments
    0
  • Dwight Burrow
    Level 3
    Minnetonka
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    A bit of an explanation?The husband and wife part I wouldn't be able to understand myself. I have two questions: Q1. Is woman.husband = man; the same as: public static class Woman { public Man husband = man; } Q2. Will I learn more about this later?
    • 5/6/21
    • 778views
    • 2comments
    0
  • Pahunchik
    Level 8
    Moscow
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    Why can't it pass the test?My program works and shows the maximum number of N numbers. Why can't it pass 5th point of the test?
    • 4/22/21
    • 674views
    • 2comments
    0
  • Yunus Can
    Level 2
    Under discussion
    Premium ja oder Nein ? Lohnt sich die Premium version ? sie ist gerade im angebot für 90 euro
    • 4/4/21
    • 767views
    • 2comments
    0
  • 1
  • ...
  • 75
  • 76
  • 77
  • 78
  • 79
  • ...
  • 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