Promotion
CodeGym University
Java FullStack
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
Ask a question
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
Aryan Babaie
Level 4
Jülich
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
why it goes so fast
hey guys, I have done the task right but just wanted to see the right solution and when I saw it I just got blown away!! what is that actually? can someone explain it to me somehow? ( I mean the statement after "return")
3/30/21
681
views
1
comment
0
Andrei
Level 41
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
Nothing is being printed. Why?
I went through the code and I feel it is ok. I even added a check to ensure no duplicates are added to the list (lines 45-49). Please ignore line 37. Yet nothing is printed.
3/30/21
543
views
2
comments
0
Emanuele
Level 12
Under discussion
java: package com.codegym.engine.cell does not exist
Buongiorno a tutti. Cercando di eseguire il codice in IntelliJ Idea, compare il messaggio in oggetto. Su CodeGym viene invece eseguito correttamente. Mi piacerebbe continuare lo sviluppo degli esercizi del corso in IntelliJ Idea. I precedenti esercizi che non richiedono il pacchetto com.codegym.engi
3/30/21
855
views
1
comment
0
John
Level 17
Mansfield
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
what's wrong with my iterator?
it says that package map2 not found even though I'm pointing to map2 Map when i try to create iterator
3/28/21
869
views
14
comments
0
Daniel Whyte
Level 17
Question about the task
Future manager
Java Core
,
Level 3
,
Lesson 2
Under discussion
interface Secretary extends Person
I actually had no idea that an interface could extend a class
3/30/21
537
views
1
comment
0
Sofia
Level 2
Thatta
Question about the task
We don't need any extra lines
Java Syntax
,
Level 1
,
Lesson 7
Under discussion
please solve this code and teach me how you solve it ?
package com.codegym.task.task01.task0123; /* We don't need any extra lines */ public class Solution { public static void main(String[] args) { int a = 10; int b = 15; double c = b + 38; int d = a + 12; double e = 12.3; String s = "s" + a;
3/30/21
743
views
1
comment
0
Djordje
Level 19
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Resolved
What is wrong with this? When I run it, it shows exactly what was required.
package com.codegym.task.task10.task1012; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* Number of letters */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader
11/27/18
2250
views
7
comments
0
Khongpak Phupkdee
Level 15
Chiangrai
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
Why I stuck 6 Object , when I created 6 Objs Completed? Please Help!
Why I stuck 6 Object , when I created 6 Objs Completed
3/28/21
616
views
2
comments
0
An Gelo
Level 18
Cebu
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
remove method
hi need help is my format/conditions incorrect please help me.. what are the other ways i could the find the date in between month
8/22/18
2548
views
4
comments
0
John
Level 17
Mansfield
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
PLEASE HELP WHAT'S WRONG HERE
I think everything's fine help me please im stuck : (
3/27/21
734
views
6
comments
0
John
Level 17
Mansfield
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Please help :(
Im stuck for a days can somebody give me a clue
3/27/21
524
views
1
comment
0
Maxim Raitin
Level 20
Tomsk
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Resolved
I've given up..
I don't know why output is Rockefeller rather than Gates. Why my for loop choose previous getValue, but not current one. Please, help me.
3/27/21
782
views
1
comment
0
Alexandre Lalancette
Level 41
Quebec
Question about the task
Shortener (14)
Java Collections
,
Level 6
,
Lesson 15
Under discussion
Not passing the last requirement! I suspect the problem is in the FileStorageStrategy class
Not passing the last requirement! I suspect the problem is in the FileStorageStrategy class but I can't find how/why. Can someone give me a small hint?
2/12/20
1371
views
4
comments
2
remote87
Level 18
Sofia
Question about the task
Most frequent bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
Seems to me I'm missing something
As far as I understand the task condition, I'm doing exactly as what is wanted, but still can't pass that 3rd condition. I think I'm missing the output, but still can't figure it out. Any advice....Lupe? :D
3/26/21
756
views
6
comments
0
gh0stl0nely
Level 23
Toronto
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Under discussion
Last condition not met while local test cases all passed
I tested on my computer with my own tests like: Case 1: world?me,lol,world => return 2 Case 2: world.ok.world.wor32.wor0x:world => return 3 It says "Determine why 'world' appears more than it exists" I don't want to use the solution that CodeGym provides. Too complex.
3/26/21
528
views
2
comments
0
Andrei
Level 41
Question about the task
Hippodrome (part 6)
Java Multithreading
,
Level 1
,
Lesson 16
Resolved
If I declare a new ArrayList as a parameter for the newly created Hippodrome which is assigned to game variable, where are the horses stored if I use the getter ?
Line 15 - I declare a new Horse Arraylist. Yet in lines 17-19 I add those horses to the static variable from class Hippodrome. How does that work? How do the horses transfer from the static variable to the passed argument ? public class Hippodrome { static Hippodrome game; private List<
3/25/21
981
views
4
comments
0
Patrick
Level 13
Arlington
Under discussion
Can I stop the popups that appear after completing achievements? It's kind of annoying
After completing achievements I get a bunch of popups with your new points, an option to share on social media, etc. Can I prevent that?
10/23/19
1470
views
9
comments
2
Daniel Whyte
Level 17
Question about the task
Useless abstractions
Java Core
,
Level 2
,
Lesson 12
Under discussion
Swimming Pegasus
Confusing myself about why swimming Pegasus needs to be abstract. It thought an abstract class would be generally further up the chain eg an animal instead of a horse. Swimming Pegasus seems very specific to be something that's abstract.
3/25/21
694
views
1
comment
0
Rheem
Level 3
London
Question about the task
Minesweeper (Part 1/16)
Games
,
Level 0
,
Lesson 0
Under discussion
JavaFX - unable to compile the MinesweeperGame.java class - Error:(5, 8) java: cannot access javafx.application.Application class file for javafx.application.Application not found
Installed IntelliJ, working fine with all previous tasks, but for this one I can't even succeed in compiling this small amount of code as I get the error: Error:(5, 8) java: cannot access javafx.application.Application class file for javafx.application.Application not found I have followed the
7/10/20
1471
views
4
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Sequential file output
Java Core
,
Level 6
,
Lesson 13
Resolved
Just one File displayed
I am really stuck on this one. The code just displays the contents of one file. I tried different ways of reading the contents but it doesn't make any difference. I didn't find anything helpful in the help section so far... Any hints? public class Solution { public static String firstFileName
3/24/21
683
views
2
comments
0
Ramen
Level 23
South Lake Tahoe
Under discussion
My display is correct, I'm popping the last element in the stack trace and getting the calling method name. But why is the Test still failing.
import java.util.Stack; public class Solution { public static void main(String[] args) throws Exception { method1(); } public static String method1() { method2(); //write your code here StackTraceElement[] stackTraceElements = Thread.currentThread().get
3/17/21
586
views
4
comments
0
Azhar Iqbal
Level 18
Multan
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
Whats the problem with my code
A little hint would be appreciated.
9/19/18
2657
views
12
comments
1
hidden #10467591
Level 19
Question about the task
Different methods for different types
Java Core
,
Level 5
,
Lesson 12
Resolved
Why it doesnt complete the task?
Why it doesnt complete the task?
9/2/19
1914
views
5
comments
1
Bob
Level 9
Newark
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Not sure what I did wrong.
I get the right answer yet it keeps failing me.
3/24/21
820
views
2
comments
0
Bob
Level 9
Newark
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I get the right answer but its saying im wrong
I dont understand what I did wrong. Please help.
3/24/21
680
views
1
comment
0
Baurzhan Konurbayev
Level 40
Question about the task
CashMachine (part 4)
Java Collections
,
Level 9
,
Lesson 15
Resolved
Seems fine, but still fails
Hi, Please, help. What could I miss here? Thanks
3/24/21
640
views
1
comment
0
remote87
Level 18
Sofia
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
Why, why, why?!
Why does not my code passes the tests?! What am I doing wrong?! I've been on this task for about 6 or 7 hours straight... Please, any advice!
3/23/21
564
views
5
comments
0
Josephine
Level 1
Normal
Question about the task
Between tabs
Java Multithreading
,
Level 2
,
Lesson 5
Resolved
Some exceptions are throwing.Getting the right output in intellij.What is the erroor here?
com.codegym.task.task22.task2203.Solution$StringTooShortException at com.codegym.task.task22.task2203.Solution.getPartOfString(Solution.java:18) at com.codegym.task.task22.task2203.Solution.main(Solution.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.Nativ
3/15/21
559
views
1
comment
0
DmdKanth
Level 19
Dayton
Question about the task
Set of cats
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
mine's failing in three ways but it's working just fine. Any ideas?
Inside the Solution class, there must be a public static Cat class with a default constructor. <==Fails The Solution class's printCats() method must display all the cats in the set. Each cat on a new line. <==Fails The main() method must remove one cat from the set of cats. <==Fails
3/22/21
553
views
2
comments
0
Solanki Dhruv
Level 18
Surat
Question about the task
Synchronized president
Java Core
,
Level 7
,
Lesson 4
Resolved
Where is the problem?
?
12/16/18
2320
views
8
comments
0
Show more
1
...
81
82
83
84
85
...
374
Please enable JavaScript to continue using this application.