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
David
Level 26
Bucharest
Question about the task
The richest
Java Core
,
Level 9
,
Lesson 11
Resolved
Help!!
Can't figure whats wrong.
7/6/20
1143
views
5
comments
0
slyyx
Level 15
New York City
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Conditions are met, but it says they aren't
Maybe I'm misunderstanding the requirements, but I was confident that I had found a solution.
7/8/20
729
views
1
comment
0
DeZilius
Level 27
Warsaw
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
I cannot find error
Hello! Maybe some one will be able to find mistake that I cannot see myself. First I read all the lines from file, then I replace every sign of new line '\n' with space. Next I enter double for loop. In first loop I check if words[i] is not null, then I assing value to first word in pair. Finally
4/21/20
1131
views
1
comment
0
fifi deng
Level 22
Paris
Question about the task
Four mistakes
Java Core
,
Level 3
,
Lesson 2
Under discussion
confused,totally
xx
7/5/20
1026
views
2
comments
0
Goran
Level 41
Belgrade
Question about the task
Time for 10,000 get calls
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Need clarification for part of code, not solution
public static void get10000(List list) { if (list.isEmpty()) return; int x = list.size() / 2; for (int i = 0; i < 10000; i++) { list.get(x); } } Can some one explain what is purpose of int x = list.size()/2; ? If i understand it correctly it wil
3/4/20
1333
views
3
comments
1
Jason
Level 26
Rancho Cucamonga
Question about the task
Reading and writing to a file: CodeGym
Java Core
,
Level 10
,
Lesson 2
Resolved
I've been stuck on this for ages now.... Please help getting "Check why exception occures in the save/load methods."
So this "clue" from the mentor does absolutely no good at helping me out. I haven't a clue what to do and I've been reading like crazy to try to figure this out and I all I keep reading everywhere is that it is 1000x easier and safer and better to just use serialization.... please help. Thanks in ad
11/26/19
1901
views
6
comments
1
Jeanne Vo
Level 22
Olympia
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Where could I fix the problem?
Someone please tell me.
6/30/20
863
views
5
comments
0
Seferi
Level 22
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Can someone help please..
What should I do?
6/28/20
886
views
1
comment
0
Jakhongir Ruziev
Level 23
Tashkent
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Resolved
It is not passing this test: The displayClosestToTen method should display a number on the screen in accordance with the task conditions. Can someone help with this please🙏
public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { if (abs(10-a)
4/2/20
1339
views
2
comments
0
holybible
Level 28
Plovdiv
Question about the task
Reading and writing to a file: Human
Java Core
,
Level 10
,
Lesson 2
Resolved
I do not really understand what the secod requirement wants
Any help/hints are welcome
9/14/19
1652
views
3
comments
3
David
Level 26
Bucharest
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
Why do I get this output?
This as23dds asd twelve 23 twelve34 file file Asds we four twelve 1990 file vifourew Ssd WD one nine 2020 file view In ZX2 EW eleven 28 1998 file in in Bns afef two two3 1999 file file file Ss2d sef sd six ten 1995 in view Asds four 19 1992 in in Asd3s seven 1seven 2012 view view
7/7/20
860
views
4
comments
0
Tata
Level 16
Hisar, Haryana
Question about the task
Method in a try-catch
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
could anyone clear my doubt...
why here i can't use for loop instead of while. while(true){ int a = Integer.parseInt(reader.readLine());
7/7/20
684
views
2
comments
0
Randall John
Level 19
San Jose
Question about the task
Shall we play?
Java Core
,
Level 6
,
Lesson 13
Under discussion
When i run the code it works but it says I have an infinite loop when trying to verify O.O
Help please!!
7/5/20
535
views
1
comment
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Vowels and consonants
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
What is wrong with my code?
for String a = "sefeg." console output: e e s f g .
1/25/19
1622
views
6
comments
0
Seferi
Level 22
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Resolved
Have been trying for days.. Can't figure it out...
Help is greatly appreciated!
7/6/20
657
views
1
comment
0
Angel Stefan Arjoca
Level 26
Bucharest
Question about the task
Currencies
Java Core
,
Level 4
,
Lesson 8
Resolved
from allMoney.add()... ???🤷♂️
Any hint, pls!? Tk you!
7/6/20
745
views
2
comments
0
Ntuthuko Xaba
Level 18
Johannesburg
Question about the task
Encryption
Java Core
,
Level 8
,
Lesson 11
Under discussion
No idea what to do!
Guys I need help.
5/22/20
855
views
2
comments
0
SammyGammy
Level 4
Chico
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I keep failing the last requirement and I dont know why.
I have passed all of the other requirements and I get the right outcome. This seems to happen with all of my tasks and it sucks.
7/7/20
544
views
1
comment
0
Agata
Level 20
Warsaw
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Resolved
I don't meet last 4 requirements, please help me :)
What does it mean that hens must be in separate files? I thought it means separate classes getMonthlyEggCount must return int... It does... When i print it everything looks ok so I can't figure out where the mistake is.
5/25/20
1125
views
3
comments
0
SammyGammy
Level 4
Chico
Question about the task
Financial expectations
Java Syntax
,
Level 3
,
Lesson 12
Resolved
Why am I getting 49?
I beleive that everything else is correct, but for some reason I keep getting 49 instead of 100. If someone could help me fix it and also explain why it is like that. That would be so helpful. Im sure it is just some more realistic goals, but I dont think that Java takes that into account. lol I hav
7/6/20
864
views
6
comments
0
SammyGammy
Level 4
Chico
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I get the correct numbers, but it still doesnt work?
I am not sure what I am missing.
7/7/20
519
views
1
comment
0
Yip Mun Allen
Level 8
London
Question about the task
Cat and statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Infinite Loop?
Why does this create an infinite loop if the condition is stated?
1/28/20
1534
views
7
comments
0
Abhilash Ravichandran
Level 10
Kigali
Question about the task
Who called me?
Java Syntax
,
Level 9
,
Lesson 2
Resolved
Return the line number of the code from which it was called?
What am I asked to do?
11/3/18
2343
views
4
comments
0
Edddieg
Level 15
Providence
Question about the task
Animal set
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
please explain
can someone please explain this to me ... I solved it but can't understand it... thank you
7/4/20
512
views
0
comments
0
SammyGammy
Level 4
Chico
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
What do I do?
I do not know why this is not working. I feel like I have the code right, but it shows up with an error everytime. error: cannot find symbol symbol: method readline() location: variable reader of type java.io.BufferedReader. file com/codegym/task/task03/task0319/Solution.java, line 14, position 30
7/6/20
628
views
2
comments
0
BlueJavaBanana
Level 37
Question about the task
Build a WHERE query
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
Can someone please post the specific instructions for this task?
The task instructions are very ambiguous. Could someone please tell me EXACTLY what the task requires? The Map params - does it contain two parameters per ? Or are the parameters for the query ONLY in the value not the key ? Thanks in advance.
7/6/20
819
views
4
comments
0
Denis
Level 22
Kharkiv
Question about the task
Returning a stack trace
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
give me the solution. pls
only solutoin pls
6/20/19
2001
views
4
comments
1
Angus McDonald
Level 5
Sydney
Question about the task
Hippodrome (part 6)
Java Multithreading
,
Level 1
,
Lesson 16
Resolved
Something not right..
Hi everyone.. I've tried a number of variations on the below but can't seem to get it working. For example, I've tried using all kinds of constructed 'game' variables.. to no effect. I've created an empty constructor with no parameters and used in Main Method.. to no effect. I've tried a couple dif
7/6/20
576
views
2
comments
0
Sindhura
Level 15
Delhi
Question about the task
We're all friends here, even the exceptions
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
what is wrong with his-declared two checked and two unchecked but still not verifying
package com.codegym.task.task09.task0918; /* We're all friends here, even the exceptions */ import java.io.*; public class Solution { public static void main(String[] args) { } static class MyException extends Exception { public void test(){ try{
10/10/18
2726
views
6
comments
0
Henk
Level 19
Pretoria
Question about the task
Cats
Java Core
,
Level 4
,
Lesson 4
Resolved
why does THIS work, but THIS does not ?
Did not work: ----------------- BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); while (true){ if (reader.readLine().equals(" ")){ break; } Cat cat = CatFactory.getCatByKey(reader.readLine());
5/17/19
1725
views
2
comments
1
Show more
1
...
172
173
174
175
176
...
374
Please enable JavaScript to continue using this application.