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
  • John
    Level 17
    Mansfield
    Question about the task Task about algorithms
    Java Syntax, Level 8, Lesson 11
    Resolved
    What's wrong?my code outputs the correct condition
    • 08.04.2021
    • 733views
    • 10comments
    0
  • Andrei
    Level 41
    Question about the task Black box
    Java Multithreading, Level 4, Lesson 4
    Resolved
    What's wrong with my solution? It outputs the desired content..Help ples
    • 08.04.2021
    • 629views
    • 2comments
    0
  • Abhijeet
    Level 2
    Mumbai
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    How to call the method can anyone help in Square of 5 programHow to call the method, can anyone help in Square of 5 program
    • 14.03.2019
    • 2224views
    • 10comments
    1
  • Roman Grygorczuk
    Level 19
    Cracow
    Question about the task Rounding numbers
    Java Core, Level 8, Lesson 11
    Under discussion
    Not sure if I can go ahead with this solutionHey guys, Could you please take a look on lines 28-33? Do you think it's a proper solution and I can expend it accordingly(if else)? Or it's a false one and I should you different logic? Which one then? Thanks in advance, Roman
    • 08.04.2021
    • 421views
    • 1comment
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task A list and some threads
    Java Core, Level 6, Lesson 3
    Under discussion
    4th task is not passing for some reason? public class Solution { public static volatile List list = new ArrayList<>(5); public static void main(String[] args) { //write your code here Thread spThread1 = new SpecialThread(); Thread spThread2 = new SpecialThread(); Thread spThread3 = new Specia
    • 28.03.2021
    • 615views
    • 3comments
    0
  • Mina Nabil
    Level 17
    Sydney
    Question about the task Currencies
    Java Core, Level 4, Lesson 8
    Resolved
    A quick questionHi, is there any difference if I did not put the keyword this in public double getAmount() { return this.amount; }
    • 10.03.2021
    • 603views
    • 10comments
    1
  • Anthony Chalk
    Level 30
    London
    Question about the task Archiver (part 10)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    Please helpI'm particularly confused about points: 1.1) what am I supposed to do with the passed filePath argument? 5.2) what would be the second argument passed to the addNewZipEntry() method in this case? 5.3.2) what fileNames variable?
    • 07.04.2021
    • 697views
    • 13comments
    0
  • Asia
    Level 19
    Bydgoszcz
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Resolved
    Help with Java.timeI'm failing the third requirement.
    • 07.04.2021
    • 592views
    • 2comments
    0
  • Jason
    Level 26
    Rancho Cucamonga
    Question about the task Inheriting an inner class
    Java Multithreading, Level 4, Lesson 4
    Resolved
    I don't get it. My ThreeBedroomApt class is all these thing and it's still not passingthe class that is failing is also all the things it is telling me I am failing for. Thanks for your time in advance.
    • 29.01.2020
    • 1472views
    • 6comments
    0
  • Josephine
    Level 26
    Normal
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Resolved
    Why this is not validating?I got the below output in the intellij.Can someone help?This is my output.... a a rat tar tot tot.. Can someone guide me, what i am doing wrong
    • 07.04.2021
    • 592views
    • 2comments
    0
  • Ondrej Sulc
    Level 8
    Prague
    Under discussion
    Hello, I'd like to ask why my code below was validated as wrong (task 0441). I could not find any drawbacks when testing :( Thanks. import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(bufferedReader.readLine()); int b = Integer.parseInt(buff
    • 06.04.2021
    • 707views
    • 2comments
    0
  • Dmitri
    Level 22
    Seversk
    Question about the task Iterating through a file tree
    Java Collections, Level 1, Lesson 2
    Archived
    My code works as described in the task. What is wrong?I implemented recursive file collection from all inner folders, but my code do not pass. What is wrong?
    • 05.04.2021
    • 636views
    • 9comments
    0
  • Daniel Whyte
    Level 17
    Question about the task OOP: Arrange interfaces
    Java Core, Level 5, Lesson 2
    Under discussion
    getAllowedActionWhy does getAllowedAction have to return null in order to compile? In theory could it not return something else like a word or sentence and still be OK?
    • 06.04.2021
    • 689views
    • 1comment
    0
  • Max Sudik
    Level 41
    Vancouver
    Question about the task Greater than 10? You're not a good fit for us
    Java Syntax, Level 8, Lesson 8
    Under discussion
    Adding 20 random numbers to set generate different size of sets each timeCan somebody explaim why below code generates sets of different size each time when I populate this set with random numbers? public static HashSet createSet() { // write your code here HashSet numbers = new HashSet<>(); Random randomNumbers = new Random();
    • 05.04.2021
    • 713views
    • 2comments
    0
  • tony
    Level 20
    Nis
    Question about the task Exception when working with List collections
    Java Syntax, Level 9, Lesson 6
    Resolved
    why it's not verifiedCan somebody tell me what is wrong here
    • 28.12.2018
    • 1425views
    • 6comments
    0
  • remote87
    Level 18
    Sofia
    Question about the task Minesweeper (Part 9/16)
    Games, Level 0, Lesson 0
    Under discussion
    Something is missing...I can't pass the last condition, but so far, I think that everything is working as it should. Any ideas?
    • 06.04.2021
    • 560views
    • 2comments
    0
  • Max Sudik
    Level 41
    Vancouver
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Explain pls how overloaded constructor works in the provided solutionHow does it work? what does this parameter mean Human... children I'm not sure we covered something like that in previous lessons. Will we have explanation of this concept in further lessons? public Human(String name, boolean sex, int age, Human... children) { this.name = n
    • 06.04.2021
    • 886views
    • 1comment
    0
  • John
    Level 17
    Mansfield
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Under discussion
    its printing right conditionanyways I'll try to figure out another way
    • 05.04.2021
    • 601views
    • 4comments
    0
  • Liliane Top
    Level 17
    Amsterdam
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    I need some help1) why is my code not working to sort the numbers in order from high to low? I did convert the String into an Integer so to be able to sort them as numbers instead of as chars which gave me the wrong results. What part am I missing? 2) It does sort the Strings but I fail to pass the task, why? I ho
    • 12.04.2020
    • 1509views
    • 13comments
    2
  • Henrique
    Level 41
    São Paulo
    Question about the task The world doesn't change, we change
    Java Multithreading, Level 6, Lesson 10
    Under discussion
    What's wrong? (Be sure that the Producer class adds items to the ConcurrentHashMap every half second.)a
    • 06.08.2020
    • 568views
    • 2comments
    0
  • Brandon Horvatic
    Level 27
    Johannesburg
    Question about the task Repeating threads
    Java Multithreading, Level 3, Lesson 8
    Under discussion
    Passed validation but don't understand why package com.codegym.task.task23.task2311; /* Repeating threads */ public class Solution { public final String name; public final String food; public final String sound; public Solution(String name, String food, String sound) { this.name = name; this.food = food;
    • 29.10.2019
    • 1368views
    • 8comments
    3
  • Andrei
    Level 41
    Question about the task Refactoring, nested classes
    Java Multithreading, Level 3, Lesson 6
    Resolved
    Why do I have to declare the constants static also? I don't understand.Why do I have to declare the constants static also? I don't understand. public class Solution { public final class Constants { public static final String SERVER_IS_CURRENTLY_NOT_ACCESSIBLE = "The server is currently not accessible."; public static final String USER_IS_NOT_AUTH
    • 05.04.2021
    • 839views
    • 4comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Be sure that the sort method is able to sort arrays of different lengthshi i think my sort method can but this keep showing this error message
    • 05.04.2021
    • 524views
    • 7comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Under discussion
    identifier expected Identifier expected error when i try to print the objects, anybody know what is wrong?
    • 04.04.2021
    • 1494views
    • 3comments
    0
  • Luniae
    Level 2
    Stuttgart
    Question about the task Pets need people
    Java Syntax, Level 2, Lesson 5
    Resolved
    Question about taks level 2 - Assigning reference variablesHello everyone , i managed to complete this task for the level 2 : public class Solution { public static void main(String[] args) { //write your code here Cat cat1 = new Cat(); Woman woman1 = new Woman(); cat1.owner = woman1; // i don't get well the meaning
    • 04.04.2021
    • 1066views
    • 3comments
    0
  • Aryan Babaie
    Level 4
    Jülich
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    can someone tell me whats wrong with this one ??public class Solution { public static int min(int a, int b, int c, int d) { int min2; int e = min(a, b); if (e < c && e < b) min2 = e; else if (c < e && c < d) min2 = c; else min2 = d;
    • 30.03.2021
    • 822views
    • 4comments
    0
  • Lex Icon
    Level 17
    Sofia
    Question about the task Factory method pattern
    Java Core, Level 6, Lesson 13
    Resolved
    Got no idea what I've missed, please help.recommendation from your mentor looked like this: The getImageReader method must return a BmpReader object when ImageTypes.BMP is passed as an argument.
    • 03.04.2021
    • 631views
    • 2comments
    0
  • Alexandru
    Level 22
    High Blantyre
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    List or ArraylistList strings = new ArrayList<>(); ---> not accepted; ArrayList = new ArrayList<>(); ----> Accepted; I don't think it's something wrong with the first type of declaration.
    • 02.04.2021
    • 423views
    • 1comment
    0
  • Sansho
    Level 19
    Bordeaux
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    My output is okay, but my Validation is tellin' me nooOoOoo ♫Seriously, why is it a no?! Tell me!
    • 02.04.2021
    • 594views
    • 2comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Archiver (part 9)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    Please HelpI'm getting the following mentor recommendations: Point 2: The FileManager constructor must initialize the fileList field to a list of Path objects. Point 4: When the collectFileList(Path path) method receives a regular file, the method must add its path relative to rootPath to the fileList field.
    • 02.04.2021
    • 667views
    • 4comments
    0
  • 1
  • ...
  • 76
  • 77
  • 78
  • 79
  • 80
  • ...
  • 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