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
taehee Im
Level 2
Kuri
Under discussion
Korean language support is not available.
Korean language support is not available from level 2. What happened?
1/25/21
792
views
0
comments
0
Seth Barker
Level 5
Eureka Springs
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Stopping run & not sure what is wrong with code
Couple of things going on. When I'm running the Solution in IntelliJ, nothing is showing up in the build for this task. I have to "stop" the build. Also - I'm not sure what's wrong with the code: package com.codegym.task.task04.task0415; /* Rule of the triangle */ import java.io.*; public
1/23/21
599
views
2
comments
0
zub
Level 41
Milan
Question about the task
MovieFactory
Java Core
,
Level 4
,
Lesson 8
Resolved
Where am I going wrong?
Any help is appreciated.
1/24/21
638
views
2
comments
0
Anitamalina
Level 18
København
Question about the task
Cat counter
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
What am I doing wrong here?
What am I doing wrong here?
10/22/20
702
views
2
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Working with dates
Java Syntax
,
Level 8
,
Lesson 11
Resolved
passed testing, but wrong output
I passed the test with this code but in the Conditions example it returns "true" for January 1 2000. My code returns "false". I am confused again. Did I solve the task right or not? public class Solution { public static void main(String[] args) throws ParseException { System.out.println
1/23/21
851
views
4
comments
0
Dinesh
Level 7
Delhi
Under discussion
See my odd num condition line 22 what is wrong in this
import java.io.*; class NumOfDigits{ public static void main(String[]args)throws IOException{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(reader.readLine()); int count=0; if(num>0 && num<1000) while(num!=0){
1/24/21
485
views
1
comment
0
Dinesh
Level 7
Delhi
Under discussion
How to do this?
Want to print the value of line no.16 On line no 11.. public class BodyHome { int a; int b; public static void main(String[] args){ System.out.print("1"); pi(); System.out.print(); } public static double pi(){ return 3.14; } }
1/24/21
539
views
1
comment
0
Dinesh
Level 7
Delhi
Under discussion
Storing value in array and iterate
How to store Values Num1, Num2 and Num3 in array and how to iterate over them using for loop PLEASE DO NOT USE SCANNER import java.io.*; public class PosNeg { public static void main(String[] args) throws Exception { int count = 0; BufferedReader reader = new Buffe
1/23/21
661
views
1
comment
0
yesnoyes
Level 5
Riga
Question about the task
Max constructors
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
whats the problem and why?
package com.codegym.task.task05.task0522; /* Max constructors */ public class Circle { public double x; public double y; public double radius; public Circle(double x, double y, double radius) { this.x = x; this.y = y; this.radius = radius; } public Circle(double x, doubl
11/15/20
681
views
3
comments
0
Majiroghene Okrikri
Level 7
Brandon
Question about the task
Max constructors
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
Dont know why its not verifying the last reqirement
Dont know why its not verifying the last reqirement
11/6/20
587
views
4
comments
0
Shadow
Level 7
Hogsmead
Question about the task
Creating cats
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
Helppp!!!!!!
whats the bug???
9/22/20
650
views
2
comments
0
Cristian
Level 16
Bucharest
Question about the task
You can't buy friends
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
I can't understand what is wrong in my code. Thank you!
package com.codegym.task.task05.task0516; /* You can't buy friends */ public class Friend { String name; int age; char sex; public Friend(String name) { this.name = name; } public Friend(String folder, int age) { this.name = name; this.age = age; }
9/16/19
1605
views
8
comments
0
Daniel Whyte
Level 17
Question about the task
Cat and Dog objects: 50,000 each
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Cat cat = newCat;
This might be obvious but how come the machine can create 50k objects all called cat. Would it not need a different name for each object in order for them to exist as references.
1/23/21
540
views
1
comment
0
Oliver Heintz
Level 18
Mustang
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Resolved
I think I'm close!
I've been scouring the internet for hours trying to piece this one together. My code feels sloppy, I'm exhausted, and I know it has to do something with the alert(String value) method. Can someone prod me in the right direction? I feel so freakin' stupid.
1/21/21
716
views
5
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Animal set
Java Syntax
,
Level 8
,
Lesson 11
Resolved
confusing output
I tried different ways to solve the task but I always got a weird output. When I hit the validation button, I passed the task -.- Is still don't understand the output: I created 4 cats and 3 dogs (=7) and put them into a set. After that I deleted the 4 cats, so there should be just 3 objects!? But
1/22/21
953
views
6
comments
0
Dmitri
Level 22
Seversk
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Resolved
I don't know what is wrong here. Do you have an idea?
Code is working ok.
1/22/21
495
views
2
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Minesweeper (Part 5/16)
Games
,
Level 0
,
Lesson 0
Resolved
Where is the main() to run the program
I can't find the main() method to be able to run the game. Do we have to add it ourselves? Tried but that didn't work. So how to get the game to run?
1/22/21
702
views
1
comment
0
chan kenneth
Level 7
Hong Kong
Under discussion
I have encountered the problem with the use of intelliJ idea
Dear administrator, I have been happy using the code gym to learn some basic coding. hoping to step up gradually. But one thing troubled me recently is that when i use intelliJ idea to finish my task, I cannot run the current program.Instead, it keeps running the old program that calculate the pro
1/22/21
563
views
1
comment
0
Dmitri
Level 22
Seversk
Question about the task
Building a file
Java Core
,
Level 8
,
Lesson 11
Resolved
What the validator does not like here?
Actually, code is working pretty fine
1/20/21
782
views
18
comments
0
Yusuf Tanko
Level 3
Sokoto
Question about the task
Hello, StarCraft!
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Why this not run
Please what is problem of this code?
10/6/20
866
views
4
comments
0
Kasia
Level 22
Zabrze
Question about the task
Yet another adapter
Java Core
,
Level 9
,
Lesson 3
Resolved
The last conditions not meet
Hi, according to the validator there is a problem with reading the first, middle and last name and storing it int the Person object. I tried to play with different configurations but without any luck. Any help appreciated ^^
1/21/21
835
views
4
comments
0
Maryem Vickers
Level 7
HT...
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Hello there--Can I please have some help here?!
I have tried everything and nothing seems to work. I keep getting confusing errors every time. Can I please have some help?! I don't see what's wrong. Error: NullPointerException(java:28) //I also had errors on lines 27-29. Thank you!
1/18/21
914
views
5
comments
0
hidden #10703795
Level 4
Question about the task
CodeGym. Learn once - use anywhere
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
Why can't i use string.repeat()??
i guess it's possible in java 11. why it:s showing error?
1/21/21
602
views
1
comment
0
towelie8
Level 1
Darmstadt
Question about the task
Let's hire a translator
Java Core
,
Level 3
,
Lesson 4
Under discussion
I need help
It shows the correct text, "I translate from Russian". But the requirements are still not met.
9/4/20
583
views
0
comments
0
LennyMan
Level 25
Lucca
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Under discussion
The for{} with continue statement
Could someone please explain to me how this part of the code works? So i guess when the program reach the continue; statement , the program jump to the line (result.add(gameField[y][x]);). But why there are 3 if() ?? Basically if just one of the 3 if statement its true the program run the result.a
12/26/20
628
views
2
comments
0
Nobody
Level 37
Seattle
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
Do i misunderstanding something here ?
Can not get the right result, or more precisely can not pass verification I check it and everything run just fine. even check the all armstrong number in long range which mean that it has most 19 number on http://mathworld.wolfram.com/NarcissisticNumber.html and for long range it have 51 number but
5/26/19
2005
views
6
comments
0
Mohammed Amine EL AMRANI
Level 11
Rabat
Question about the task
Safe retrieval from a list
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Who can explain me the question i didnt get it
Hello, Who can explain me the question i didnt get it need an exemple for this Safe removal from a list Create a list of integers. Enter 20 integers from the keyboard. Create a method to safely remove numbers from the list: int safeGetElement(ArrayList list, int index, int defaultValue) The met
1/20/19
1476
views
3
comments
0
Jordan Zebouni
Level 25
Jacksonville
Question about the task
Take your turn!
Java Core
,
Level 6
,
Lesson 13
Under discussion
Why is my task not passing?
Is it that I am building one string?
11/18/20
574
views
3
comments
0
Radek
Level 22
Warsaw
Question about the task
The early bird gets the worm
Java Core
,
Level 6
,
Lesson 13
Under discussion
Help, please.
I am trying to solve this task but program cannot finish normal way - after result id displayed, it need additional inputs to close reader and Exception is thrown in one of threads. Can you give me some hint?
11/9/18
2030
views
7
comments
1
Maxine Hammett
Level 19
San Diego
Question about the task
Even numbers
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
Not finishing final task although program writes numbers
My code doesn't pass the "The program should display even numbers...". I'm not sure why because the output is from 2 through 100;
6/15/20
1016
views
7
comments
0
Show more
1
...
93
94
95
96
97
...
374
Please enable JavaScript to continue using this application.