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
Radosław Dziura
Level 16
Question about the task
Turnip
Java Core
,
Level 3
,
Lesson 11
Under discussion
I don't have a clue how to do it
Can anybody help?
15.04.2020
992
views
4
comments
1
Ryan
Level 14
Ashburn
Question about the task
Building and School
Java Core
,
Level 4
,
Lesson 4
Under discussion
Worked but still questions
I passed but I'm still a bit confused on why. The default code said to "write code" in the Building class but I never did because everything already seemed attached to the Building class (after writing code for School class). I've also never seen class method written outside the class code block. My
24.03.2019
1278
views
4
comments
2
Mike S
Level 28
Saint Louis
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Resolved
Failing second condition...
I was surprised to have gotten this right on the first try except for the second condition. But I don't understand how it can be right every other way except for the second one. Any insights?
10.02.2023
165
views
3
comments
0
hendra gunawan
Level 9
tebing tinggi
Question about the task
Binary converter
Java Syntax
,
Level 9
,
Lesson 2
Resolved
please help
what's wrong with my code? the first and second task requirement make me so confuse
06.02.2023
200
views
2
comments
0
Masopha Makhetha
Level 1
Mohale's hoek
New
what to learn another course rather than the one i selected?
?
10.02.2023
154
views
0
comments
0
ADAM GROCHOWSKI
Level 4
Milwaukee
Question about the task
What's the cat's name?
Java Syntax
,
Level 4
,
Lesson 2
Under discussion
Why does name = this.name not work?
Is someone able to explain why name = this.name not work?
29.03.2020
820
views
3
comments
0
Micheline Peric
Level 0
Question about the task
We're on overload!
Java Core
,
Level 2
,
Lesson 4
Under discussion
2023 Great love spell caster to help restore my broken marriage now WhatsApp +2348124644470
URGENT AND EFFECTIVE LOVE SPELL CASTER TO HELP YOU GET BACK YOUR EX LOVER VERY FAST WHATSAPP +2348124644470 My Name is Micheline Peric from Ireland, I want to say thank you to PRIEST WISDOM for the good thing he has done for me,Though am not sure if this is the best forum to show my joy and happin
09.02.2023
161
views
0
comments
0
Dinesh
Level 7
Delhi
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
can any one explain how this.age= age+20 is giving 20 as output
Completed the task just by hit and trial after reading all the comments of respected members Is there any difference between instance and local variable ? if I am correct this keyword is used to access the instance variable that is the local variable
24.05.2020
732
views
5
comments
0
Thomas Yates
Level 16
Question about the task
High accuracy
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Not sure where to look next...?
When I enter 1.000001 and 1.000002 I get "The numbers are not equal". When I enter 16574837432.0000002 and 16574837432.00000003 I get "The numbers are equal". I am not understanding how to cause the program to get the difference only up to the millionths place value and then determine the output sta
09.02.2023
256
views
2
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Caching proxy
Java Collections
,
Level 7
,
Lesson 6
Resolved
Stuck with one condition remaining...
There are two things I was very uncertain about with this task... First, the removeEldestEntry method in the LRUCache class doesn't actually appear to do what it is supposed to do, but we were not instructed to edit that class, so I didn't touch it. And the constructor for this class takes a capacit
09.02.2023
117
views
1
comment
0
HaeWon Chung
Level 17
Boston
Question about the task
The simplest code: part 2
Java Core
,
Level 5
,
Lesson 6
Under discussion
I don't know why I need the constructor without parameter
Below code fails to pass the verification. Hint says to have the NormalCat constructor without parameter. So I deleted and pass. But I don't know why I need that constructor because the code runs well without it. public class Solution { public static void main(String[] args) { SiamCat c
28.05.2020
661
views
3
comments
0
Anonymous #11100313
Level 24
Question about the task
Binary to hexadecimal converter
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
How can I solve this it says outOfBoundsException?
I saw the correct solution but it seems that the code is too long so I'm trying to create one with using loops.
09.02.2023
289
views
1
comment
0
matemate123
Level 50
Kraków
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Under discussion
Don't try this at home...
Maybe someone find inspiration in my code. After almost seven hours non-stop working (not counting WC visits, and coffe/pizza break) I did this Frankenstain. I start this task yesterday and I tried did it with Pattern and Matcher help. It's not work, and I ending on help section. I find beauty code
07.02.2023
256
views
13
comments
0
Mithun
Level 1
Черкаси
Question about the task
My young friend
Java Syntax
,
Level 0
,
Lesson 4
Resolved
help and point out a mistake
I do not know how can I display the subtraction of this action, but I can write this int x = (3126); int a = (8); int = ("x-a"); if there is an error please help
25.07.2018
2072
views
10
comments
1
Josip Batinić
Level 17
Question about the task
5 shades of char
Java Syntax
,
Level 8
,
Lesson 1
Under discussion
Not passing validation
Program compiles and prints: Hello char as it should public class Solution { public static char char1 = 101; public static char char2 = 'H'; public static char char3 = 114; public static char char4 = '\u006F'; public static char char5 = 108; public static char char6 = 'h';
08.02.2023
139
views
1
comment
0
Ashok
Level 3
United States of America
Question about the task
Emptiness and spaces
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
can i get solution for the above program
public class Solution { public static void main(String[] args) { String emptiness = "emptiness"; String fullness = emptiness + emptiness + emptiness; //write your code here System.out.println(fullness); } } can i get solution for the above program
31.01.2023
251
views
2
comments
0
matemate123
Level 50
Kraków
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Resolved
It's almost good, but something wrong
Ok it's time for ask for help. After few hours of work I have this. I think something wrong with my trying create algorithm to solve situation when this tag is a little mess. (line 68-74). Maybe it possible way when I could repair this program. Am I long for good solution? I feel I'm close to do thi
01.02.2023
339
views
17
comments
0
Oliver Heintz
Level 18
Mustang
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Resolved
Struggling with "off" and "len"
The lessons are teaching me less and less. I've failed this task like half a dozen times already. So I check if my count is even or odd. If odd (count % 2 != 0), I write from 0 the first count / 2 characters. So, if I had 7 bytes, 7 / 2 should give me 3. 0-3. Then I write starting at count /
08.03.2021
595
views
5
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Circular iterator
Java Collections
,
Level 7
,
Lesson 4
Under discussion
Almost there, stuck on the 3rd condition
I think I have used try/catch for every place where an index out of bounds exception might occur. Not sure what else to do.
03.02.2023
135
views
2
comments
0
Mike S
Level 28
Saint Louis
Question about the task
Sequential file output
Java Core
,
Level 6
,
Lesson 13
Under discussion
Last Condition: "The output must contain the contents of the first file."
There's several layers to this question: 1) This sounds ignorant to ask at this point, but how in the heck does one use the console interface in IntelliJ? That would seem useful here. (As opposed to CodeGym where it's just "there".) 2) Since I can't play with any file names on the console interfac
01.02.2023
282
views
7
comments
0
Andrei
Level 41
Question about the task
Logging stack traces
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
Different Index for getStackTrace()[2] vs[1], same results. One is accepted, one is not. Why !?
This one is accepted: public class Solution { public static void main(String[] args) { log("In main method"); } public static void log(String s) { //write your code here String fullClassName = Thread.currentThread().getStackTrace()[2].getClassName(); St
10.11.2020
851
views
5
comments
1
Bo By
Level 8
Bratislava
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
What is the wrong with this solution - is showing me the largerst number but not accepted?
What is the wrong with this solution - is showing me the largerst number but not accepted? // The program should display the maximum of the N entered numbers. - this is not accepted, this requitment // also some hint/error I get : Be sure that the program works correctly for negative numbers.
30.01.2023
221
views
2
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Find the bugs
Java Core
,
Level 10
,
Lesson 10
Resolved
My code is now identical to the solution but still generates notserializableexception
The only differences I can find: 1. The names of the arguments in the readObject and writeObject methods in the B class. Instead of "in" and "out" I use "aInputStream" and "aOutputStream". Shouldn't matter, right? 2. The order in which classes are declared. I have A and B declared before Main, the s
21.11.2021
465
views
1
comment
2
Manoj
Level 3
Gurgaon
Question about the task
Share a Coke
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
The program should display a number on the screen.
Getting "The program should display a number on the screen." where as number is getting displayed in console after writing SOP on code. Then why error ?
29.01.2023
194
views
1
comment
0
Arko Sarkar
Level 8
Mumbai
Question about the task
The way of the Samurai
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
How to print it the best way?
Simply using print method is enough, it's like Hello World then! This task doesn't make sense!
24.08.2018
2063
views
8
comments
0
matemate123
Level 50
Kraków
Question about the task
Getting information through an API
Java Syntax
,
Level 16
,
Lesson 7
Under discussion
Error, only in this task, every other works fine.
Error, only in this task, every other works fine.
15.12.2022
284
views
1
comment
0
Karan Sharma
Level 4
Question about the task
Concatenation of strings and numbers
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
ans
x + y + " " + z
26.01.2023
202
views
1
comment
0
Anitamalina
Level 18
København
Question about the task
Fix the bugs
Java Core
,
Level 8
,
Lesson 5
Under discussion
What am I doing wrong here?
I can't see what I am doing wrong. Anyone who can help?
26.01.2023
278
views
1
comment
0
Sergei Polakov
Level 11
Donets'k
Question about the task
Census
Java Syntax
,
Level 8
,
Lesson 8
Resolved
I can not verify, made a dozen options, does not work
// import java.security.acl.LastOwnerException; import java.util.HashMap; import java.util.HashSet; import java.util.Map; /* Перепись населения */ public class Solution { public static HashMap createMap() { HashMap map = new HashMap <> ( ); map.hashCode (); m
08.05.2019
2146
views
9
comments
5
Art
Level 13
Chisinau
Question about the task
Minimum and Maximum
Java Core
,
Level 1
,
Lesson 11
Under discussion
Arghhhh
Can anybody help me find the issue?
25.03.2020
724
views
2
comments
1
Show more
1
...
24
25
26
27
28
...
367
Please enable JavaScript to continue using this application.