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
Ovo Leslie
Level 26
Lagos
Question about the task
Tetris (part 13)
Java Collections
,
Level 2
,
Lesson 15
Resolved
Can anyone help me out here. I can't figure out the matrix thing
Help needed!
21.05.2020
439
views
2
comments
1
FelixUjo
Level 34
Gijón
Question about the task
Reading and writing to a file: Human
Java Core
,
Level 10
,
Lesson 2
Under discussion
I can't think of anything else to try
I can't think of anything else to try
08.12.2023
117
views
1
comment
0
Amantai
Level 45
Shymkent
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Under discussion
Help
Where is the error?
12.12.2023
118
views
1
comment
0
Ramen
Level 23
South Lake Tahoe
Question about the task
Toward an RMI server
Java Collections
,
Level 2
,
Lesson 10
Under discussion
Can anyone explain this? What does this have to do with the lesson?
public class Solution { public static final String UNIC_BINDING_NAME = "double.string"; public static Registry registry; //pretend we start rmi client as CLIENT_THREAD thread public static Thread CLIENT_THREAD = new Thread(new Runnable() { @Override public void run(
02.01.2024
84
views
0
comments
0
Rajesh Yadav
Level 17
Delhi
Question about the task
Reverse
Java Syntax
,
Level 5
,
Lesson 2
Under discussion
way to salved the problem is straight forward
read the first integer value stored in N(size of array) create an array of size N and stored all next value into array now check the size of array that N is even or odd if even then reverse the array and print else print same as it is.... hope you try first yourself...
31.12.2023
82
views
0
comments
0
Bashka
Level 4
Russia
Question about the task
Conscription
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
WTF, paty two..
My answer: ......................... P Scanner scanner = new Scanner (System.in) ; String name = scanner. NextLine ( ) ; int age = scanner. NextInt ( ) ; if( age >= 18) { System.out.println ( name + militaryCommissar) ; } ; ................. And what you think? It write : wrong. WTF,
31.12.2023
95
views
1
comment
0
Anonymous #11439288
Level 22
Question about the task
Chess board
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
seems im printing the right output but its not validated , any clue ?
package en.codegym.task.jdk13.task06.task0634; import java.util.Scanner; /* Chess board */ public class Solution { public static char[][] array; public static void main(String[] args) { //write your code here Scanner scanner = new Scanner(System.in); //System.ou
29.12.2023
74
views
1
comment
0
Matthew Riggs
Level 6
United States of America
Question about the task
Even numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Very confused...
I can't test this code because it says I'm missing a ")" on line 20, but I don't see anywhere I could put one. en/codegym/task/pro/task04/task0411/Solution.java:20: error: ')' expected for (int x = 1; x % 2 == 0; x++;) { ^ Is the error something else
21.12.2023
243
views
7
comments
0
Khongpak Phupkdee
Level 15
Chiangrai
Question about the task
MovieFactory
Java Core
,
Level 4
,
Lesson 8
Resolved
Why I passed this sixth requirement when I move code? Please Explant
From 6. For each string entered (including the invalid string), you must call the MovieFactory.getMovie method. public class Solution { public static void main(String[] args) throws Exception { // Read several keys (strings) from the console. Item 7 BufferedReader reader = new
29.08.2021
686
views
4
comments
1
Aleksander
Level 41
Question about the task
Tetris (part 15)
Java Collections
,
Level 2
,
Lesson 15
Under discussion
Hi, what is wrong with the createRandomGamePiece method?
Hi, Despite the fact I had to manually write the whole GamePieceFactory method (where the task said at level 12 that it will complete it by its own), I don't know why it does not validate now. Can you help? Thanks
16.03.2020
899
views
10
comments
1
Andrei
Level 41
Question about the task
Tetris (part 14)
Java Collections
,
Level 2
,
Lesson 15
Resolved
Confusing redrawing of the lines
The logic of the algorithm is that it takes all of the non full lines and add them to an array. It leaves the full lines in the old array because the old array will be overwritten. Now, in line 25 it says add incomplete lines to the beginning of the list. This line of code doesn't make sense to me.
25.06.2021
644
views
4
comments
1
Anonymous #11439288
Level 22
Question about the task
Describing numbers
Java Syntax
,
Level 3
,
Lesson 10
Under discussion
am I missing something ?
when I run the code , its's printing the right output for all of the scenarios , yet the check complaining on some of the scenarios such as "If the number is even and has two digits, display "even two-digit number"." package en.codegym.task.jdk13.task04.task0427; import java.io.BufferedReader
22.12.2023
86
views
2
comments
0
Anonymous #11439288
Level 22
Question about the task
Day of the week
Java Syntax
,
Level 3
,
Lesson 7
Under discussion
i think im printing the right output
can somebody please give a hint what's wrong here ? It's failing on check for "If you enter a number from 1 to 7, you need to display the name of the day of the week" yet when I run the code i see correct output. package en.codegym.task.jdk13.task04.task0413; import java.io.BufferedReader; import
22.12.2023
102
views
1
comment
0
Jerome Antoine
Level 2
Montreal
Question about the task
Declare variables
Java Syntax
,
Level 0
,
Lesson 4
Under discussion
declaring variables
im supposed to declare some variables but one of the variables is an int age so when i name age as they asked its saying basically that i cant do it the solution here i have tried
09.03.2019
1229
views
2
comments
0
Khrysus
Level 3
Denver
Question about the task
Count the number of cats
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
Only one count variable?
Not sure what I'm doing wrong here. Can someone help me figure out why it's saying it has more than one count variable?
17.12.2023
196
views
2
comments
1
Matthew Riggs
Level 6
United States of America
Question about the task
Second smallest number entered
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
It technically works, but not really...
I almost have it, but not quite. With the example input it works, printing 4 as the lowest and 5 as the next smallest (I have it printing both for testing) but when I added a 3 at the end of the list of numbers (but before the enter breaks the loop) and it correctly updates the lowest number to 3, b
20.12.2023
233
views
3
comments
0
Matthew Riggs
Level 6
United States of America
Question about the task
Minimum of entered numbers
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
What is happening???
I don't understand what's happening, I run the code, it outputs 4, the lowest entered number. But it doesn't meet the requirements to pass, it fails the 'print the lowest entered number' and somehow it also fails 'take input from keyboard.' How is that possible if it is successfully taking in number
19.12.2023
285
views
5
comments
0
Matthew Riggs
Level 6
United States of America
Question about the task
Maximum of entered numbers
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
Trying to figure out the math.
I'm trying to figure out small parts of the code I'll need for this task. I'm currently working with making sure the number is even. But there's something wrong and I don't know what it is, when I run the code with the example inputs it prints 9 & 4, one is even and one isn't, but it should only
19.12.2023
122
views
1
comment
0
Matthew Riggs
Level 6
United States of America
Question about the task
Summation
Java Syntax
,
Level 4
,
Lesson 3
Resolved
Stuck
I don't understand why this isn't working. Everything looks right, and when I say everything out loud it makes sense, but something is wrong with it and the wizard has nothing to say about it. Can an actual person tell me what's wrong with it?
17.12.2023
339
views
5
comments
0
Zach
Level 22
Fort Collins
Question about the task
The early bird gets the worm
Java Core
,
Level 6
,
Lesson 13
Resolved
Second to last task not passing?
Any help would be appreciated. Thanks in advance
02.09.2021
354
views
2
comments
1
Denis
Level 22
Kharkiv
Question about the task
Consecutive threads
Java Core
,
Level 6
,
Lesson 13
Under discussion
Need help
Give me a code pls
27.06.2019
1127
views
2
comments
1
Youngsan
Level 41
Seoul
Question about the task
Bridges
Java Core
,
Level 4
,
Lesson 8
Resolved
Seems to be right solution, but failed to pass.
I got "The println method must display the number of cars (result of the getCarsCount method) for the passed WaterBridge object." What should be corrected to pass?
06.09.2020
604
views
2
comments
2
FelixUjo
Level 34
Gijón
Question about the task
Overriding serialization in a thread
Java Core
,
Level 10
,
Lesson 10
Under discussion
I don't know what's wrong.
I don't know what's wrong.
17.12.2023
90
views
1
comment
1
Sarah
Level 13
Question about the task
Chess board
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Intelli IDE debug and run always failed
When I use the Intelli IDE to try to solve this chess board problem, I saw this message: Connected to the target VM, address: '127.0.0.1:53542', transport: 'socket' My solution to this task passed the validation on the web, BUT when I try to run it on the Intelli IDE, it cannot print out anything,
17.12.2023
85
views
1
comment
0
Matthew Riggs
Level 6
United States of America
Question about the task
Comparing strings by reference
Java Syntax
,
Level 3
,
Lesson 9
New
Clarification of task?
I've gotten two solutions that work but don't satisfy the requirements, so I don't think I fully understand the task prompt. Is it wanting me to compare the contents or address of the strings? And what does 'pairwise' comparison mean? I assume it's a term for one of those comparison type, but this
14.12.2023
105
views
1
comment
0
hidden #10467591
Level 19
Question about the task
Bridges
Java Core
,
Level 4
,
Lesson 8
Resolved
Where I am doing mistake?
Could you help me with this?
25.08.2019
1032
views
2
comments
1
LucGar
Level 22
Bilbao
Question about the task
Bridges
Java Core
,
Level 4
,
Lesson 8
Resolved
constans value
Hello, when in this requeriment says "The getCarsCount() method must return any constant int value." what is the meaning of "constant? I search, and i found that the meaning of constant is equal a parameter "final" .
31.03.2020
879
views
3
comments
1
catalin1989
Level 37
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
I need some clarifications
After reading the asked questions about this topic I understand this: 1. The resulting chain mustn't be the longest 2. I assume that the chaining is at the beginning or at the end. I tested my code with the following input: CaaT Okinawa Washington Auckland Kalamazoo zoooZ zooe Norfolk The output
14.12.2023
276
views
8
comments
0
vinxxx0.1
Level 3
New
libGDX
Hi just wanna ask if you can use LIBGDX in this app to practice making games
14.12.2023
86
views
0
comments
0
Van Ha
Level 41
Bodegraven
Question about the task
Buon Compleanno!
Java Collections
,
Level 10
,
Lesson 10
Under discussion
What's wrong?
As far as I can tell I'm using the methods correctly, but it won't verify
01.05.2020
850
views
2
comments
3
Show more
1
...
4
5
6
7
8
...
366
Please enable JavaScript to continue using this application.