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
Nobody
Level 37
Seattle
Question about the task
Bit operations
Java Multithreading
,
Level 10
,
Lesson 6
Under discussion
I dont know why am i fails. this is so ridiculous
I use only allowed operators but still fail on exactly this condition
15.06.2019
1312
views
3
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Bit operations
Java Multithreading
,
Level 10
,
Lesson 6
Resolved
Having a hard time figuring out where to start
So the number that gets returned is going to be the largest power of 2 that is less than or equal to the number that is passed by argument. My thinking is bitshift right until you have only 0001, then bitshift back left the same number of times and you have the answer. You could have a while loop th
23.07.2022
409
views
7
comments
0
Tadeusz Sikora
Level 13
Katowice
Question about the task
2048 (Part 13/18)
Games
,
Level 0
,
Lesson 2
Resolved
Two last conditions aren't met despite working properly
Hi, The last 2 conditions are not met, but I can clearly see it is working. I debugged it, the message was displayed, is there something wrong with the test that was written for this one or did I do something wrong? The createNewNumber() method must call the getMaxTileValue() method. The win() m
13.07.2022
381
views
15
comments
0
Alex Tor
Level 31
Question about the task
Multiplication table
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Need a Help.
My code gives the right output: ========================== 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 ......................................... 10 20 30 40 50 60 70 80 90 100 ========================== BUT, it's irrelevant according to the conditions, because the table should have 10 x 10 dime
22.07.2022
453
views
2
comments
0
Korlat
Level 25
Gasteiz
Question about the task
Spaces
Java Core
,
Level 8
,
Lesson 11
Under discussion
Where is the error?
I have tried in a thousand ways and I can not get it to pass the tests. Please help.
08.07.2022
320
views
3
comments
0
Wyatt Wilhelmi
Level 20
United States of America
Question about the task
Binary to hexadecimal converter
Java Syntax
,
Level 9
,
Lesson 2
Resolved
toBinary method works in IDE but will not validate
Any helpful tips would be much appreciated. Edit: I found a logic error so I remedied it with the code below but it is still failing to validate. if(hexNumber != null && !hexNumber.equals("")) { for (int i = 0; i < hexNumber.length(); i++) { placeHolder = he
18.07.2022
572
views
7
comments
0
Andrei
Level 41
Question about the task
TableAdapter
Java Core
,
Level 9
,
Lesson 3
Resolved
How can you instantiate an interface? Creating an aTable object from ATable interface ?
I don't understand this; you have interface ATable : public interface ATable { String getCurrentUserName(); String getTableName(); } Then you create object: ATable aTable = new ATable() { @Override public String getCurrentUserName() {
03.02.2021
507
views
6
comments
2
Alex Tor
Level 31
Question about the task
Combining arrays
Java Syntax
,
Level 6
,
Lesson 2
Resolved
I need a help, JUDGE won't validate it.
Hi guys, I thought I understood the conditions, but definitely, I don't or the author made it unclear on purpose. My code is assigning values of firstArray to the resultArray, then it's assigning values of the second one, precisely in accordance with the task conditions. Please, help!
19.07.2022
365
views
4
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Smallest possible radix
Java Multithreading
,
Level 10
,
Lesson 2
Resolved
Can't pass first two conditions
I should start by saying that I have looked at the solution after I couldn't figure out why this wasn't working. So it's not so much finding a solution that I need help with, just want to know why my beautifully simple solution does not pass. I have tested it with just about every string I can think
18.07.2022
341
views
2
comments
0
Onome Brownly-Otiede
Level 9
Galway
Question about the task
20 words that start with the letter "L"
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Why doesn't Set.of work?
The first thing that I would do in any scenario like this is to use the of() method but for some reason it doesn't work. I copied the exact same code into eclipse and it worked just fine so I don't know why codegym is doing this. I downloaded the correct code and it showed me like the HashSet but th
15.07.2022
426
views
4
comments
0
wer08
Level 0
Radom
Question about the task
Racer (Part 15/28)
Games
,
Level 0
,
Lesson 5
Under discussion
Second and third requirement
Hi! When i run the game everything runs perfectly but I can't verify second and third requirement. Where did I go wrong ?
18.07.2022
330
views
1
comment
0
Alex Tor
Level 31
Question about the task
Second smallest number entered
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
My program does its job, but JUDGE won't validate it.
Hi guys, pls gimme a hint.
13.07.2022
581
views
13
comments
0
wer08
Level 0
Radom
Question about the task
Racer (Part 10/28)
Games
,
Level 0
,
Lesson 5
Under discussion
Where do I have to create road package ?
Hi, I tried creating subfolder road in every folder and can't verify it. Help needed
15.07.2022
269
views
3
comments
0
Nobody
Level 37
Seattle
Question about the task
Numeral system converter
Java Multithreading
,
Level 10
,
Lesson 2
Under discussion
why am i wrong?
i checked and have the right answer even check with negative number but still fail with an unclear feedback "you need to implement it right"?
14.06.2019
1301
views
3
comments
2
Cronox79
Level 9
Harker Heights
Question about the task
Array of numbers in reverse order
Java Syntax
,
Level 6
,
Lesson 3
Under discussion
how do you get this to run in IntelliJ?
I am trying to do this task in IntelliJ and it will not work correctly. On the website it already has the list of names but in IDE it doesnt have it attached. How can you work/run a program in the IDE if you dont have all the tools for the program in the plugin?
16.07.2022
506
views
17
comments
0
wer08
Level 0
Radom
Question about the task
2048 (Part 18/18)
Games
,
Level 0
,
Lesson 2
Under discussion
ERROR : AN UNKNOWN ERROR OCCURED
When i try to run the game a get the error from the title. What could be the problem ?
15.07.2022
316
views
1
comment
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Restaurant (part 16)
Java Multithreading
,
Level 9
,
Lesson 15
Resolved
Trying to figure out why this won't pass
This task is hard to test because the Date stored in the EventDataRow class is taken from the current date, so the only way I can try to have it match the sample output is to have it generate a couple orders right around before and after midnight to get different dates. Or I would have to edit the c
14.07.2022
393
views
13
comments
0
Mary Khan
Level 23
Russia
Question about the task
User, loser, coder and programmer
Java Core
,
Level 4
,
Lesson 8
Under discussion
Why I get this error:
Why I get this error: com/codegym/task/task14/task1411/Solution.java:15: error: cannot infer type arguments for java.util.HashMap HashMap persons = new HashMap<>(){{ ^ reason: cannot use '<>' with anonymous inner classes Inp
14.07.2022
607
views
3
comments
0
Anonymous #11016365
Level 39
Detroit
Question about the task
Convert a list to an array
Java Syntax
,
Level 19
,
Lesson 2
Under discussion
Method reference clarification
What is the difference between doing this strings.toArray(new String[]{}); and this strings.toArray(String[]::new); They both work but what is the benefit of choosing the latter over the former?
12.07.2022
316
views
1
comment
0
Alex Tor
Level 31
Question about the task
Summation
Java Syntax
,
Level 4
,
Lesson 3
Resolved
Not sure if I got the conditions right.
Hello everyone, my program does precisely what the conditions are stated, but the Judge has a different opinion, pls gimme a hint.
12.07.2022
544
views
5
comments
0
Coboliste
Level 46
Casablanca
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
Correct behavior but not validated
Hi everybody, My program works correctly, but it has not been validated because of the last requirement, I'm getting this indication but I'm sure it's already covered : Any suggestion please? thanks a lot .
11.07.2022
300
views
2
comments
0
Barsha
Level 4
Eluru
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
The task is failing condition: "The displayed text should contain 10 lines". Not sure how to push it to the next line
public class Solution { public static void main(String[] args) { //write your code here for(int i=1; i<=10; i++) { for(int j=1; j<=10; j++) { int num=i*j; System.out.print(num+"\t");
14.07.2020
871
views
3
comments
0
Florin1
Level 31
Question about the task
File in a static block
Java Core
,
Level 5
,
Lesson 12
Resolved
The program ran too long and was closed...
I tried the following: - absolute path; - relative path; - placed it in the root of a drive; - placed on desktop so as to be more accessible; I also did tests and the lines are read properly. However, when submitting the material, I get time out (The program ran too long and was closed) Any ideas
11.07.2022
425
views
3
comments
0
Josephine
Level 26
Normal
Question about the task
Space Invaders (Part 6/34)
Games
,
Level 0
,
Lesson 6
Under discussion
Can someone please check this?
Can someone check this? The Shapematrix didn't create it own...So i copied .. All the requirements are coded .But it is not passing..
11.07.2022
327
views
1
comment
0
Josephine
Level 26
Normal
Question about the task
Space Invaders (Part 5/34)
Games
,
Level 0
,
Lesson 6
Under discussion
What is wrong with my draw(Game) method?Please help
What is wrong with my draw(Game) method?Please help
09.07.2022
422
views
2
comments
0
Andrew
Level 7
Charlotte
Question about the task
Price of apples
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
I do not understand where Apples came from.
I don't understand why it's Apple.applePrice + applesPrice instead of Apple.applePrice + Apple.apple2Price... since you're adding the prices of apple1 and apple2.
17.02.2022
573
views
2
comments
0
Denil Pepa
Level 7
Munich
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Help?
Hello, I don`t know what is wrong with the last Task...🤔
26.09.2020
618
views
2
comments
0
TempanyJ
Level 6
Question about the task
Positive and negative numbers
Java Syntax
,
Level 3
,
Lesson 7
Resolved
-10 input is outputting -9 but won't pass the test?
I am not understanding why my solution isn't passing the 'If the entered number is negative, increase it by one and display the result.' test. When i input a negative number and run my code it outputs the correct answer e.g -10 outputs -9 but i can't pass the tests? Any hints for this would be appre
11.05.2022
782
views
10
comments
1
Mack
Level 20
Osiedle-Nowiny
Question about the task
Comparable
Java Core
,
Level 7
,
Lesson 10
Resolved
Help, please
Help
15.12.2018
2624
views
24
comments
0
HACKER3000
Level 0
Under discussion
KANN NICHTS MACHEN
I have a question that I can not do a single task . the system says an unknown error has occurred. What can I do ?
05.07.2022
300
views
0
comments
0
Show more
1
...
35
36
37
38
39
...
366
Please enable JavaScript to continue using this application.