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
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));
4/21/19
1503
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,
4/21/19
1712
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
4/21/19
1682
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
10/26/18
1924
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
4/20/19
1493
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) { } }
4/20/19
1445
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.
3/6/19
1296
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
4/17/19
1295
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
4/19/19
1124
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
4/9/19
1645
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!!!
4/19/19
1527
views
3
comments
0
Jon Hjerting
Level 1
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
3/25/19
1843
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!
1/28/19
1803
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~
4/19/19
1697
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
4/19/19
1373
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.
3/11/19
1676
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();
4/2/19
1784
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...
4/19/19
1821
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.
8/9/18
1765
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/18
2643
views
6
comments
0
Satya Vath
Level 31
Vijayawada
Question about the task
Reversing a file
Java Core
,
Level 8
,
Lesson 5
Resolved
Help
4/18/19
1674
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();
4/18/19
1484
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
8/24/18
2555
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
4/18/19
1760
views
2
comments
0
Godwin
Level 14
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.
4/18/19
1447
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.
4/18/19
1216
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
2/28/19
1836
views
14
comments
0
Serg
Level 23
Tyumen
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Why are strings displayed in this way?
It would be logical and correct if the lines were displayed in the following way: Java is easy to learn! Java opens many opportunities! Java is easy to learn! Java opens many opportunities! Java is easy to learn! Java opens many opportunities! Java is easy to learn! Java opens many opportunities! Be
4/17/19
1400
views
3
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Archived
i dont understand how its not satisfying the 3rd and 4th condition
help appriciated
4/17/19
1502
views
3
comments
0
Lex Medeiros
Level 18
San Jose
Question about the task
Method in a try-catch
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Be sure that after text is read in that the program displays all previously entered numbers, each number on a new line and in the same order that they were entered.
Could someone tell me what I am doing wrong? I am outputting the ArrayList items in a new line.
4/15/19
1805
views
2
comments
0
Show more
1
...
333
334
335
336
337
...
374
Please enable JavaScript to continue using this application.