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
Java coffee
Level 4
Question about the task
Summation
Java Syntax
,
Level 4
,
Lesson 0
New
Summation exercise with Boolean values
Hi, can someone pls explain why the Boolean isExit variable is initially initialized to false and why the boolean in the while loop condition is set as true (!isExit) only for the Boolean in the if condition to be set to true. It's quite confusing to me. I found it hard to come up with the correct s
20.04.2024
3
views
0
comments
0
Evgeniia Shabaeva
Level 10
Budapest
Question about the task
Binary to hexadecimal converter
Java Syntax
,
Level 10
,
Lesson 2
Under discussion
I wonder if I could've made it shorter
I've just written the longest code in my short professional life:) It produces the expected output but I'm wondering if I could make it any simpler. The second issue is that after verification the website says, "Be sure that the toHex(String) method returns an empty string if it receives an empty s
18.04.2024
49
views
7
comments
0
Evgeniia Shabaeva
Level 10
Budapest
Question about the task
Remove duplicate strings
Java Syntax
,
Level 6
,
Lesson 4
Resolved
What's wrong if the output's right?
The code I've written reads 6 strings from the console, finds duplicated ones among them, substitutes them with null and produces the expected output. Why does it still fail validation (in particular, does not meet the 2nd requirement)?
22.03.2024
114
views
9
comments
0
Evgeniia Shabaeva
Level 10
Budapest
Question about the task
Filling an array
Java Syntax
,
Level 6
,
Lesson 8
Resolved
What's wrong if the output's right?
I'm wondering which particular requirements are not met by my code if it produces the expected output...
25.03.2024
58
views
3
comments
0
Evgeniia Shabaeva
Level 10
Budapest
Question about the task
Magic 8 ball
Java Syntax
,
Level 9
,
Lesson 2
Resolved
What's wrong?
I've written some code that seems logical to me. Why is it still not meeting the requirements I wonder?
03.04.2024
71
views
4
comments
0
Evgeniia Shabaeva
Level 10
Budapest
Question about the task
Increments
Java Syntax
,
Level 9
,
Lesson 7
Resolved
What is the order this code compiles?
I'm interested in the order 'b' is calculated here: int a = 3; int b = a++ + (a-- * a++); We've read in the lesson that the 1st priority belongs to parenthesis, so we begin with (a-- * a++), right? The 2nd priority is the unary operator, but which one? The lesson says it works from right to
11.04.2024
31
views
2
comments
0
Evgeniia Shabaeva
Level 10
Budapest
Question about the task
Binary converter
Java Syntax
,
Level 10
,
Lesson 2
Resolved
What's wrong with the second method?
The task is to write code to convert a decimal to a binary number and vice versa. I've kind of finally written the 'toBinary' method that works but the 'toDecimal' one keeps making an error. I still can't see what I'm doing wrong.
12.04.2024
20
views
2
comments
0
Ekaterina
Level 24
Tbilisi
Question about the task
QR-code reader
Java Syntax
,
Level 8
,
Lesson 2
Under discussion
Can't pass last requirement
Received: "The task failed to pass testing: Be sure that the program compares arrays using the deepEquals method of the Arrays class." But I am using Arrays.deepEquals in the 30th line of code. Please help me understand what I'm doing wrong.
25.01.2024
204
views
6
comments
0
hidden #10668264
Level 7
Question about the task
Minesweeper (Part 1/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Engine symbol unresolved
I typed the import statement: import com.codegym.engine.cell.*; but got an error message saying cannot resolve symbol engine. Has anyone come across this issue?
17.09.2020
401
views
8
comments
0
Djole
Level 41
Belgrade
Question about the task
Aggregator (part 6)
Java Collections
,
Level 8
,
Lesson 15
Resolved
not sure what is wrong
@Override public List getJobPostings(String searchString) { try { Document doc = Jsoup.connect("https://www.linkedin.com/").get(); } catch (IOException e) { e.printStackTrace(); } return Collections.emptyList(); }
18.06.2019
1237
views
2
comments
0
Jesú
Level 14
Madrid
Resolved
How to refresh tasks in the IntelliJ CodeGym plugin?
No new tasks appear, despite new tasks being available from advancing through the course.
07.03.2024
108
views
1
comment
0
Daniel Njuguna
Level 14
Kiambu
Under discussion
What's wrong with my code?
package com.codegym.task.task09.task0902; /* Stack trace revisited */ public class Solution { public static void main(String[] args) throws Exception { method1(); } public static String method1() { method2(); //write your code here StackTraceElement[] st
05.02.2019
1083
views
2
comments
0
Mfon Joseph
Level 2
Question about the task
2048 (Part 1/18)
Games
,
Level 0
,
Lesson 2
Under discussion
I can't understand the basics
why can't I understand the basic concepts
29.03.2023
230
views
1
comment
0
Mayank Chandratre
Level 20
Question about the task
Autoboxing
Java Syntax
,
Level 13
,
Lesson 1
Resolved
Will it be same?
Are the Integer a = new Integer(10); and Integer a = Integer.valueOf(10); commands same?
05.11.2022
260
views
3
comments
0
Aduroja ayomide Philip
Level 2
Ado ekiti
Under discussion
run it
import tkinter as tk def calculate_area(): try: radius = float(entry_radius.get()) height = float(entry_height.get()) area = 2 * 3.14 * radius * (radius + height) result_label.config(text=f"Area of the cylinder: {area}") except ValueError:
10.04.2024
129
views
0
comments
0
Zubin Nair
Level 7
New Delhi
Question about the task
String array in reverse order
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
I am not able to understand 3 and 4th requirements
I am not able to understand 3 and 4th requirements Pls explain with required input and output Reply asap
18.09.2018
1643
views
10
comments
0
#mr.coder
Level 5
Question about the task
2048 (Part 1/18)
Games
,
Level 0
,
Lesson 2
Under discussion
what classes are. What are objects?"
what classes are. What are objects?"
20.07.2021
569
views
1
comment
0
007 X
Level 0
Nakhon Pathom
Question about the task
2048 (Part 1/18)
Games
,
Level 0
,
Lesson 2
Under discussion
My game.
hello everyone , I am a student. I got a job to make games with java. But I am not good at this language. Can anyone help me?
29.03.2021
459
views
0
comments
0
Angus McDonald
Level 5
Sydney
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Under discussion
Output seems fine when testing.. can't seem to pass
I've had a really good look through other solutions. A number of variations that I can't wrap my head around.
09.06.2020
790
views
7
comments
0
Angus McDonald
Level 5
Sydney
Question about the task
Sequential file output
Java Core
,
Level 6
,
Lesson 13
Resolved
Last condition just won't validate!
I've tried a couple different versions.. some I built myself.. others with help from other questions/solutions here... I've left various versions in commented out. I cannot for the life of me get the last condition to validate correctly. I suspect that the " " white space is being added to the end
08.06.2020
554
views
11
comments
0
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
2075
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
488
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
513
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
1971
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
2322
views
17
comments
0
Guanting Liu
Level 16
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
534
views
4
comments
0
Amantai
Level 45
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
15
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
3092
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
908
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
902
views
7
comments
0
Show more
1
2
3
...
366
Please enable JavaScript to continue using this application.