Promotion
CodeGym University
Learning
Course
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
Ask a question
All quests
All levels
Any status
Questions about tasks
Hot
Fairoz Logde
Level 14
Mumbai
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Logic Help
What is wrong in my code since my code is displaying wrong answer please help me where I am wrong with my logic.
16.11.2018
2078
views
14
comments
1
Lucas Hoage
Level 14
Savannah
Question about the task
Task about algorithms
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Feel like I'm on the right track but not sure.
I understand the nature of the boolean compare function. If true, do this, if false do second. What I'm not really understanding is why the array is not assigning a value to when true or false. I expect that is should be doing this but I'm seeing nothing when I run test output in between the loops.
03.06.2020
492
views
9
comments
0
Prassha
Level 24
Chagford
Question about the task
Countdown at the races
Java Core
,
Level 6
,
Lesson 10
Resolved
numSeconds = 4; Why when numSeconds is more than 3 it is goes to catch?
package com.codegym.task.task16; public class Solution { public static volatile int numSeconds = 4; public static void main(String[] args) throws InterruptedException { RacingClock clock = new RacingClock(); //write your code here Thread.sleep(3500); clock.i
02.06.2020
517
views
4
comments
0
Xuhaib
Level 7
Lahore
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
What the err ?????
WHYYY?
15.11.2018
1977
views
7
comments
0
Fadi AlSaidi
Level 13
Carrollton
Question about the task
Somehow average
Java Syntax
,
Level 4
,
Lesson 16
Resolved
I tried multiple scenarios including negatives and still no luck
I am approaching this in a different way than what has been posted by others. I ran multiple scenarios with no issues, IntelliJ passed the assignment but I couldn't get it to show complete, so I tried to submit it through the web, and it will not pass saying that I need to display the middle number.
14.11.2018
2329
views
17
comments
0
Guanting Liu
Level 0
Springfield
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
dk why
package com.codegym.task.task04.task0428; /* Positive number */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader shit = new BufferedReader(new InputStreamReader(System.in)); String integer1 = shit.readLine();
30.05.2020
539
views
4
comments
0
Amantai
Level 46
Shymkent
Question about the task
isPowerOfThree
Java Collections
,
Level 9
,
Lesson 9
Under discussion
Why doesn't the task work?
Where is the mistake?
15.04.2024
20
views
1
comment
0
Niraj Biswakarma
Level 8
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Resolved
double value
not showing double value why??
29.07.2018
3101
views
17
comments
0
Jonas
Level 41
Vilnius
Question about the task
Maximum area
Java Collections
,
Level 9
,
Lesson 9
Resolved
What is wrong?
Please help me find a mistake
15.04.2020
912
views
3
comments
1
Gellert Varga
Level 23
Szekesfehervar
Resolved
Stopping threads: The unofficial version vs official version - 3 questions
I did several tests on the above. I have experienced the following: 1) https://codegym.cc/quests/lectures/questcore.level06.lecture08 It seems the unofficial version always worked. It stopped the child thread in all cases. Is this really true in all cases? Or was it just by coincidence? 2) ht
03.04.2021
909
views
7
comments
0
Joseph Haynes
Level 2
United States of America
Question about the task
Initializing cats
Java Syntax
,
Level 5
,
Lesson 7
Resolved
Why do I keep failing the 1st requirement?
Why do I keep failing the 1st requirement?
22.01.2020
1125
views
9
comments
1
Anastasia
Level 22
Champs-sur-Marne
Question about the task
Compare modifiers
Java Multithreading
,
Level 1
,
Lesson 2
Under discussion
How to check if specificModifier is set in allModifiers ?
Hello, can you please help me with this ? I'm not sure I understand the logic behind the task.
13.08.2019
1575
views
8
comments
0
Amalsaji
Level 2
Koovapady
Question about the task
We solemnly publish and declare these variables...
Java Syntax
,
Level 1
,
Lesson 3
Under discussion
no next level
please make this app functionable.it is not allowing to next level.
29.02.2024
47
views
0
comments
0
Zonera Shaikh
Level 27
Karachi
Question about the task
Two iPhones
Java Syntax
,
Level 13
,
Lesson 4
Resolved
Help me figure out whats wrong?
Help me figure out what's wrong? i have tried to handle every edge case, seems like i'm still missing out something.
08.02.2024
66
views
2
comments
0
Alex Vypirailenko
Level 41
Question about the task
Getters and setters for the Dog class
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Short question
Maybe you can add 'boolean bark' as an extra variable to make it more interesting... public class Dog { //write your code here public static void main(String[] args) { } }
21.08.2018
1723
views
0
comments
0
Andrei
Level 41
Question about the task
CountDownLatch
Java Multithreading
,
Level 7
,
Lesson 9
Resolved
How is this supposed to make sense?
await() - "Causes the current thread to wait until the latch has counted down to zero, unless the thread is interrupted. If the current count is zero then this method returns immediately. If the current count is greater than zero then the current thread becomes disabled for thread scheduling purpose
10.05.2021
521
views
10
comments
0
Zonera Shaikh
Level 27
Karachi
Question about the task
Bytes to characters
Java Syntax
,
Level 25
,
Lesson 0
Under discussion
don't know what's wrong here
.
01.04.2024
74
views
2
comments
0
catalin1989
Level 37
Question about the task
Numeral system converter
Java Multithreading
,
Level 10
,
Lesson 2
Resolved
Is my logic wrong?
I haven't worked a lot with conversions, maybe I have some flaws in my logic. Here is my logic: 1. First I create a method that verifies if the input ins correct. It tries to parse the number to base 10 using Long.parseLong(value,radix). If the input is not correct it will throw an exception. 2.If t
26.03.2024
93
views
5
comments
0
Ijaz Ahmed
Level 1
Under discussion
more programs than stories
please add more java programs than dtoties
21.03.2024
61
views
0
comments
0
psc
Level 11
Question about the task
Changing shoes on the move
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
Issue with opening tasks in IntelliJ IDEA
Subject: Issue with Opening Tasks in IntelliJ IDEA Dear CodeGym Support Team, I hope this email finds you well. I am writing to report an issue I have encountered while using CodeGym within IntelliJ IDEA. Despite the tasks being available, I am unable to open them. The task remains stuck in the
15.04.2024
74
views
1
comment
0
PQK
Level 6
United States of America
Question about the task
Maximum of entered numbers
Java Syntax
,
Level 4
,
Lesson 2
Resolved
Confusion About The Min Value Of Integers
In the official code given by codegym, the max variable is assigned with the min value for an integer. But I don't understand why ? int max = Integer.MIN_VALUE; //max variable being intialized as the min value of integer while (console.hasNextInt()) { int x = console.ne
16.03.2024
164
views
4
comments
2
Rich Piske
Level 30
United States of America
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Under discussion
I get the exact result that we need. Why does it fail validation?
If someone wants to explain to me how my version doesn't get the exact same version CodeGym's solution generates, I would love to hear it! Thank you!
02.03.2024
108
views
2
comments
0
Jesú
Level 14
Madrid
Question about the task
Changing shoes on the move
Java Syntax
,
Level 5
,
Lesson 7
Resolved
IntelliJ opens an unrelated .java when I run code.
This is annoying, and I don't know how to fix it. I am trying to run code. I even have my cursor placed in this program. However, when I decide to run the code, an unsolicited .java files comes up. Like, I didn't even ask that program to appear. How can I stop this?
07.03.2024
110
views
2
comments
0
FelixUjo
Level 35
Gijón
Resolved
The methods are in the order indicated by the task. I don't know what the error is.
The methods are in the order indicated by the task. I don't know what the error is.
02.03.2024
87
views
4
comments
0
Seggzzy
Level 5
Lagos
Question about the task
Parenthetical brainteaser
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Finally Resolved
I finally resolved the problem. Understanding of the condition attached to the question, is very important. especially the number of parentheses.
12.06.2020
640
views
1
comment
2
Dave Andrea
Level 41
Question about the task
Fix the bug. Comparing objects
Java Multithreading
,
Level 1
,
Lesson 5
Under discussion
How to ensure that the hashset of Solutions behaves correctly?
I'm failing the 2nd last requirement, but I am not sure why. The task description says that the main method isn't tested, so I don't know how to go about passing this test. I'm getting the correct answer as far as I can tell. I'm just spinning in circles trying to solve this.
10.06.2020
747
views
8
comments
1
In Ho Kwon
Level 20
Question about the task
Binary to hexadecimal converter
Java Syntax
,
Level 9
,
Lesson 2
Resolved
toBinary
Hello, The result is correct but not pass the task requirements. I think i am missing some details Error message: Be sure that the toBinary(String) method correctly converts the string representation of a hexadecimal number to the string representation of a binary number. Thank you.
20.01.2024
157
views
2
comments
0
Raisa Toscano
Level 22
Tepic
Question about the task
Exception when working with numbers
Java Syntax
,
Level 9
,
Lesson 6
Resolved
ArithmeticException is specific why is it still wrong?
catch(ArithmeticException e)
05.01.2019
1785
views
6
comments
1
Denis
Level 22
Kharkiv
Question about the task
Encryption
Java Core
,
Level 8
,
Lesson 11
Under discussion
help me pls
need help
29.06.2019
1127
views
4
comments
2
Bashka
Level 4
Russia
Question about the task
Maximum of entered numbers
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
Ups...
Hello! Please help me solve it, I'm stuck, I can't do it myself...
02.04.2024
99
views
5
comments
0
Show more
1
2
3
4
...
366
Please enable JavaScript to continue using this application.