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
Bill Wu
Level 29
Wellington
Question about the task
Knowledge is power!
Java Multithreading
,
Level 4
,
Lesson 9
Resolved
Not verified
I tested with different cases, and my code seems working fine. My sort logic is: name in alphabetical ascending order, if same, then date in descending order, if same, then profit (last-open) in descending order. I can't figure out where is the problem.
4/17/19
2317
views
8
comments
0
Gellert Varga
Level 23
Szekesfehervar
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Archived
?
?
1/13/22
501
views
6
comments
0
Wyatt Wilhelmi
Level 20
United States of America
Question about the task
Positive number
Java Syntax
,
Level 3
,
Lesson 10
Resolved
I cannot find the problem with my code
I am a novice programmer so I could be making a big mistake and I just do not see it but this code works for all input scenarios that I have tried and yet the verification still marks it as wrong, any hints would be greatly appreciated.
1/12/22
1044
views
4
comments
0
Gytis Laukaitis
Level 18
Marijampole
Question about the task
Snake (Part 8/20)
Games
,
Level 0
,
Lesson 1
Resolved
Need a guidance
Seemed to fulfill all the requirements ,but still not passing. Any eagle eyes ?
9/2/20
1014
views
5
comments
1
Brentachii
Level 13
United States of America
Question about the task
A cubed cube calculator
Java Syntax
,
Level 7
,
Lesson 3
Resolved
so why doesn't it work the same way as the cube method?
the cube method takes a and turns it into a= a*a*a so why cant the ninthDegree method take a and return it as a = (cube a) * (cube a) * (cube a) ? instead, it's some random statement that is not even explained how or more importantly why it works.
1/10/22
1013
views
4
comments
0
LuisRC
Level 39
Gijón
Question about the task
Octal converter
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
Posible error
Hi there, Is posible that there's a bug in the proposed algorithm for converting an octal number to decimal?
1/12/22
638
views
6
comments
0
David W
Level 6
United States of America
Question about the task
Positive and negative numbers
Java Syntax
,
Level 3
,
Lesson 7
Under discussion
(n * 2) is not the same as doubling the number?
I'm having trouble completing the third requirement to double the number. I've tried (n * 2) and (n + n) both which double the number when I input a number. But i'm still missing something and failing the task. Any advice? Thank you in advance.
1/13/22
754
views
1
comment
0
Gellert Varga
Level 23
Szekesfehervar
Resolved
Question about term of "subdirectories"
If we are talking about "users" folder (see attached pic), then what does the term means: "all of its subdirectories" ? A) admin, staff, student; or B) admin, staff, student, jon, steve ?
1/12/22
486
views
4
comments
0
Gellert Varga
Level 23
Szekesfehervar
Resolved
Externalizable and the inheritance
https://codegym.cc/groups/posts/113-introducing-the-externalizable-interface I don't understand why the the following is said in the lecture (link above) : "Third, when you use inheritance, all descendant classes that inherit some externalizable class must also have default constructors." I assum
1/8/22
473
views
2
comments
0
LuisRC
Level 39
Gijón
Question about the task
Filling an array
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
About task
Hi there, In don't understand what is actually required in this task. May I have some more detailed information about what it's to be done?
1/8/22
521
views
4
comments
0
Romain
Level 26
Paris
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Archived
like everyone else the f**** first condition 🤬
Hi i don't understand the problem...
3/2/21
893
views
5
comments
0
Gellert Varga
Level 23
Szekesfehervar
Resolved
createTempFile method
Maybe this is an english language problem by me, I dont't know, but I can't interpret good enough the following sentence on this link: https://docs.oracle.com/javase/8/docs/api/index.html?java/io/File.html "public static File createTempFile(String prefix, String suffix) throws IOException Crea
1/7/22
580
views
2
comments
0
proegg123
Level 16
Question about the task
Array of string lists
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Generic Array Creation
Why is this "Generic Array Creation" not allowed in the programme? ArrayList<String>[] lists = new ArrayList<String>[5]; When I simplify to ArrayList<String>[] lists = new ArrayList[5]; it compiles. What is the issue with providing the type of the lists (String) and why is it
1/7/22
565
views
1
comment
0
Pablo Souza
Level 22
Brisbane
Question about the task
Task No. 7 about integer type conversions
Java Syntax
,
Level 10
,
Lesson 4
Under discussion
Choosing to ignore it
In a few years when I'm a senior developer I'll come back here and let you guys know if a question like this really matters if you're not some sort of quantum physicist. Meanwhile I'll choose to ignore trying to understand it and copy and paste someone's answer. I think I could understand it if I du
4/3/20
1503
views
3
comments
12
Michał
Level 6
Under discussion
Error while signing in using a secret key. Check CodeGymPlugin.properties.
I entered the wrong key when trying to connect InteliiJ and CodeGym. Now I can't correct it. I have uninstalled / installed the plugin again. What can I do? what is a secret key in general? Password? Thank you for your help.
9/14/20
1608
views
7
comments
0
whoseunassailable
Level 28
India
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 10
Under discussion
This is my logic towards the solution of the task and yet when compiled should work properly but instead kept on looping again and again
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String sNum = reader.readLine(); int sum = 0; while (true) { int num = Integer.parseInt(sNum); sum += num; if (num == -1) { break;
1/5/22
1017
views
4
comments
0
Dedcom
Level 19
Lahore
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
help plz
whats wrong with this code?
11/10/18
2279
views
8
comments
0
Florin1
Level 1
Question about the task
Path update
Java Syntax
,
Level 9
,
Lesson 5
Resolved
Help
Tested with other conditions mentioned elsewhere: "/usr/java/jdk1.8/bin" "/usr/java/jdk/bin" "/usr/java/jdk1.8-beta/bin" and I get the "/usr/java/jdk-13/bin" as asked by the problem What am I missing? (I removed some out of bounds checks from the code just to simplify things on read).
12/17/21
786
views
3
comments
0
Michael Brimage
Level 19
Washington D.C.
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Not quite sure where the bug is
I can't tell whats wrong, I think its somewhere between lines 24 and 26
3/4/20
1513
views
6
comments
0
Angel Stefan
Level 23
Sibiu
Question about the task
Different methods for different types
Java Core
,
Level 5
,
Lesson 12
Resolved
I can't call print(String s)
I don't understand how to put the code to be able to call print(String ) after 4 hours of work, any hint? Tk you!
1/5/22
523
views
1
comment
0
Dan Ursu
Level 27
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Archived
I cant pass the 1 condition, help please
package com.codegym.task.task31.task3101; /* Iterating through a file tree */ import java.io.*; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.TreeMap; /*** * Listar todos los ficheros de un directorio y de sus subdirectorios */ public class Solutio
1/4/22
517
views
2
comments
0
Константин Савченко
Level 25
Ukraine
Question about the task
Binary encoding
Java Syntax
,
Level 10
,
Lesson 8
Under discussion
What is wrong?
I have this in return. return "0000".substring(binaryNumber.length() % 4) + binaryNumber In terminal, I have response: In Unicode, the character C is 67, but in binary it is 01000011 In Unicode, the character o is 111, but in binary it is 01101111 In Unicode, the character d is 100, but in bina
12/30/21
885
views
3
comments
0
Константин Савченко
Level 25
Ukraine
Question about the task
StringTokenizer
Java Syntax
,
Level 9
,
Lesson 6
Under discussion
Explain me please
I should return String[] from method. I return it, but main method should return {"java", "util", "stream"} . Why it returns [java, util, stream];?
12/30/21
693
views
4
comments
0
Neha Anjum
Level 6
Hyderabad
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
I verified my solution....-20 // correct -40 // correct -30 // correct 40 // incorrect !!!....What do I do..? Please Help..!!!
package com.codegym.task.task02.task0217; /* Minimum of four numbers */ public class Solution { public static int min(int a, int b, int c, int d) { min(a,b); if(c<=a && c<=b && c<=d) return c; else return d; } public s
9/13/18
2536
views
6
comments
0
Gellert Varga
Level 23
Szekesfehervar
Resolved
What is the correct coding of the @Override toString() method?
Suppose we have such a class: public static class Cat { public int age; public int weight; public String name; } In CodeGym tasks, we sometimes get ready toString() methods, usually in this form: @Override public String toString() { return String.fo
1/2/22
457
views
2
comments
0
Angel Stefan
Level 23
Sibiu
Question about the task
OOP: Fix inheritance problems
Java Core
,
Level 5
,
Lesson 2
Resolved
I can' t pass the last condition
I need a hint, tk you! What is that i don't see?
1/3/22
725
views
3
comments
0
Szymon Pawlikowski
Level 19
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
How is it possible that we can create instance of static class?!
Hello, I have done task, but I don't understand how is it possible that we create instance of static class. I thought that static class doesn't allow to create its' instance. Could someone explain it to me?
12/29/21
697
views
4
comments
0
public enum WaysToDie
Level 23
Denver
Question about the task
Correct order
Java Syntax
,
Level 7
,
Lesson 2
Resolved
What am I missing.
I have completed the requirements, but it still fails. I don't know what I have missed. I would return the new array if the assignment would let me do such a thing but I have to change the original array and that is what I believe I have done. I believe it may be the commas after the last element w
12/18/21
762
views
4
comments
0
Michael Brimage
Level 19
Washington D.C.
Question about the task
Default values
Java Core
,
Level 5
,
Lesson 9
Under discussion
I dont unstand why..
I dont understand why I'm required to create a new solution object. The lesson does not really explain this very well, in my opinion. Can someone please explain this to me?
4/17/20
1328
views
2
comments
0
LucGar
Level 22
Bilbao
Question about the task
OOP: Method overloading - Eliminating the superfluous
Java Core
,
Level 5
,
Lesson 4
Resolved
cuestion
Why the method with byte, not work?
4/6/20
963
views
3
comments
0
Show more
1
...
53
54
55
56
57
...
374
Please enable JavaScript to continue using this application.