Promotion
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
scriptKing
Level 7
Question about the task
ConsoleReader class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
I wrote this out but i dont really understand what im doing can someone explain this a bit better to me?
package com.codegym.task.task06.task0610; import java.io.BufferedReader; import java.io.InputStreamReader; /* ConsoleReader class */ public class ConsoleReader { public static String readString() throws Exception { //write your code here BufferedReader reader = new Buffer
23.09.2021
453
views
1
comment
0
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...
09.09.2021
443
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);
22.09.2021
422
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...
22.09.2021
441
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!
23.09.2021
1620
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;
22.09.2021
443
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?
09.11.2019
1422
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?
23.09.2021
1015
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.
19.09.2021
312
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,
22.09.2021
450
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
30.06.2020
743
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?
18.09.2021
647
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.
25.05.2021
787
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);
21.09.2021
480
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?
20.09.2021
309
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
18.09.2021
554
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;"
21.09.2021
356
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? ;(
21.09.2021
412
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!!
19.09.2018
1866
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();
11.09.2021
497
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
19.09.2021
417
views
5
comments
0
hidden #10523504
Level 4
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
Why does Apple.applePrice = applePrice + applePrice; equal to 200 but Apple.applePrice + applePrice equals 150?
Struggling to get this..... Why does "Apple.applePrice = applePrice + applePrice" equal to 200 but "Apple.applePrice + applePrice" equals 150?
10.09.2019
2069
views
6
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
16.09.2021
524
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?
29.10.2019
1357
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!
09.06.2020
614
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
30.10.2018
1632
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
24.07.2020
927
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.
08.09.2021
330
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)...
11.09.2021
337
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?
12.09.2021
781
views
1
comment
0
Show more
1
...
51
52
53
54
55
...
366
Please enable JavaScript to continue using this application.