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
Joy Majumdar
Level 16
Kolkata
Question about the task
In the blue depths of the stack trace…
Java Syntax
,
Level 9
,
Lesson 2
Resolved
I am calling the stacktrace length
But where is the problem ?
21.04.2019
2695
views
2
comments
0
Rizwan Ahmed Shaik
Level 2
Hyderabad
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Kindly let me know what is the error in this program?
Hello can anyone say what is the error in this program public class Solution { public static void main(String[] args) { System.out.println("Hello"); System.out.println("Hey"); System.out.println("you"); System.out.println("whatsup"); Solution.print(); So
21.04.2019
933
views
2
comments
0
Vaishnavi
Level 8
Waukesha
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Code works, but does not verify.
When I run my code, I get the right code, but when I try to verify it, it says that I got none of the 5 requirements right, even though I get the correct system output. What do I do?
21.04.2019
1536
views
1
comment
0
dean
Level 8
Deutschland
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Not verify my code
package com.codegym.task.task04.task0415; /* Rule of the triangle */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
21.04.2019
1182
views
2
comments
0
qsasdgkl
Level 17
San Diego
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Stuck on this for 2 days for some reason the last element "LOL" is not processed corretly.
Following code works great until the last element in the ArrayList "LOL", which should be duplicated as per the rules but instead it get stuck in an infinate loop and the output (including the debug output) is Current list: [love, love, lyre, LOL] Debug three LOL 3 Current list: [love, love, lyre,
21.04.2019
1346
views
4
comments
0
thisisalongname
Level 15
Spokane
Question about the task
Roy G. Biv…
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Code is not printing out colors on IDE but does on site
I've been doing the tasks in IntelliJ IDEA, and for some reason this code wouldn't print out like it does on site. When I run it on the IDE it outputs "Process finished with exit code 0". I spent a long time messing with the code thinking I had done something wrong, but when I copied it to the sites
21.04.2019
1360
views
1
comment
0
Eduardo
Level 23
Coyoacan
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
Need a hint
Hi, I can't figure out who to solve this, since I already used a constructor with two intakes, I can't duplicate it and just change parent(mother) to father. Any hints on how to work around that? or should I change that approach completely? Thanks
26.10.2018
1556
views
5
comments
0
Hafsah Jilanee
Level 10
Karachi
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
condition isn't valid
Hi, so the condtion i set isn't working for the year 3300 pls help
20.04.2019
1218
views
2
comments
0
Sanzhik
Level 2
Novoishimskiy
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
ыва
package com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { } }
20.04.2019
1160
views
1
comment
0
Patson T Lawrence
Level 8
Kampala
Question about the task
Shuffled just in time
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
english?? or ??
interpretation is the problem.
06.03.2019
1013
views
2
comments
0
Kisszol
Level 15
Toeroekbalint
Question about the task
Beer. Part 2. The recovery.
Java Core
,
Level 3
,
Lesson 2
Resolved
Esperanto - Programo funkcias sed sistemo ne akceptas, Kial ? English - Program works, but system does not accept it
Esperanto - Sistemo ne akceptas mian solvon English - System does not accept my solution
17.04.2019
1039
views
4
comments
0
Serg
Level 23
Tyumen
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Why not pass the test?
package com.codegym.task.task02.task0216; public class Solution { public static int min(int a, int b, int c) { if (a <= b && b <= c) return a; else if (b <= a && b <= c) return b; else return c; } public stati
19.04.2019
838
views
1
comment
0
Cristian Stefan
Level 4
Bucharest
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
returning minimum solution works in ide but fails on codegym
Hello, It seems that my solution fails on codegym even though it gives the right answer in IntelliJ. Can you give me some hints of what am I doing wrong ? Thank you Cristian
09.04.2019
1330
views
6
comments
0
Sobbor
Level 9
Banja Luka
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
What is wrong?
Please for help, I don't understand what is wrong, i'm getting these error messages? java.lang.NumberFormatException: Solution.java, method main, line: 17 Error converting a string to a number (invalid format). Thank you in advance!!!
19.04.2019
1049
views
3
comments
0
Jon Hjerting
Level 20
Oslo
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Response on this task does not register.
I have found that submitted tasks frequently fail to register. Normally restarting IntelliJ and resubmitting will work, but with this particular task even that fails to work. I have submitted this task several times. It passes all tests, but when I go to my task list it is still there. The task pas
25.03.2019
1498
views
1
comment
0
Myles Thompson
Level 4
Richardson
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
Says that it doesn't correspond to the task conditions.
It says "The displayed text does not correspond to the task conditions.". Any ideas? Thanks!
28.01.2019
1366
views
11
comments
0
Connor
Level 8
Boston
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
I've been at this for too many hours.
If someone could review my code and give me a few pointers that would be ~FABULOUS~
19.04.2019
1296
views
3
comments
0
Serg
Level 23
Tyumen
Question about the task
Print three times
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Why are the results displayed like this?
package com.codegym.task.task02.task0219; public class Solution { public static void print3(String s) { System.out.print(s + " " + s + " " + s + " "); } public static void main(String[] args) { print3("window"); print3("file"); } } Why does my screen disp
19.04.2019
1056
views
1
comment
0
Jeff Jeffy
Level 15
Irvine
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
I don't know whats wrong.
11.03.2019
1351
views
3
comments
0
corsi
Level 4
Furiani
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
Predictions code gym exercice
package com.codegym.task.task03.task0319; /* Predictions */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader scan = new BufferedReader(new InputStreamReader(System.in)); String name = scan.readLine();
02.04.2019
1421
views
4
comments
0
Satya Vath
Level 31
Vijayawada
Question about the task
Adapter
Java Core
,
Level 9
,
Lesson 3
Resolved
Please Help Cant Understand The Requirements
Please Help...
19.04.2019
1497
views
1
comment
0
Ram Charan Teja kaikala
Level 3
Question about the task
The required number
Java Syntax
,
Level 2
,
Lesson 5
Resolved
Comment out as many lines as possible to display the number 19(while i am running code 19 is displaying but while i am verifying it is showing error(You need to comment out as many required lines as possible and not change the rest.) what is the mistake i have done.)
public class Solution { public static void main(String[] args) { int x = 1; int y = 0; y = y + x; x = x * 2; y = y + x; x = x * 2; y = y + x; // x = x * 2; y = y + x; x = x * 2; y = y + x; System.
09.08.2018
1513
views
2
comments
0
Xubres
Level 16
Uranus
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Resolved
What's wrong?
It says it won't compile on the server but it runs fine on my computer? public class StringHelper { public static String multiply(String s) { return s.repeat(5); } public static String multiply(String s, int count) { return s.repeat(count); } public static voi
12.12.2018
2141
views
6
comments
0
Satya Vath
Level 31
Vijayawada
Question about the task
Reversing a file
Java Core
,
Level 8
,
Lesson 5
Resolved
Help
18.04.2019
1339
views
2
comments
0
Александр Олегович
Level 4
Kharkov
Question about the task
Pets need people
Java Syntax
,
Level 2
,
Lesson 5
Under discussion
What wrong with code?
public class Solution { public static void main(String[] args) { Woman woman; woman = new Woman(); Cat cat; cat = new Cat(); cat.owner=woman; Dog dog; dog = new Dog(); dog.owner=woman; Fish fish; fish = new Fish();
18.04.2019
1116
views
3
comments
0
srivani
Level 2
Question about the task
The required number
Java Syntax
,
Level 2
,
Lesson 5
Resolved
what is the solution for this?
public class Solution { public static void main(String[] args) { int x = 1; int y = 0; y = y + x; x = x * 2; y = y + x; x = x * 2; y = y + x; //x = x * 2; y = y + x; x = x * 2; y = y + x; System
24.08.2018
1892
views
13
comments
0
Paula Gregg
Level 4
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Leap year calculation conditions?
I am not able to get this to validate. (I have written this several different ways, using the help examples, and at this point I am wondering if I am not understanding the conditions at all.) Thank you
18.04.2019
1416
views
2
comments
0
Godwin
Level 10
Sango
Question about the task
18+
Java Syntax
,
Level 4
,
Lesson 6
Resolved
failed to verify on multiple occasions after several changes to the code.
I need to understand why.
18.04.2019
1142
views
3
comments
0
Kamil
Level 31
Near Warsaw
Question about the task
Counting seconds
Java Core
,
Level 6
,
Lesson 10
Resolved
Where is a mistake? Code works fine on IDEA
On IDEA works fine except process after input is still running I added System.exit(0); But it still dont make it verify.
18.04.2019
940
views
1
comment
0
// Java Poser
Level 18
Cincinnati
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Works but wont verify
Stuck on this for a couple hours now. someone please give me some insight on what i am doing wrong
28.02.2019
1403
views
14
comments
0
Show more
1
...
325
326
327
328
329
...
366
Please enable JavaScript to continue using this application.