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
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
Bogdan Codreanu
Level 23
Question about the task
Synchronized president
Java Core
,
Level 7
,
Lesson 4
Resolved
can someone help please
??
7/22/19
1764
views
2
comments
1
Anthony Chalk
Level 30
London
Question about the task
Rectangle algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
Matches task example output?
Sorry if the code is a little messy, the idea I was going with is: 1) If an element (point A) == 1, increment rectangleCount and - 2) Change the value to 0 (so it doesn't get recounted at a later point) 3) Check if/how many consecutive elements in the same row are also 1 4) Change all those values t
3/22/20
1586
views
8
comments
2
EugeneEmory
Level 8
San Antonio
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Verification doesn't like it?
So with the variables 1,2,3 the code will run and the message "the triangle is not possible" comes up. That should be correct because it is executing properly but the verification doesn't register it. Anyone see something that I can't?
2/12/21
670
views
7
comments
0
Damian Bochen
Level 37
Krakow
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Under discussion
Problem with "bd"
My code works for all tests, but there is a problem. According to requirements, the bd format is 04 15 1990 not "04 15 1990", so I had to go further with args[i+?]. Can anyone help me?
2/18/21
599
views
2
comments
0
Daniel
Level 41
Rybnik
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
My solution works like a charm but I can't pass last requirement
public class Solution { public static long power(long a, long b) { //my method to do Math.pow long powerResult = 1; while (b >= 1) { powerResult = powerResult * a; b--; } return powerResult; } public static long[] getNumbers(lo
2/19/21
659
views
1
comment
0
Azamat Aminov
Level 1
Tashkent
Question about the task
Symbol frequency
Java Core
,
Level 8
,
Lesson 11
Resolved
Friends I need help, I think output is correct and also I used to sort TreeMap but task is not verified
.
12/21/19
1345
views
2
comments
0
silent_sunshine
Level 23
Orlando
Resolved
I don't know why it can't verify.
package com.codegym.games.game2048; import com.codegym.engine.cell.Game; import com.codegym.engine.cell.*; import java.util.*; import java.util.function.IntPredicate; /** * @author zhouqichun * @version 1.0 * @date 2021/2/19 - 02 - 19 - 16:35 * @description CodeGymTasks com.codegym.games.ga
2/19/21
606
views
1
comment
0
Shubham Yadav
Level 2
Lucknow
Resolved
help in { public Woman owner; }
in this code.... public static class Cat { public Woman owner;
2/13/21
906
views
14
comments
0
Gus Iwanaga
Level 18
Munich
Under discussion
Help with Abnormal build process termination
Hello everyone! I just started level 9 (Java Syntax quest) and for whatever reason I keep getting this massive error message. Has anybody faced the same issue? I'm in touch with the support team but wanted to check if somebody was able to get this solved... Full error message: Abnormal build proc
2/18/21
1244
views
1
comment
0
Daniel Whyte
Level 17
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
List
This seems like a funny way to create the list. I thought it would be more like the below: ArrayList<> list = new ArrayList<>();
2/18/21
477
views
0
comments
0
Andrei
Level 41
Question about the task
John Johnson
Java Core
,
Level 9
,
Lesson 11
Resolved
Stupid date not formatting my output. What the hell?
So everything checks out by the mentor except for the date. Even though I think I did everything by the book, SDF won't format my date in the desired output. What am I missing?
2/18/21
897
views
8
comments
0
Dmitri
Level 22
Seversk
Question about the task
Serializable Solution
Java Core
,
Level 10
,
Lesson 7
Under discussion
This code passed but the task is kind of strange.
This code passed but the task is kind of strange. If you run my code you will see that the written object is not equal to the read one. Only their string field are equal. That is sort of confusing and misleading.
2/19/21
622
views
1
comment
0
Andrei
Level 41
Question about the task
Searching for the right lines
Java Core
,
Level 9
,
Lesson 11
Resolved
Confusing requirements. A B A D // 3 words from words, rejected ????
Hello, for task package com.codegym.task.task19.task1922 something is not making sense for me: Display all of the file's lines that contain only 2 words in the words list. A B A D // 3 words from words, rejected - what do you mean it has 3 words? It only has 2 which are A and B. Does it count th
2/19/21
601
views
2
comments
0
MoJo
Level 23
Cairns
Question about the task
Rectangle algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
"Arrays.copyOf(original, newLength)" works wierd?
I did the task but i tried to copy the passed array using Arrays.copyOf(a, a.length). This did copy it but also it was mirroring my alternations to the original. So i had to copy oldschool with a for loops.... Shouldn't .copyOf() create a distinct copy of the given array that is not affecting the o
2/18/21
590
views
2
comments
0
Denis
Level 22
Kharkiv
Question about the task
Debug, debug, and again debug
Java Core
,
Level 5
,
Lesson 12
Under discussion
how i can solve this
help me pls what i must change
6/26/19
1641
views
4
comments
0
Russell
Level 2
Galmpton, Brixham
Question about the task
Month number
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Why? WHY WONT YOU WORK
this i supposed ot be a medium task, and as far as I can see, when i run the program it outputs EXACTLY as its supposed to. i take in the variable and convert it to upper case. (to workaround people not capitalizing words) then i compare the uppercase version of the input with the upper case versio
12/20/20
678
views
4
comments
0
EugeneEmory
Level 8
San Antonio
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Verifier problems?
I seem to be having this problem a lot. As with my other problems, the code is working and includes -1 in the sum but the verifier doesn't seem to catch it. Anyone have a solution?
2/17/21
744
views
11
comments
0
Raja Kumar
Level 0
Bangalore
Question about the task
Snake (Part 14/20)
Games
,
Level 0
,
Lesson 1
Under discussion
I want to see what is inside that Game class or Key class.
does any body know how to see what are the different methods inside the game class or key class. so that to see the contents of the predefine function which we are using in this game development for getting the idea how the things work in this game. in this game they have just told to inherit the g
2/18/21
601
views
0
comments
0
Banak
Level 29
Saint-Gratien
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
Missing element or Extra element in the Array
Could someone please explain to me what is wrong with the returned ARRAY?
2/18/21
593
views
1
comment
0
Zach
Level 22
Fort Collins
Question about the task
HashMap of Objects
Java Syntax
,
Level 8
,
Lesson 3
Under discussion
Null pointer exception
I'm confused as to how to work around the null pointer exception with this object. map.put("Baby", null); map.put("Hugs", 111111111111L); <--------- This is also not correct, right??? Here is the code to get the value. Does toString() not work on null objects? String value = person.getValu
2/7/21
1076
views
2
comments
0
Ahmad Abbasi
Level 9
Anaheim
Question about the task
Stack trace revisited
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
see above task - help
why do we have to get third index and not a different one?
2/18/21
681
views
1
comment
0
dhanush
Level 30
Chennai
Question about the task
Feline carnage
Java Syntax
,
Level 5
,
Lesson 5
Resolved
help
can anyone tell what i'm doing
5/30/20
1071
views
7
comments
0
Zach
Level 22
Fort Collins
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
How do you make sure
int[] reverseArray = new int[20]; int index = 0; // reverse the array for (int i = array.length - 1; i >= 0; i--) { reverseArray[index] = array[i]; // System.out.println(array); index++; }
2/17/21
545
views
1
comment
0
alex ayers
Level 0
Under discussion
need to intergrate the fractionADT file into fraction file and test it with the tester file
in a real-life class, we have to take the fractionadt file and write a fraction file to test it Here the FractionADT file public interface FractionADT { public int getNum(); public int getDenom(); public boolean equals(Fraction f); public String toString(); } heres the fraction file p
2/15/21
468
views
0
comments
0
Mina Nabil
Level 17
Sydney
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Archived
Hi, whats the problem with my code ? thanks.
Hi, whats the problem with my code ? thanks.
2/17/21
655
views
4
comments
0
Michael T Schaefer
Level 15
Columbia
Question about the task
Task No. 4 about integer type conversions
Java Syntax
,
Level 10
,
Lesson 4
Under discussion
The Longest Sequence Challenges...
I have worked at this exercise for several hours... and finally generated the output that seems to fulfill the task requirements and, yet, no-go! If anyone can see any hidden clues to my situation in my code I would love some advice! : ) package com.codegym.task.task08.task0812; import java.io.*
2/15/21
1018
views
2
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Archived
Too few lines?
The program displays exactly what is written in the used .txt file (One line of text) but the validation says " The program displays too few lines". I tried System.out.println as well... Anyone knows whats wrong? Thanks in advance :)
2/17/21
774
views
6
comments
0
Daniel Whyte
Level 17
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Collections
The task wants me to iterate through the list but if I was allowed to use collections would this display the max and min (length)?
2/16/21
521
views
2
comments
0
Zach
Level 22
Fort Collins
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
How do you change String to Integer class?
I would like to use an array list for this task but have noticed that using the usual Integer.parseInt(reader.readLine()) changes a string into the primitive int instead of an Integer. How do you change it to an Integer? Thanks
2/16/21
971
views
1
comment
0
EugeneEmory
Level 8
San Antonio
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
help?
I nested the for loops like this and it does work but the verifier doesn't like it. Can anyone help me clean it up?
2/16/21
758
views
1
comment
0
Show more
1
...
87
88
89
90
91
...
374
Please enable JavaScript to continue using this application.