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
Kent Hervey
Level 19
Question about the task
Feng Shui and statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Please explain why it works
I got verification/passed using the below, but why? How? I just guessed. And what does this do? A=15; public class Solution { public static int A = 5; public int B = 2; public int C = A * B; public static void main(String[] args) { A = 15; } }
25.10.2019
1442
views
4
comments
0
Szymon
Level 18
Lublin
Question about the task
Array of string lists
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
failed condition
Hi, I have a problem with this task. My solution is attached. The failed condition is: "The createList method must declare and initialize an array with ArrayList elements." but according to oracle documentation -> "You cannot create arrays of parameterized types.". What am i missing here?
12.10.2018
1808
views
3
comments
0
Kent Hervey
Level 19
Question about the task
Labels and numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
%2==1 does not test for odd numbers properly for negative numbers
It seems %2==1 does not test for odd numbers properly for negative numbers? Why The below does not work for negative numbers such as -9: if(enteredNumber%2==1){ System.out.println("is odd"); }
14.10.2019
1088
views
2
comments
0
kareandr
Level 35
Podol'sk
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Under discussion
Recursive problems
Hello everyone! Ive tried to solve this with recursion but it fails with message "The list returned by detectAllWords is not the right size!". System.out.println(words.length) prints 2. System.out.println(wordsList.size()) prints 2, same size. System.out.println(wordsList) prints [home - (5, 3) - (
08.07.2019
1323
views
1
comment
0
Patrick freeman
Level 14
Buffalo
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Trying to understand this part of a for loop
Ok, so, to pass this task, I had to make the final for loop condition what is shown below, and this allowed me to println my entered array in reverse order of what was typed, but I don't really understand what is shown inside the parenthesis. I would think what I am doing here is Declaring a new Str
20.10.2019
1241
views
2
comments
0
Krunoslav Krainović
Level 16
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Resolved
Seems it works but wont accept
Seems it works but wont accept
25.10.2019
1078
views
3
comments
0
Luis Rodriguez Ugarte
Level 22
Chatillon-sur-Chalaronne
Question about the task
Words with numbers
Java Core
,
Level 9
,
Lesson 11
Under discussion
I do not know why does not validated
"Be sure that the program writes all the words containing numbers from the first file to the second file." I have try out to different test but it's working on perfectly good, any ideas please?
25.10.2019
1123
views
2
comments
0
Петр Зинченко
Level 19
Kharkiv
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Under discussion
What wrong?? 3&4 failed
Help please, i checked, it is work but don't pass
24.10.2019
1158
views
4
comments
0
Kent Hervey
Level 19
Question about the task
ConsoleReader class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
b percent of the number a ??
what does this mean: b percent of the number a I would think if b is 10 and a is 40, then the result should be 25 as in 25% But?
25.10.2019
1221
views
1
comment
0
赟 高
Level 16
Jinan
Question about the task
Brain training
Java Core
,
Level 5
,
Lesson 12
Under discussion
An error occurred during verification
This is my code.Is anything wrong? public class Solution { public static void main(String[] args) { Duck duck = new Duck(); Util.fly(duck); Util.move(duck); } public static class Duck implements CanFly, CanMove { @Override public void doAction()
13.10.2019
1142
views
2
comments
0
Angeget
Level 22
Potsdam
Question about the task
Words with numbers
Java Core
,
Level 9
,
Lesson 11
Resolved
Help please, maybe i do not understand the requirement.
what am i am doing wrong hier?
16.03.2019
1240
views
1
comment
0
corsi
Level 4
Furiani
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
i do not understand lesson
package com.codegym.task.task04.task0401; /* This age doesn't work for me… */ public class Solution { public static void main(String[] args) { Person person = new Person(); System.out.println("Age: " + person.age); person.adjustAge(person.age); System.out.pri
07.04.2019
3193
views
4
comments
0
Andrew
Level 29
Seattle
Question about the task
Horse racing
Java Core
,
Level 6
,
Lesson 5
Archived
Not passing first 3 validation tests, not sure why
1. The calculateHorsesFinished method must return the number of horses that have finished: Number 2.3 in the conditions says to only count horses as finished if you don't have to wait for them. In main(): while (calculateHorsesFinished(horses) != horseCount) {} indicates that the calculateHorsesFini
07.02.2019
1558
views
6
comments
1
Robert Constantinescu
Level 25
Bucharest
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Am i missing something?
So, in IDE it works just fine and returns the longest strings, but for some reason when i try to validate it fails. Can someone let me know what i am missing here? Many thanks
22.10.2019
1012
views
3
comments
2
Wojtek
Level 23
Solec-Zdroj
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
Can you give me hint how to resolve this?
need hint
07.01.2019
1678
views
3
comments
0
Przemysław Dr
Level 20
Tricity
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Resolved
Are the requirements ok?
Are the requirements ok? What should be the output of input: http://codegym.cc/alpha/index.html?lvl=15&view&name=Amigo Should it really be: lvl view name orlvl view name double: 15.0 String: Amigo ?
24.10.2019
1429
views
2
comments
0
Ryan
Level 7
edmonton
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
Please explain why this doesn't work
I am unsure if I am printing the arraylist right or adding to the arrylist right
08.06.2019
1371
views
2
comments
0
Dinca
Level 14
Giurgiu
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
I can t figure out what is wrong
package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Exception
23.10.2019
993
views
2
comments
0
Han
Level 24
Question about the task
Writing to an existing file
Java Collections
,
Level 2
,
Lesson 2
Resolved
My code works fine locally but doesn't seem to validate on the server
I have no clue why not even the first requirement is met: You must use RandomAccessFile in the Solution class's main() method.
24.10.2019
1296
views
3
comments
0
gmb55
Level 25
Tarnów
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Under discussion
Where should be resultMap.put() method?
What is wrong? I saw in other's solutions that they made new methods to return int and then they put sth like resultMap.put(URL, realThread.returnMethod()); How to solve this task with void run() method?
05.09.2019
1387
views
1
comment
0
Anthony Chalk
Level 30
London
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Can't see the problem
please help
24.10.2019
1257
views
2
comments
0
Adarsh
Level 3
Mumbai
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Stuck here!!! Help
Last condition isn't fulfilling. Please help
14.10.2019
917
views
2
comments
0
Ana Maria iacob
Level 7
Rimini
Question about the task
Somehow average
Java Syntax
,
Level 4
,
Lesson 16
Resolved
Some help ?? thank s :)
i need a clue for the last condition?
14.10.2019
974
views
2
comments
0
Abhishek Rangari
Level 22
Nagpur
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Resolved
can anyone help me in this task
Code is working fine in Eclipse, but not working here..
17.12.2018
1462
views
2
comments
0
Lex Medeiros
Level 18
San Jose
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Under discussion
FileOutStream is only for images, videos and binary data?
I am a bit confused with this task. I have not found yet something that reads numbers in a file. Do I have to take the bytes, change them into numbers and then round them, turn them back into bytes and store them? How do I know the representation of the number in bytes? Thanks for your help!
22.08.2019
1304
views
2
comments
0
ashgolan
Level 8
Ashdod
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
need help please .. why its not work ?
need help please .. why its not work ?
23.10.2019
1507
views
6
comments
0
ashgolan
Level 8
Ashdod
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
i dont know whats the problem . its work fine !!
i dont know whats the problem . its work fine !! can anybody help ?
23.10.2019
1299
views
4
comments
0
Alex
Level 24
Sibiu
Question about the task
Shall we play?
Java Core
,
Level 6
,
Lesson 13
Resolved
The player should not display a victory message if the variable isWinnerFound is already set to true (i.e. the winner has already been found).
Any help please ? What is wrong here ? I tried to put also: if(i == 3 && !OnlineGame.isWinnerFound) { ... } and is not working. It is very annoying. package com.codegym.task.task16.task1627; import java.util.ArrayList; import java.util.List; public class Solution { public static void
22.09.2019
1491
views
4
comments
0
Abhishek Raghav
Level 1
Bangalore
Under discussion
About dark matter points
How do i increase my dark matter to get to the next level on java learning course ?
17.10.2018
1466
views
2
comments
0
Whitney
Level 14
Onalaska
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Question on loops
So I'm just a bit confused on why my loops weren't successful in their implementation. 1. I tried running a while loop for the keyboard input:while (true){ if (reader.readLine() == null){ break; } list.add(reader.readLine()); } but it was
23.10.2019
1425
views
4
comments
0
Show more
1
...
265
266
267
268
269
...
372
Please enable JavaScript to continue using this application.