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
arvindsid
Level 10
Chennai
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
don't understand what is wrong with the code
https://codegym.cc/quests/lectures/questsyntax.level05.lecture05 Implement the fight method Dont understand whats wrong in the below code. package com.codegym.task.task05.task0502; /* Implement the fight method */ public class Cat { public int age; public int weight; public int s
06.09.2018
2145
views
5
comments
2
Niladri pradhan
Level 33
Mumbai
Question about the task
Cats
Java Core
,
Level 4
,
Lesson 4
Under discussion
why did i get a null pointer exception
null pointer exception
14.08.2019
986
views
2
comments
0
Jason Ahn
Level 5
Calgary
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Resolved
Please help
I'm getting this error and don't know what the problem is... package com.codegym.task.task01.task0132; /* Sum of the digits of a three-digit number */ public class Solution { public static void main(String[] args) { System.out.println(sumDigitsInNumber(546)); } public st
18.12.2018
2459
views
3
comments
0
manatsu ginn
Level 28
Tokyo
Question about the task
Words with numbers
Java Core
,
Level 9
,
Lesson 11
Under discussion
doesn't ".*//d+.*" can determine whether a string contains number? please help.
package com.codegym.task.task19.task1923; import java.io.BufferedReader; import java.io.FileReader; import java.io.FileWriter; import java.io.BufferedWriter; /* Words with numbers */ public class Solution { public static void main(String[] args) throws Exception{ BufferedReader br =
20.05.2020
841
views
6
comments
0
manatsu ginn
Level 28
Tokyo
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
Please help, is there any problem with regex \\d{1,2}\\D* ?
Please help, is there any problem with regex \\d{1,2}\\D* ?
20.05.2020
586
views
4
comments
0
jajaceek
Level 23
Warszawa
Question about the task
Minesweeper (Part 12/16)
Games
,
Level 0
,
Lesson 0
Resolved
I have no idea how to solve the task.
I made several trials but nothing works. Blows there is the last trial but it also doesn't work. Any clue how to solve? // if (!gameField[y][x].isOpen){ // return; // } // else if (gameField[y][x].isFlag || gameField[y][x].isMine){ // return;
07.01.2020
1172
views
4
comments
1
Picvajzmen
Level 20
Belgrade
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Resolved
canot verify!
Cant verify and i do not know why... It says that the program does not display text on the screen, which it obviously does...
17.06.2019
1234
views
3
comments
0
Dinesh
Level 7
Delhi
Question about the task
Display right away
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
problem while running in Intellij Idea
Actually I was working on the task Sum OF 3 DIGIT NUMBERS using intellij Idea. When I finished the program and tried to run in intellij idea it moved me to the mentioned task that I had already completed through the browser rather than using IDE . But I thought it might be the cause of problem
20.05.2020
535
views
2
comments
0
Dinesh
Level 7
Delhi
Question about the task
Financial expectations
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Getting desired output but the condition is not satisfied.
Gave d as console input for the desired output
20.05.2020
584
views
2
comments
0
Show How
Level 13
Manchester
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Resolved
test is not passing please help
Only the 3rd condition is not passing after countless times of submission. Please help whats happening here. Thanks.
20.05.2020
577
views
4
comments
0
Shreyas Sadgir
Level 11
Pune
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
getting correct answer still not satisfying 4th condition
getting correct answer still not satisfying 4th condition
20.05.2020
465
views
3
comments
0
MBC
Level 14
Apeldoorn
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Sorting validation won't pass
When I test it, it works. But for some reason, it the tests don't see my sorting in desceding order method?
19.07.2019
1300
views
3
comments
0
Wes Reed
Level 10
Alexandria
Question about the task
Do we have a pair?
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Not clear on why the 3rd and 4th conditions are not passing
package com.codegym.task.task04.task0417; /* Do we have a pair? */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String reader1 = reader.readL
20.05.2020
432
views
3
comments
0
David
Level 26
Bucharest
Question about the task
Factorial
Java Core
,
Level 5
,
Lesson 12
Resolved
help
I dont know what's wrong public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int input = Integer.parseInt(reader.readLine()); reader.close(); System.o
20.05.2020
504
views
2
comments
0
Rob
Level 3
Lommel
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Resolved
No idea what is wrong with this.
Some help please.
20.05.2020
699
views
4
comments
0
David
Level 26
Bucharest
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Can anyone help me?
for (int i=1;i
06.03.2020
1150
views
6
comments
0
Tata
Level 16
Hisar, Haryana
Question about the task
Seeing dollars in your future
Java Syntax
,
Level 4
,
Lesson 10
Resolved
I just want to know why i need to assign value one to d variable twice. Please clear my doubt.
int m = 0; int d = 1; while(m<10) { while(d<10){ System.out.print("$"); d++; } System.out.print("$"); System.out.println(); m++; d=1; }
19.05.2020
631
views
4
comments
0
HaeWon Chung
Level 17
Boston
Question about the task
List of number arrays
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Why it doesn't pass?
I don't know what it doesn't verify. I checked the number of elements and also the length of each elements as well.
17.03.2020
867
views
3
comments
0
Szymon
Level 41
Warsaw
Resolved
IntelliJ - running a program.
Hey, Is it possible to run program in IntelliJ CodeGym Plugin without going for a task verification? There are many times when i just want to check if my code compiles.
18.05.2020
522
views
3
comments
0
Arnold Cytrowski
Level 29
Breslau
Question about the task
Chat (part 11)
Java Multithreading
,
Level 6
,
Lesson 15
Resolved
I tried so many times but i can't pass validation (the programm ran too long error)
Someone can give me some advice or golden solution? I need this to past to next task.
20.05.2020
352
views
1
comment
0
manatsu ginn
Level 28
Tokyo
Resolved
IntelliJ IDEA hang up after installing plugin CodeGymIdeaPlugin.jar and click any of the six buttons.
IntelliJ IDEA hang up after installing plugin CodeGymIdeaPlugin.jar and click any of the six buttons.
13.04.2020
974
views
1
comment
0
Mike
Level 9
Lublin
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
Can't pass 3rd requirement?? :) I have only one method --> main()
Hello. Can't pass 3rd requirement?? :) I have only one method --> main() The code works fine :) Please help me :D
29.04.2020
1140
views
3
comments
0
Talia Mullen-Humphreys
Level 11
Radcliffe
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Why does this not work?
I can't seem to spot my error.
17.05.2020
615
views
4
comments
0
Anjan
Level 13
Indianapolis
Question about the task
More Sam-I-Am
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
whats wrong in this code?
this is my output [Sam, Ham, I, Ham, Am, Ham]
18.05.2020
623
views
3
comments
0
LucGar
Level 22
Bilbao
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
why it does not work?
I think I've tried everything and it still doesn't work that is wrong in my code?
05.01.2020
805
views
5
comments
0
Vadim
Level 8
Hounslow
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Somebody can explain to me how this code is working?
public class Solution { public static int even; public static int odd; public static void main(String[] args) throws IOException { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(reade
12.05.2020
873
views
10
comments
0
Michaela Obertova
Level 30
Palo Alto
Question about the task
2048 (Part 6/18)
Games
,
Level 0
,
Lesson 2
Under discussion
Second to last condition?
Hi, for some reason the code keeps failing on the second to last condition. Could someone please help? Thanks
17.05.2020
561
views
3
comments
0
Talia Mullen-Humphreys
Level 11
Radcliffe
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Not quite sure why this doesn't work.
I can't seem to spot my mistake.
19.05.2020
727
views
2
comments
0
Alexandre Lalancette
Level 41
Quebec
Question about the task
Stairs
Java Collections
,
Level 9
,
Lesson 9
Under discussion
What is wrong with that linear thing??
What is wrong with that linear thing??
17.02.2020
852
views
1
comment
0
Abe
Level 41
Salt Lake City
Question about the task
Stairs
Java Collections
,
Level 9
,
Lesson 9
Under discussion
Any help? I think my solution meets the criteria
I believe this solution does run in a linear fashion, 1 additional calculation for each step added. But I can not get this task to pass the last criteria. Any help?
06.12.2019
1077
views
1
comment
0
Show more
1
...
190
191
192
193
194
...
372
Please enable JavaScript to continue using this application.