Promotion
CodeGym University
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
All quests
All levels
Any status
Questions about tasks
Hot
Andrei
Level 41
Question about the task
Building a file
Java Core
,
Level 8
,
Lesson 11
Resolved
Stuck. I need an algorithm that resets the entry set if the current entry is not the correct value.
My problem starts at line 52 - i have tried many ways to find an algorithm that resets the LOOP if the key is not correct. package com.codegym.task.task18.task1825; import javax.swing.plaf.synth.SynthTextAreaUI; import java.io.*; import java.util.*; /* Building a file */ public class Solution
28.01.2021
619
views
16
comments
0
Dinesh
Level 7
Delhi
Under discussion
Guide to make it executable
without constructors Want to make it executable code with proper output. class MyFile { private String filename = null; public void initialize(String name) { this.name = name; } public void initialize(String folder,String name) { this.filename = folder + name; } public void i
29.01.2021
461
views
1
comment
0
J H U X
Level 7
Alkmaar
Question about the task
Lonely arrays interact
Java Syntax
,
Level 7
,
Lesson 4
Resolved
Last requirement is not checking.
I did not find this hard to do (it's giving correct output), but still it's still not accepting the last requirement. So, apparently, I'm still doing something wrong. Can someone help?
28.01.2021
475
views
3
comments
0
hidden #10656888
Level 22
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Under discussion
The format for date is different for both crud assignments but solution expects to have the same format, its confusing.
CRUD 2 bd (birth date in the following format: 04 15 1990) CRUD bd (birth date in the following format: "04 15 1990") The way the format is mentioned is different for both assignments, one is with quotes and the other without quotes and no wonder my solution would never work.👎Please change this
06.01.2021
469
views
3
comments
0
zub
Level 41
Milan
Question about the task
Static modifiers and kittens
Java Core
,
Level 5
,
Lesson 9
Resolved
Stuck on this one
Not sure what I'm doing wrong here. Tried other ways too.
28.01.2021
695
views
3
comments
0
Stefan Craia
Level 15
Bucharest
Question about the task
Robot wars
Java Core
,
Level 3
,
Lesson 11
Under discussion
I don't know man, i just don't see it
The new body part must be added to the logic for the attack and defend methods in the AbstractRobot class. The attack method should return BodyPart.CHEST in some cases.
10.10.2019
1191
views
4
comments
0
Dmitri
Level 22
Seversk
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Under discussion
Don't know why 3d and 4th conditions don't pass. Code is working ok.
Don't know why 3d and 4th conditions don't pass. Code is working ok.
05.01.2021
435
views
0
comments
0
Daniel Whyte
Level 17
Question about the task
Calculator
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
X by 1.0
In the methods which return doubles the solution multiplies int a by 1.0. Why is the necessary?
28.01.2021
759
views
1
comment
0
Daniel Whyte
Level 17
Question about the task
Cat and statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Constructors
When an object of a class is made does it always automatically call the constructor?
28.01.2021
595
views
1
comment
0
MoJo
Level 23
Cairns
Resolved
what does HashCode() do?
So in given code (find mistakes etc.) there is a function overwritten that's called "HashCode". What is this used for? example public int hashCode() { int result = name != null ? name.hashCode() : 0; result = 31 * result + (assets != null ? assets.hashCode() : 0);
27.01.2021
412
views
1
comment
0
Liliane Top
Level 24
Amsterdam
Question about the task
Reading and writing to a file: Human
Java Core
,
Level 10
,
Lesson 2
Resolved
A lot of confusion
I just copied some code from others and from the lesson 1 but I do not understand it. Maybe someone can revert me to another source to understand the concepts behind this task? For now a couple of questions 1) Why do we create a variable to check for instance if it has a name. What does it add? Woul
14.01.2021
607
views
5
comments
0
Deborah Wenrich
Level 7
Pembroke Pines
Question about the task
Flip the array
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
What lovely thing Am I missing? It is failing to pass on the last criteria.
package com.codegym.task.task07.task0704; import java.io.BufferedReader; import java.io.InputStreamReader; /* Flip the array */ public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader
26.09.2020
485
views
3
comments
0
Daniel Whyte
Level 17
Question about the task
Feng Shui and statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Static int A
I think I understand. Am I right in saying that you have to declare static for int A because it is an instance variable while it is just declared in the class and an instance variable can't be used as an object?
27.01.2021
594
views
1
comment
0
Daniel Whyte
Level 17
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Output
My output seems to work but the code doesn't pass testing. What's wrong with it?
28.01.2021
476
views
2
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Files and exceptions
Java Core
,
Level 8
,
Lesson 11
Resolved
Confusion I do not get the difference between try-catch and try-with-resources
I understand that try-with resources automatically closes the streams but what if you wantt to use try with catch block. I'm clueless as why this codes is wrong and the validator is even more confusing. package com.codegym.task.task18.task1824; /* Files and exceptions */ import java.io.*; pub
08.01.2021
494
views
5
comments
1
Andrei
Level 41
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Resolved
I believe it's correct, but apparently not even the reading of the numbers is correct. Assistance, please!
I have gone through multiple times and it seems fine to me. The only thing that MAYBE is not ok is that I add a space even at the end of the new file where I write the rounded numbers. But it doesn't say anywhere that there shouldn't be a space after the last number. Anyway, what is the problem? I
19.01.2021
649
views
7
comments
0
I.A
Level 7
unknown city
Question about the task
Maximum in an array
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
what to do in case of negative number in data.how would it check negative.?
what to do in case of package com.codegym.task.task07.task0701; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Maximum in an array */ public class Solution { public static void main(String[] args) throws Exception { int[] array = in
30.03.2020
1202
views
4
comments
0
Stephanie
Level 4
Rochester
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Problem with test case 3 - min(-20, -10, -30, -40)
My code is almost complete, however I am having an issue with the above stated test case. How can I fix it? package com.codegym.task.task02.task0217;
27.01.2021
425
views
2
comments
0
Abdelrahman
Level 5
Amman
Question about the task
18+
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Help
I don't understand why the third task isn't met I did try to do System.out.println(name); System.out.println(age); but the 4th task also became unchecked but I did what it asked of me.
24.01.2021
561
views
2
comments
0
Isa Musa
Level 3
Kano
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Resolved
Print method
What is the error in this code please? Whenever I try to run it it's used to show me 👉The print method should display the strings for times. Each time in a new line. Shade me more light on this please.
04.01.2021
1063
views
1
comment
0
Maryem Vickers
Level 7
HT...
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Hello-- I need more help on this please!
I have two things wrong and I cannot figure this out. I have been here for ages trying to work it out, but in vain. Can you please help?! I have two parts wrong! Thank you for your help!
22.01.2021
523
views
2
comments
2
Ruubgaming
Level 2
Almere Stad
Under discussion
My language changed
So I just got to level 2 but for some reason the text is english but everything else is dutch (what I want). My interface language is set tu dutch.
26.01.2021
429
views
2
comments
0
J H U X
Level 7
Alkmaar
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
I am unable to solve this algorithms task...
The code works. It prints out the correct answer, but clearly I am not doing it the right way or I have an error somewhere. I am taking N from the keyboard and then loop N times. In this loop I set the highest nextN to int maximum. After loops are finished, I print out maximum. If N <= 0 I break
24.01.2021
777
views
8
comments
0
Daniel Whyte
Level 17
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Won't read
What's wrong with my code. It won't seem to read.
25.01.2021
713
views
3
comments
0
Josephine
Level 26
Normal
Question about the task
Externalizable Person
Java Core
,
Level 10
,
Lesson 7
Under discussion
what is wrong in the code?second condition not passing.Someone help
what is wrong in the code? Error says The server is unable to properly test your solution. Be sure you have all the classes you need. Be sure that your solution doesn't have any infinite loops.
13.01.2021
401
views
2
comments
0
Maxim Raitin
Level 20
Tomsk
Question about the task
HashMap of 10 pairs
Java Syntax
,
Level 8
,
Lesson 3
Under discussion
My code works..
My code works.. but this doesn't compile in Codegym. Btw why what is the difference in line 13 between HashMap map = new HashMap(); and Map map = new HashMap(); ?
25.01.2021
571
views
2
comments
0
WhiteColloid
Level 7
San Francisco
Question about the task
Cat and statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
when to use "this" and when to use Cat.
When should I use this and when to use Cat. to call the variable in Cat class? public class Solution { public static void main(String[] args) { // Create 10 cats Cat cat1 = new Cat(); Cat cat2 = new Cat(); Cat cat3 = new Cat(); Cat cat4 = new Cat();
09.01.2021
661
views
3
comments
0
remote87
Level 18
Sofia
Question about the task
Who's that smarty?
Java Core
,
Level 3
,
Lesson 2
Resolved
I missed something
I am really frustrated and confused with these ineterfaceses... I though that we can use the word extends only for classes inheritance and when using it, we can inherit only one class. But here: interface Boss extends Person, HasManagementPotential { } the interface extends ( inherits ) two ..
25.01.2021
538
views
2
comments
0
Marco Negus
Level 9
Under discussion
?????
hi guys anyone know why on the website im at level 3 lesson 3 available but after download e set intelliJ on my task i can just see till level 0 and 1 task ? how can i open all my new available task if i cannot show inside the IDE task? is a subcription problem?
21.12.2020
386
views
3
comments
0
Pandurang Patil
Level 3
kolhapur
Under discussion
level 3
I am study Mobil use code gym aap the level 3is not open and ideal c jdk 8 not installing and the not open please help me Sir ??
25.01.2021
339
views
0
comments
0
Show more
1
...
89
90
91
92
93
...
372
Please enable JavaScript to continue using this application.