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
Sakka Mouid
Level 19
Hannover
Question about the task
Snake (Part 8/20)
Games
,
Level 0
,
Lesson 1
Resolved
method does not override or implement a method from a supertype @Override
i got the error : method does not override or implement a method from a supertype @Override I don't know what is my mistake .It' like i have a non-existing method of the parent class Game overriden , but i did exactly as demanded.
29.04.2022
1037
views
2
comments
0
Arek Zieliński (abLe)
Level 20
Warsaw
Question about the task
Mirror image
Java Core
,
Level 9
,
Lesson 11
Resolved
Why does my code not pass?
Seriously I have no idea why this code is not passing. I use FileReader for reading a file's contents and also I close the FileReader stream using try-with-resources. Does anybody have any idea why it's not passing?
27.04.2022
517
views
5
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Writing our own ThreadFactory
Java Multithreading
,
Level 8
,
Lesson 4
Under discussion
I figured out 2 parts of this
This is what I have so far: public class Solution { public static AtomicInteger factoryNumber = new AtomicInteger(1); public static void main(String[] args) { class EmulatorThreadFactoryTask implements Runnable { @Override public void run()
28.04.2022
337
views
1
comment
0
scriptKing
Level 7
Under discussion
Secret Key
Hello, I am trying to get back into this from a break but it is asking for a secret key. When i click the settings link it came up with page not found. Please help Sam
27.04.2022
355
views
0
comments
0
LuisRC
Level 39
Gijón
Question about the task
Words with numbers
Java Core
,
Level 9
,
Lesson 11
Under discussion
What's my mistake?
Hi there, Where's the problem with my code? I've already tested it by using different word patterns (aaa, a1a, 1a2, @sd, @23, @we34) and it seems to work. The recommendation of my mentor "Be sure that your solution uses FileWriter" Am I not using it? Thanks
19.04.2022
518
views
6
comments
0
whoseunassailable
Level 28
India
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Under discussion
Here's how i tried yet it failed. The code in comments is for checking whether the file is split into two and it showed 50 and 51 so ig it did? But then again i might be wrong about something here. So plz help.
package com.codegym.task.task18.task1808; /* Splitting a file */ import java.io.*; import java.util.ArrayList; public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
19.04.2022
435
views
3
comments
0
Sidd
Level 7
Maple Valley
Question about the task
Bouncer policy
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
??
I have done this fine, it works in Intellij Id but on codegym it just throws exceptions I dunno why.
15.05.2020
631
views
7
comments
0
LuisRC
Level 39
Gijón
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Resolved
Help
Hi there, Where's my code wrong? It didn't pass validation. btw. I was looking for the appropriate REGEX for this taks with the following conditions: * 1 dollar must be replaced by one dollar * dollar 1 must be replaced by dollar one * 1dollar must not be replaced * dollar1 must not be replaced I wo
22.04.2022
501
views
4
comments
0
Marko Ressler
Level 7
Leoben
Question about the task
Filling an array
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Why is this wrong?
I get good results for even and odd lengths but it says it's not ok for odd ones. Anyone can help?
14.04.2022
359
views
6
comments
0
Mary Khan
Level 23
Russia
Question about the task
Set of plants
Java Syntax
,
Level 14
,
Lesson 3
Under discussion
Why I can't pass code validation with Arrays.AsList?
Why I can't pass code validation with Arrays.AsList? public class Solution { public static void main(String[] args) { Set mySet = new HashSet(Arrays.asList("watermelon", "banana ","cherry","pear","cantaloupe","blackberry","ginseng","strawberry", "iris", "potato"));
17.04.2022
468
views
3
comments
0
sam void mean (<_____>)
Level 4
United States of America
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Person person = new Person();
Hi everybody, can someone explain to me this line of code ? I am having hard time understanding the main purpose of this code: Person person = new Person(); or Cat cat1 = new Cat(); Thank you , Sam
18.02.2022
755
views
4
comments
0
LuisRC
Level 39
Gijón
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Under discussion
Struggling with this tak
Hi there, I've been struggling with this task for days and still I'm not able to get it validated. Any help, please?
16.04.2022
289
views
5
comments
0
Yordan Popov
Level 12
Asenovgrad
Under discussion
IDE error.
https://drive.google.com/file/d/13BVaRD2k04dt1ZwjxJ9VXzY_xRZmeJ5K/view?usp=sharing
12.04.2022
410
views
2
comments
0
Anthony Chalk
Level 30
London
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
Please help
My code works for the task example. I would have expected it to fail: All words passed to the getLine method must be included in the resulting string, if possible. as if there is a word that doesn't fit in with the word chain, I would have an infinite loop. I especially don't understand why it's f
16.02.2021
673
views
6
comments
1
PeterC
Level 28
France
Question about the task
Path update
Java Syntax
,
Level 9
,
Lesson 5
Resolved
Simple regex not passing.
Why it does not want to pass? The result is correct.
09.10.2021
517
views
4
comments
0
Marilyn
Level 17
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Why is the third condition not satisfied?
Why is the third condition not satisfied?
30.10.2021
529
views
3
comments
0
Radon Gawn
Level 14
United States of America
Question about the task
Hexadecimal converter
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
Can you find help me understand why this is failing the toHex(int) requirement?
Can you find help me understand why this is failing the toHex(int) requirement?
08.04.2022
375
views
1
comment
0
Nyarlathotep
Level 34
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Under discussion
Local tests pass with multiple solutions but last requirement doesn't verify
Hi, I have tried multiple solutions (attached is one) and tested with several local text files - using various combinations - but still fail to verify the last requirement even though I get the same results across my solutions, as well as the Codegym's solution. The core difference between my solu
08.04.2022
336
views
1
comment
0
Kiran Kumar Alisam
Level 8
Erie
Question about the task
Somehow average
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
where am i thinking wrong in the below scenario
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a= Integer.parseInt(reader.readLine()); int b= Integer.parseInt(reader.readLine()); int c= Integer.parseInt(reader.readLine()); if((a==b) && (b==c) && (a==c)){
08.04.2022
413
views
1
comment
0
public enum WaysToDie
Level 23
Denver
Question about the task
Remembering geometry
Java Syntax
,
Level 7
,
Lesson 7
Under discussion
Using the final keyword
I have added the final keyword to all the constants in the class. Yet the code still fails
18.12.2021
322
views
5
comments
0
Daniel Whyte
Level 17
Question about the task
Who called me?
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
Thread.currentThread().getStackTrace()[2]
What is the significance of referencing the number 2 in the index. My thinking would be that it wants to reference the previous stack so surely it should be a 1 because we start counting from zero?
02.03.2021
954
views
3
comments
0
MakinTosH
Level 20
Vilnius
Question about the task
Shall we play?
Java Core
,
Level 6
,
Lesson 13
Resolved
Help understand the output
I get this output when I run my code. In my opinion it displays all the information correctly. What's wrong? Smith:Start game Jones:Start game Gates:Start game Gates:Gather resources Smith:Gather resources Gates:Grow economy Gates:Kill enemies Smith:Grow economy Gates:won! Jones:lost Smith:lost Pr
07.05.2019
1782
views
7
comments
1
Jcode
Level 27
Under discussion
Cat or Tiger?
Below are the instructions from Java Core Level 4, Lesson 3 Type casting. Widening and narrowing conversions My question is simple yet I can't establish an answer (that makes sense to me). Why would I need a type variable as a Cat and then assign it to a new object Tiger? It's a Tiger so should a
03.04.2022
896
views
14
comments
0
Corly Boy
Level 11
Bucharest
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
What am I not doing right?
Hi, it looks like I don't understand what I'm being asked to do. The program shows me a rectangle of 8, however it gives me the error: Be sure that you have displayed the correct number of rows. Can you guide me somehow? thanks
05.04.2022
335
views
1
comment
0
LuisRC
Level 39
Gijón
Question about the task
Even characters
Java Core
,
Level 9
,
Lesson 5
Under discussion
Time out
Hi there, I try to get this task validated for two times and using different code but every time I got a "Time Out". I have already ran my code on my IDE and it seems to work, One question, the read file should be fully read before writing it on the write file?
04.04.2022
370
views
3
comments
0
lewis wakefield
Level 0
Under discussion
credit repairs
Good news I came across NEW HORIZON CREDIT 1 , I used to have a lot of sleepless nights due to my low (FICO) credit score that was below expectations ,and I couldn't access loans and mortgages for the new house I was about buying for me and my lovely wife . New horizon credit1 has been able t
04.04.2022
246
views
0
comments
2
J
Level 6
Tipp City
Under discussion
do nothing???
I've met all requirements except 'display no results if number is outside of 1-999'. After working so hard to get responses... I certainly thought it'd be easier to get no response 🤔😆 I've also tried this ending in just else{}, along with other multiple options 🤷♀️
02.04.2022
380
views
1
comment
0
Piotr Wikarski
Level 19
Birmingham
Under discussion
New advance CodeGym courses - available when?
Do anyone know when roughly the other advance courses: "SQL & Hibernate" and "JSP & Services" are going to be available.??
19.09.2019
1546
views
5
comments
2
LuisRC
Level 39
Gijón
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Under discussion
What is not working?
Hi there, First, is the logic of this solution right? Second, what is not working in this piece of code: int index = 0; while(index < products.size()){ Product product = new Product(products.get(index).id, products.get(index).productName, products.get(index).
31.03.2022
671
views
22
comments
0
Mike S
Level 28
Saint Louis
Question about the task
Shuffled just in time
Java Syntax
,
Level 13
,
Lesson 7
Under discussion
Infinite Loop? How??
Greetings friends, this exercise is driving me crazy on several accounts, but I'll just highlight one. The compiler claims I have an infinite loop in my while() statement. How is this the case? I have a list of set length. The code is written correctly as far as I can tell. Anyone see anything that
31.03.2022
451
views
2
comments
0
Show more
1
...
38
39
40
41
42
...
366
Please enable JavaScript to continue using this application.