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
Cristian
Level 16
Bucharest
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Under discussion
What's wrong with my code? Thank you very much!
package com.codegym.task.task14.task1420; import java.io.*; /* GCD */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(reader.readLine
5/24/21
576
views
2
comments
0
hacks patel
Level 20
Ahmedabad
Question about the task
Whether it's a bird or a lamp
Java Core
,
Level 2
,
Lesson 2
Under discussion
Don't know , what's wrong with it?
plz help and give solution...
3/23/19
2329
views
10
comments
0
Zach
Level 22
Fort Collins
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Under discussion
Second Condition not passing
package com.codegym.task.task14.task1420; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* GCD */ public class Solution { public static void main(String[] args) throws Exception { // create reader BufferedReader reader
5/22/21
705
views
1
comment
0
Yuchen
Level 17
Los Angeles
Question about the task
OOP: The Euro is money too
Java Core
,
Level 5
,
Lesson 12
Under discussion
Please help me to work this out!
the third condition keeps failing. Please point out what is wrong with it?
7/30/19
1825
views
6
comments
0
TJ Wize
Level 19
Houston
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Under discussion
Not sure where I'm going wrong
I can't tell where I am getting it wrong. I have tried maybe 20 different ways to read, convert, and write the values. Please help.
5/22/21
545
views
1
comment
0
srikanth
Level 10
Bangalore
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
one and only one condition is not getting executed ,can any one tell where is the problem?
where is the mistake?
1/23/19
2130
views
10
comments
0
Maxim Raitin
Level 20
Tomsk
Question about the task
OOP: Books
Java Core
,
Level 5
,
Lesson 2
Resolved
It works but doesn't compile
Hello! It shows correctly result in IDE. Why CodeGym doesn't accept it?
5/13/21
826
views
10
comments
0
Edward Rickers
Level 15
Washington
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
Giving me fails on all the tasks. Code seems to work with all situations
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { // program reads numbers from keyboard BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int neg = 0; int pos = 0;
5/20/21
764
views
2
comments
0
Joseph Bonhomme
Level 1
Rockville
Under discussion
Why can't I continue Tasks?
Im currently locked out of level 1 lesson 5 and I don't know why. I completed all of my previous tasks and I paid for premium so why can't I do this task?
5/17/21
535
views
0
comments
0
Vladyslav Korol
Level 16
Coral Springs
Question about the task
Horse racing
Java Core
,
Level 6
,
Lesson 5
Under discussion
Why is last condition not satisfied
5/20/21
568
views
1
comment
0
Andrei
Level 41
Question about the task
This weird BigDecimal
Java Multithreading
,
Level 9
,
Lesson 9
Under discussion
Why does passing the number to the constructor as String does not generate a lot of decimals?
If I pass just v1 and v2 to their respective constructors the result is 2.3000000000000000000000000000000000000000032342 something like this. But if I transform the argument into a string, for both constructors, then the result is 2.3. Where does this come from? public class Solution { publi
5/21/21
693
views
4
comments
0
- FniJnn -
Level 33
Paris
Question about the task
Autoboxing features
Java Multithreading
,
Level 9
,
Lesson 5
Under discussion
how ?
Help me please my brain is dead
3/19/20
1428
views
5
comments
0
Libby
Level 2
Question about the task
MovieFactory
Java Core
,
Level 4
,
Lesson 8
Resolved
Last three conditions not met.
I don't understand exactly what has to be done here. any help will be appreciated.
5/12/21
495
views
2
comments
0
Asia
Level 19
Bydgoszcz
Question about the task
Vowels and consonants
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
What is wrong? Forth requirement
I like my solution, but not passing 4th requirement, anyone can tell me why do? Looked up their solution and it seems much more complicated.
5/19/21
499
views
2
comments
0
dplaza2394
Level 2
Manassas
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Under discussion
not a question; more so a suggestion
The story above the task goes through explaining a lot about the difference between System.out.println and System.out.print methods. I feel like this corresponding exercise would be a lot more helpful if one of the constituents for success was that you needed to have at least one System.out.print st
5/19/21
613
views
0
comments
0
Andrei
Level 41
Question about the task
Mastering Callable
Java Multithreading
,
Level 8
,
Lesson 10
Resolved
What are arbitrarily long numbers and why do they use BigInteger?
public static Callable getTask(final int i) { return new Callable() { @Override public String call() throws Exception { BigInteger sum = BigInteger.ZERO; for (int j = 1; j <= i; j++){ sum = sum.add(BigInteger.
5/18/21
834
views
2
comments
0
Josephine
Level 1
Normal
Question about the task
MVC (part 2)
Java Multithreading
,
Level 4
,
Lesson 14
Resolved
why the controller class is throwing an error?Please help
class, interface, or enum expected. file com/codegym/task/task36/task3608/big02/controller/Controller.java, line 2, position 60
5/18/21
617
views
5
comments
0
ImDevin
Level 15
Old Town
Resolved
no output in intellij
Currently on task 0905. People have posted that they get stackTraceDepth of 3 in intellij, but there is no output when I run the code in intellij. When I run the same code in CG, I do get output of 12 like others have gotten. Anyone know why intellij is not showing any output? thx for the repl
5/6/21
870
views
2
comments
0
Dmitri
Level 22
Seversk
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Archived
my code works as described
My code works as described in the task. What is wrong?
3/24/21
730
views
5
comments
0
Yusuf el Turki
Level 5
Rhein
Under discussion
What is the solution ?
I have the right answer got. But i dont understand why i get these Problem ? public class Solution { public static int min(int a, int b, int c, int d) { //write your code here int min; if (a<=b && a<=c && a<=d) min = a;
5/18/21
483
views
2
comments
0
John
Level 17
Mansfield
Question about the task
Minimum and Maximum
Java Core
,
Level 1
,
Lesson 11
Under discussion
Failed in last condition
I made a copy of the passed array to avoid modifying the original one but still don't pass the last requirements
5/17/21
833
views
16
comments
0
Nehal Abubakar
Level 7
Karachi
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Help me out plzzz
Help me out with the solution plzzz
8/10/18
2957
views
10
comments
0
Andrei
Level 41
Question about the task
Thread priorities
Java Multithreading
,
Level 8
,
Lesson 6
Resolved
Why is it starting numbering from 3, for the threadgroup example?
Current code in MyThread class public class MyThread extends Thread{ public static volatile AtomicInteger priority = new AtomicInteger(1); public synchronized void correctPriority(){ int newPriority = priority.getAndIncrement(); newPriority = getThreadGroup() != null &
5/17/21
796
views
3
comments
0
David Close
Level 17
London
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
args[] values
I am having alot of trouble within this task, i am unsure on how to use the args[] values correctly ? can someone please explain how to use these correctly.
3/10/21
882
views
7
comments
0
Ilias Elb
Level 8
Leuven
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Who can help??
I don't understand the requirements
5/17/21
688
views
2
comments
0
Zach
Level 22
Fort Collins
Question about the task
User, loser, coder and programmer
Java Core
,
Level 4
,
Lesson 8
Under discussion
Getting correct output but task 2 and 3 not passing?
package com.codegym.task.task14.task1411; import java.io.BufferedReader; import java.io.InputStreamReader; /* User, loser, coder and programmer */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputS
5/17/21
507
views
1
comment
0
Zach
Level 22
Fort Collins
Question about the task
User, loser, coder and programmer
Java Core
,
Level 4
,
Lesson 8
Under discussion
How do you access each of the different functions??
package com.codegym.task.task14.task1411; import java.io.BufferedReader; import java.io.InputStreamReader; /* User, loser, coder and programmer */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputS
5/16/21
520
views
1
comment
0
Dan Ursu
Level 27
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Under discussion
Very easy way to solve
I have seen very complex solutions, I think this is a very easy way to solve the task. import java.io.*; public class Solution { public static void main(String[] args) throws Exception{ if (args.length == 0){ return; } BufferedReader bf = new BufferedReade
5/16/21
485
views
1
comment
0
Oliver Heintz
Level 18
Mustang
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Under discussion
Was failing 2 & 5, now failing 2 & 4
I had it initially where it was returning the right answer, but I didn't write my code to utilize threads (I didn't have a start and run method). I changed some things around while I thought I was keeping my logic the same, and now not only did I fail to create and start a ReadThread, now I'm not e
5/15/21
678
views
5
comments
0
Nathan Guidry
Level 6
Lake Charles
Question about the task
Initializing cats
Java Syntax
,
Level 5
,
Lesson 7
Resolved
What am I missing here??
Everything looks good to me..
5/15/21
879
views
3
comments
2
Show more
1
...
74
75
76
77
78
...
374
Please enable JavaScript to continue using this application.