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
  • Przemek
    Level 25
    Lublin
    Question about the task Making the right conclusion
    Java Core, Level 10, Lesson 10
    Under discussion
    Can anybody help, please? :)The result in my task like below is: C class, method2 A class, method2 C class, method1 B class, method1 Does anybody can tell me why changing to private modifier in method1 of class A gives correct result? IS it not enaugh to call method1() like I do in 16-th line?
    • 24.05.2021
    • 382views
    • 1comment
    0
  • Vincent
    Level 2
    Question about the task Minesweeper (Part 1/16)
    Games, Level 0, Lesson 0
    Under discussion
    HelpCan someone give me the answer please? I need it in order to have enough dark matter to continue, but I haven't learned it yet
    • 20.07.2020
    • 668views
    • 0comments
    1
  • Andrei
    Level 41
    Question about the task Refactoring the Chain of Responsibility pattern
    Java Multithreading, Level 9, Lesson 9
    Resolved
    If the methods of an abstract class shouldn't have a body, why does this exercise validate with the abstract class's methods having bodies?I don't understand. Are we supposed to have bodies in the abstract class's methods or not? What is the recommended practice? public abstract class AbstractLogger implements Logger{ int level; Logger next; public AbstractLogger(int level) { this.level = level; } @Overr
    • 24.05.2021
    • 499views
    • 4comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Under discussion
    What's wrong with my code? Thank you very much! package com.codegym.task.task14.task1420; import java.io.*; /* GCD */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(reader.readLine
    • 24.05.2021
    • 454views
    • 2comments
    0
  • hacks patel
    Level 20
    Ahmedabad
    Question about the task Whether it's a bird or a lamp
    Java Core, Level 2, Lesson 2
    Under discussion
    Don't know , what's wrong with it?plz help and give solution...
    • 23.03.2019
    • 2142views
    • 10comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Under discussion
    Second Condition not passing package com.codegym.task.task14.task1420; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* GCD */ public class Solution { public static void main(String[] args) throws Exception { // create reader BufferedReader reader
    • 22.05.2021
    • 603views
    • 1comment
    0
  • Yuchen
    Level 17
    Los Angeles
    Question about the task OOP: The Euro is money too
    Java Core, Level 5, Lesson 12
    Under discussion
    Please help me to work this out!the third condition keeps failing. Please point out what is wrong with it?
    • 30.07.2019
    • 1678views
    • 6comments
    0
  • TJ Wize
    Level 19
    Houston
    Question about the task Rounding numbers
    Java Core, Level 8, Lesson 11
    Under discussion
    Not sure where I'm going wrongI can't tell where I am getting it wrong. I have tried maybe 20 different ways to read, convert, and write the values. Please help.
    • 22.05.2021
    • 442views
    • 1comment
    0
  • srikanth
    Level 10
    Bangalore
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    one and only one condition is not getting executed ,can any one tell where is the problem?where is the mistake?
    • 23.01.2019
    • 1991views
    • 10comments
    0
  • Maxim Raitin
    Level 20
    Tomsk
    Question about the task OOP: Books
    Java Core, Level 5, Lesson 2
    Resolved
    It works but doesn't compileHello! It shows correctly result in IDE. Why CodeGym doesn't accept it?
    • 13.05.2021
    • 654views
    • 10comments
    0
  • Edward Rickers
    Level 15
    Washington
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Under discussion
    Giving me fails on all the tasks. Code seems to work with all situations import java.io.*; public class Solution { public static void main(String[] args) throws Exception { // program reads numbers from keyboard BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int neg = 0; int pos = 0;
    • 20.05.2021
    • 610views
    • 2comments
    0
  • Joseph Bonhomme
    Level 1
    Rockville
    Under discussion
    Why can't I continue Tasks?Im currently locked out of level 1 lesson 5 and I don't know why. I completed all of my previous tasks and I paid for premium so why can't I do this task?
    • 17.05.2021
    • 430views
    • 0comments
    0
  • Vladyslav Korol
    Level 16
    Coral Springs
    Question about the task Horse racing
    Java Core, Level 6, Lesson 5
    Under discussion
    Why is last condition not satisfied
    • 20.05.2021
    • 449views
    • 1comment
    0
  • Andrei
    Level 41
    Question about the task This weird BigDecimal
    Java Multithreading, Level 9, Lesson 9
    Under discussion
    Why does passing the number to the constructor as String does not generate a lot of decimals?If I pass just v1 and v2 to their respective constructors the result is 2.3000000000000000000000000000000000000000032342 something like this. But if I transform the argument into a string, for both constructors, then the result is 2.3. Where does this come from? public class Solution { publi
    • 21.05.2021
    • 573views
    • 4comments
    0
  • - FniJnn -
    Level 33
    Paris
    Question about the task Autoboxing features
    Java Multithreading, Level 9, Lesson 5
    Under discussion
    how ?Help me please my brain is dead
    • 19.03.2020
    • 1255views
    • 5comments
    0
  • Libby
    Level 20
    Question about the task MovieFactory
    Java Core, Level 4, Lesson 8
    Resolved
    Last three conditions not met.I don't understand exactly what has to be done here. any help will be appreciated.
    • 12.05.2021
    • 385views
    • 2comments
    0
  • Asia
    Level 19
    Bydgoszcz
    Question about the task Vowels and consonants
    Java Syntax, Level 9, Lesson 11
    Under discussion
    What is wrong? Forth requirementI like my solution, but not passing 4th requirement, anyone can tell me why do? Looked up their solution and it seems much more complicated.
    • 19.05.2021
    • 398views
    • 2comments
    0
  • dplaza2394
    Level 2
    Manassas
    Question about the task I think being a programmer is cool
    Java Syntax, Level 0, Lesson 3
    Under discussion
    not a question; more so a suggestionThe story above the task goes through explaining a lot about the difference between System.out.println and System.out.print methods. I feel like this corresponding exercise would be a lot more helpful if one of the constituents for success was that you needed to have at least one System.out.print st
    • 19.05.2021
    • 495views
    • 0comments
    0
  • Andrei
    Level 41
    Question about the task Mastering Callable
    Java Multithreading, Level 8, Lesson 10
    Resolved
    What are arbitrarily long numbers and why do they use BigInteger? public static Callable getTask(final int i) { return new Callable() { @Override public String call() throws Exception { BigInteger sum = BigInteger.ZERO; for (int j = 1; j <= i; j++){ sum = sum.add(BigInteger.
    • 18.05.2021
    • 686views
    • 2comments
    0
  • Josephine
    Level 26
    Normal
    Question about the task MVC (part 2)
    Java Multithreading, Level 4, Lesson 14
    Resolved
    why the controller class is throwing an error?Please helpclass, interface, or enum expected. file com/codegym/task/task36/task3608/big02/controller/Controller.java, line 2, position 60
    • 18.05.2021
    • 491views
    • 5comments
    0
  • ImDevin
    Level 15
    Old Town
    Resolved
    no output in intellijCurrently on task 0905. People have posted that they get stackTraceDepth of 3 in intellij, but there is no output when I run the code in intellij. When I run the same code in CG, I do get output of 12 like others have gotten. Anyone know why intellij is not showing any output? thx for the repl
    • 06.05.2021
    • 731views
    • 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 describedMy code works as described in the task. What is wrong?
    • 24.03.2021
    • 623views
    • 5comments
    0
  • Yusuf el Turki
    Level 5
    Rhein
    Under discussion
    What is the solution ?I have the right answer got. But i dont understand why i get these Problem ? public class Solution { public static int min(int a, int b, int c, int d) { //write your code here int min; if (a<=b && a<=c && a<=d) min = a;
    • 18.05.2021
    • 377views
    • 2comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Minimum and Maximum
    Java Core, Level 1, Lesson 11
    Under discussion
    Failed in last conditionI made a copy of the passed array to avoid modifying the original one but still don't pass the last requirements
    • 17.05.2021
    • 674views
    • 16comments
    0
  • Nehal Abubakar
    Level 7
    Karachi
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Help me out plzzzHelp me out with the solution plzzz
    • 10.08.2018
    • 2762views
    • 10comments
    0
  • Andrei
    Level 41
    Question about the task Thread priorities
    Java Multithreading, Level 8, Lesson 6
    Resolved
    Why is it starting numbering from 3, for the threadgroup example?Current code in MyThread class public class MyThread extends Thread{ public static volatile AtomicInteger priority = new AtomicInteger(1); public synchronized void correctPriority(){ int newPriority = priority.getAndIncrement(); newPriority = getThreadGroup() != null &
    • 17.05.2021
    • 651views
    • 3comments
    0
  • David Close
    Level 17
    London
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    args[] valuesI am having alot of trouble within this task, i am unsure on how to use the args[] values correctly ? can someone please explain how to use these correctly.
    • 10.03.2021
    • 727views
    • 7comments
    0
  • Ilias Elb
    Level 8
    Leuven
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Resolved
    Who can help??I don't understand the requirements
    • 17.05.2021
    • 594views
    • 2comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task User, loser, coder and programmer
    Java Core, Level 4, Lesson 8
    Under discussion
    Getting correct output but task 2 and 3 not passing? package com.codegym.task.task14.task1411; import java.io.BufferedReader; import java.io.InputStreamReader; /* User, loser, coder and programmer */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputS
    • 17.05.2021
    • 394views
    • 1comment
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task User, loser, coder and programmer
    Java Core, Level 4, Lesson 8
    Under discussion
    How do you access each of the different functions?? package com.codegym.task.task14.task1411; import java.io.BufferedReader; import java.io.InputStreamReader; /* User, loser, coder and programmer */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputS
    • 16.05.2021
    • 375views
    • 1comment
    0
  • 1
  • ...
  • 71
  • 72
  • 73
  • 74
  • 75
  • ...
  • 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