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
  • m
    Level 13
    Lublin
    Resolved
    why i can't pass requirements?package pl.codegym.task.task04.task0424; /* Three numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //tutaj wpisz swój kod BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a =
    • 11/10/19
    • 1148views
    • 2comments
    0
  • Joel
    Level 7
    Alsenberg
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Last requirements is not met, but it isI tested my code with various combinations and it always does it correct, but it says that the numbers are not descending.Why?
    • 11/10/19
    • 1023views
    • 3comments
    0
  • Jay
    Level 17
    Washington
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    Where am I going wrong here? Any help would be appreciated.
    • 7/25/19
    • 1295views
    • 1comment
    1
  • Tadas
    Level 4
    Terneuzen
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Line looks everything OK, but it fails with conditionsOk Guys Im getting correct line, but failing with condition The displayed text must contain the entered name. The displayed text must fully match the task conditions.
    • 11/9/19
    • 1326views
    • 2comments
    0
  • m
    Level 13
    Lublin
    Resolved
    I can't pass last requirement, why?package pl.codegym.task.task04.task0409; /* Closest to 10 */ public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { int c = 10 - a;
    • 11/9/19
    • 892views
    • 2comments
    0
  • Tadas
    Level 4
    Terneuzen
    Question about the task Fill a pool with water
    Java Syntax, Level 3, Lesson 5
    Under discussion
    what does it means?Comments on code style were not found! ??
    • 11/9/19
    • 1449views
    • 1comment
    0
  • Wali
    Level 3
    Dhaka
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    my codes out put is fully correct. bt it don’t fulfil last condition. whats the problempackage com.codegym.task.task02.task0216;
    • 11/9/19
    • 1109views
    • 1comment
    0
  • Зоран Јањић
    Level 8
    Teslic
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Any help on this one ? package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Exception { //write you
    • 11/6/19
    • 1799views
    • 3comments
    0
  • Piotr Wikarski
    Level 19
    Birmingham
    Question about the task Prices 2
    Java Core, Level 8, Lesson 11
    Resolved
    Can't pass verification of the second conditionI can't see why it won't verify the second condition. When I run it on my pc without arguments at all or just "-u" or "-d" the program doesn't change the content of the file..
    • 11/9/19
    • 1022views
    • 0comments
    0
  • Roman
    Level 41
    Wieseck
    Question about the task Adding a file to an archive
    Java Collections, Level 1, Lesson 6
    Resolved
    Fails by Requirements 3 and 4 on CodeGym Server ...Hi, in this code I've tried to consider all the hints from the previous posts regarding this task. The code works fine on the local machine, but on the CodeGym Server it fails by Requirements 3 and 4. Does anyone have an idea, what is wrong there?
    • 11/3/19
    • 1341views
    • 2comments
    0
  • Voris
    Level 10
    Tashkent
    Question about the task A name is a name
    Java Syntax, Level 4, Lesson 16
    Resolved
    I can't find my typo, i tried to change order mm/dd/yy to yy/mm/dd, anyway it doesn't work, i think there's error in conditions.package com.codegym.task.task04.task0443; /* A name is a name */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String name = br.readLine();
    • 4/11/19
    • 1546views
    • 4comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Prices 2
    Java Core, Level 8, Lesson 11
    Under discussion
    One condition plsNeed help
    • 6/29/19
    • 1385views
    • 1comment
    0
  • Nicolas Huet
    Level 41
    Provins
    Question about the task Distributing items into baskets with their own lock
    Java Multithreading, Level 6, Lesson 8
    Under discussion
    lost againWell, same as the previous task. I really can't find it. (which is worrying me quite a bit for my future in the programing field I must say...). I saw the post of Andrew, I saw he says to look for the concurrentHashMap code to see clues and I saw another guy resolved it with just that. (which worryi
    • 9/7/19
    • 1363views
    • 7comments
    0
  • Kimo Kalilikane
    Level 15
    Jacksonville
    Question about the task Future manager
    Java Core, Level 3, Lesson 2
    Archived
    This little information will help you with this taskSo an important aspect I forgot to remember is that interfaces are not considered classes, therefore it is possible to inherit multiple interfaces with the extends keyword! For example, interface CanFly{ void fly(); } interface CanSwim{ void swim(); } interface All extends CanFly, CanSwim{ }
    • 10/21/19
    • 1118views
    • 2comments
    1
  • Jimmy Phan
    Level 7
    Atlanta
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Just two questionsThankfully able to pass this task, but I would still like some clarifications. 1. @Override - which class is the toString method overriding belonging to? and 2. - how can the toString method called upon itself when there are no other lines within the program to call to this method? 3. Also, when p
    • 11/7/19
    • 1365views
    • 7comments
    0
  • krystian
    Level 9
    Kozle
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    Need helpCould someone please tell me why below code doesn't work? public class Solution {
    • 11/8/19
    • 1371views
    • 2comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Under discussion
    Help needed! :)I am receiving a failure that he won´t recognize the hen = new AfricanHen(); hen = new NorthAmericanHen(); hen = new EuropeanHen(); hen = new AsianHen(); any new objects, classes are created. the object should be created... What am i missing?
    • 8/27/19
    • 1428views
    • 1comment
    0
  • Chotan Barua
    Level 7
    New York City
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Under discussion
    Not sure what the error means.. Please help ?
    • 11/5/19
    • 1141views
    • 3comments
    0
  • theCalculator
    Level 3
    Warren
    Under discussion
    Please explain the thinking behind the hint in this problem.If you look at my attempt it looks logical to me yet it is not logically correct. How do you see modulo and division symbols as a method to this problem.
    • 11/7/19
    • 936views
    • 1comment
    0
  • Bhakti
    Level 10
    Sydney
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Please help.Getting correct output but validation fails.Getting correct output but validation fails.
    • 11/6/19
    • 1174views
    • 2comments
    0
  • Jimmy Phan
    Level 7
    Atlanta
    Question about the task Notepad for new ideas
    Java Syntax, Level 6, Lesson 11
    Under discussion
    SoSAny reasons to why my reference idea cannot call to the getDescription method? The printIDEA is in the Solutions class and not the IDEA class. By the way, if you can, can you briefly summarize what the methods are doing? Is the printIDEA method calling to the getDescription method to return the St
    • 11/6/19
    • 1488views
    • 4comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Really not sure what to doIn line 37, I'm trying to find the index of the element. I'm not sure this would be an effective way to solve the task anyway. Any help appreciated.
    • 11/7/19
    • 1089views
    • 1comment
    0
  • Jay
    Level 11
    Question about the task Set of cats
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Error in compiling on line 3?I'm getting the following error when I attempt to compile: Error in com/codegym/task/task08/task0819/Solution.java on line 3 cannot find symbol symbol: class Cat location: package com.codegym.task.task04.task0403 What's going on? Is it not detecting that I created the Cat class?
    • 11/7/19
    • 1344views
    • 2comments
    0
  • Jay
    Level 11
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    I don't understand what's wrong this timeSo I've made it so I'm not removing from the loop I'm iterating through in addition to adding a nested loop that removes if the string is the same. How would I go about fixing this? I believe I'm on my 10th or so attempt.
    • 11/7/19
    • 1259views
    • 1comment
    0
  • Boris Penchev
    Level 8
    Sofia
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    Hi I have problem with this task. Can you help me?First, two task pass but can`t print right longest and shortest string. Thank you.
    • 11/5/19
    • 1725views
    • 8comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the task Whether it's a bird or a lamp
    Java Core, Level 2, Lesson 2
    Resolved
    Not getting what should i do! I am no understading what should i do, can someone help?
    • 7/30/19
    • 1447views
    • 6comments
    0
  • Evghenii Seremet
    Level 41
    London
    Question about the task Rectangle algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    Could someone point where the problem is? The output completely matches conditions. The only thing i can think about is, every time i find a rectangle i set it's 1s to 0s. But it doesn't say in conditions you can't change arrays. Thanks.
    • 11/7/19
    • 1503views
    • 3comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Under discussion
    What's wrong with my code? The last requirement isn't satisfied. Thank you very much!/import java.io.BufferedReader; import java.io.IOException; //import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Scanner; //import java.util.*; /* Checking the order */ public class Solution { public static void main(String[] args) throws IOException { Scan
    • 11/6/19
    • 1129views
    • 1comment
    0
  • Petr Svitil
    Level 2
    Prague
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Resolved
    Error despite correct OutputPlease help.. The Output seems correct. I even copied and pasted the System.out.println statement from the help forums. But the last check keeps failing.. Will be grateful for any help!
    • 11/6/19
    • 1239views
    • 3comments
    0
  • Timothy Strong
    Level 4
    San Diego
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What is wrong with the expression for calculating the winter months please.package com.codegym.task.task04.task0411; /* Seasons on Terra */ public class Solution { public static void main(String[] args) { checkSeason(12); checkSeason(4); checkSeason(7); checkSeason(10); } public static void checkSeason(int month) {
    • 11/6/19
    • 1451views
    • 2comments
    0
  • 1
  • ...
  • 263
  • 264
  • 265
  • 266
  • 267
  • ...
  • 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