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
Richard Caputo
Level 16
United States of America
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Anyone wanna help??
It seems right to me...
9/9/21
666
views
3
comments
0
Daniel
Level 4
Zagreb
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Validation problem
This is the code, I'm not sure what's wrong: BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(br.readLine()); System.out.println(a<0 ? a+1 : a*a);
9/22/21
684
views
3
comments
0
Real McCoy
Level 22
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Resolved
Assistance Please...
Could someone give me some guidance on this? This is my second crack at this and I cant seem to get the last requirement to pass. I've tested with a stub wordsearch in every direction described in the conditions and the solution passes...not sure what im missing...
9/22/21
825
views
11
comments
0
Greg Martel
Level 5
Question about the task
Labels and numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
Variable declaration not allowed here...
I reviewed my lessons on declaring String variables, yet I cannot understand why I am unable to declare String variables in my "if" statements. Thanks so much for your help!
9/23/21
1957
views
3
comments
0
scriptKing
Level 7
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
can someone give me a hint here i believe this is working but not to the exact perameters
package com.codegym.task.task05.task0532; import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum = 0;
9/22/21
658
views
3
comments
0
Radames Sanchez
Level 5
Las Vegas
Question about the task
Labels and numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
Did it exactly the same way as the others, compiler goes off.
Any advice?
11/9/19
1827
views
8
comments
1
Justin Smith
Level 41
Greenfield, USA
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
"Be sure that the size of the allPeople list does not change when a person's data is deleted."
I don't understand this at all. When you remove something from an ArrayList, the size of the ArrayList is going to go down. What exactly is it asking me to do?
9/23/21
1380
views
1
comment
0
The Chief
Level 18
Question about the task
Encryption
Java Core
,
Level 8
,
Lesson 11
Resolved
Why am I not getting the encryption requirement?
The encryption requirement is the only one I'm not getting and I don't know why. Please help.
9/19/21
492
views
4
comments
0
Dawid
Level 28
Question about the task
Charting our own course
Java Multithreading
,
Level 5
,
Lesson 9
Resolved
Each message should be on a new line
You don't need to look at the main method, it is for testing purposes. The code of the actual method does not pass the final stage of verification, stating that each message should start on a new line. Well, this is what is happening. I just want to know if there is something not right with my code,
9/22/21
616
views
1
comment
0
Usha Mathivanan
Level 15
CHENNAI
Question about the task
MovieFactory
Java Core
,
Level 4
,
Lesson 8
Resolved
Pls help me ! Last 3 conditions are not satisfied.
OUTPUT: Cartoon Thriller SoapOpera java.lang.NullPointerException at com.codegym.task.task14.task1414.Solution$MovieFactory.getMovie(Solution.java:45) at com.codegym.task.task14.task1414.Solution.main(Solution.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect
6/30/20
1076
views
3
comments
1
Onar D.
Level 7
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Resolved
code is working but the task the last condition is not valid
why or what wrong with code?
9/18/21
897
views
2
comments
1
Saurabh Nair
Level 2
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Failing : The min method must return the minimum of the numbers a, b, and c
Hi, I am being failed by the system when verifying the below code for requirement - The min method must return the minimum of the numbers a, b, and c. My result is 1 -3 3 5 I am unsure of where am I wrong in this. Arguments in the min function was pre-populated for the task. Thank you.
5/25/21
1064
views
11
comments
1
Angel Stefan
Level 23
Sibiu
Question about the task
Minesweeper (Part 5/16)
Games
,
Level 0
,
Lesson 0
Under discussion
for part.04!
I pass this part(04) but i don't understand why we need to write in createObject() : gameField[x][y] = new GameObject(y, x); Why not (x, y)??? Why we not pass first the row(x) and second, the column(y)? Tk you! Ps: i ask this question because i failed many times with =new GameObject(x, y);
9/21/21
726
views
1
comment
0
Szpaneryk
Level 13
Bialystok
Question about the task
Snake (Part 18/20)
Games
,
Level 0
,
Lesson 1
Resolved
I need help with setDirection
Why my code doesnt pass the test, wheres the mistake?
9/20/21
568
views
3
comments
0
Angel Stefan
Level 23
Sibiu
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Resolved
I don' t understand the abs()!
Hello, i finish the task but i don't understand how abs works: abs(a<0) return -a, so "minus a" become a positive number!? How? Let say if(-2<0) return -2; =》 become 2 ??? On the other hand if(a<0) return ((-a)*(-a)); =》a
9/18/21
868
views
4
comments
0
Gellert Varga
Level 23
Szekesfehervar
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Resolved
Does anyone know the hidden CG requirements for this task?
Is it possible that CG is deliberately hiding some details of their requirements? I mean how to count the words "world" exactly. CG says the words are separated by punctuation marks, but I still see some unclear circumstances. E.g. if it is included in the file: "world'abcd(world!worldly,worlds;"
9/21/21
578
views
9
comments
0
Matt
Level 1
United States of America
Question about the task
Snake (Part 2/20)
Games
,
Level 0
,
Lesson 1
Resolved
Why wont this compile!!
Can someone please tell me why this wont compile? ;(
9/21/21
634
views
1
comment
2
Arjun Kiruthivasan
Level 14
Chennai
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
where am i done mistake?
please comment me a solution!!
9/19/18
2391
views
7
comments
0
Alan
Level 8
montreal
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Resolved
man.wife = new Woman();-------woman.husband = new Man();------ dont know whats wrong ???
man.wife = new Woman(); woman.husband = new Man();
9/11/21
733
views
2
comments
0
Gellert Varga
Level 23
Szekesfehervar
Question about the task
Even characters
Java Core
,
Level 9
,
Lesson 5
Resolved
try block without catch block - ?
I saw the following in the downloaded CG correct solution: They put all the Reader/Writer object creations in try blocks. There were several try blocks. But there was not a single catch block anywhere. And the IO-objects were not closed with close() method. How does this thing work? Is it better
9/19/21
671
views
5
comments
0
Richard Caputo
Level 16
United States of America
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Resolved
Can anyone tell me what's wrong?
the output seems correct
9/16/21
792
views
1
comment
0
Radames Sanchez
Level 5
Las Vegas
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What's wrong with my code? Last requirement is not met (?)
All requirements are met, right(?) Am I missing something?
10/29/19
1675
views
4
comments
0
Tessa Podbury
Level 18
Melbourne
Question about the task
Factory method pattern
Java Core
,
Level 6
,
Lesson 13
Under discussion
Last condition
Hey guys, confused because as far as I can tell, if null is passed it will revert to default in switch? Thanks!
6/9/20
810
views
3
comments
0
Erik
Level 2
Allentown
Question about the task
Calculate the circumference of a circle
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Saying error on the first letter of radius why?????
package com.codegym.task.task01.task0129; /* Calculate the circumference of a circle */ public class Solution { public static void main(String[] args) { printCircleCircumference(5); double pi = 3.14; double C = 2*pi*radius; System.out.println(C); } pu
10/30/18
2008
views
7
comments
0
Velociraptor
Level 3
Bangalore
Question about the task
Calculate the circumference of a circle
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
guys the first condition is not satisfied can you please help me??
this is my code package com.codegym.task.task01.task0129; /* Calculate the circumference of a circle */ public class Solution { public static void main(String[] args) { printCircleCircumference(5); double pi = 3.14; printCircleCircumference(2 * 314* 5); } pu
7/24/20
1206
views
4
comments
1
Richard Caputo
Level 16
United States of America
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Why is this not working??
this condition is not passing: The program should display the maximum of the N entered numbers.
9/8/21
499
views
2
comments
0
Richard Caputo
Level 16
United States of America
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Anyone wanna tell me what I'm doing wrong here?
The code works as instructed (as far as I can tell)...
9/11/21
543
views
1
comment
0
Richard Caputo
Level 16
United States of America
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Got the output correct, but the method is confusing
Any suggestions on how to move the loops to the printList method?
9/12/21
1012
views
1
comment
0
Richard Caputo
Level 16
United States of America
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Anyone??
The output is correct... isn't it?
9/12/21
579
views
2
comments
0
Greg Martel
Level 5
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
What gives?
I've been racking my head for 30 minutes trying to find a combination which fails this Solution. Could someone please give me a hint as to where I went wrong? Thanks so much!
9/16/21
514
views
2
comments
0
Show more
1
...
60
61
62
63
64
...
374
Please enable JavaScript to continue using this application.