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 courses
All quests
All levels
Any status
Questions about tasks
Hot
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
20.05.2021
473
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
21.05.2021
592
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
19.03.2020
1284
views
5
comments
0
Libby
Level 20
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.
12.05.2021
398
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.
19.05.2021
415
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
19.05.2021
521
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.
18.05.2021
713
views
2
comments
0
Josephine
Level 26
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
18.05.2021
504
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
06.05.2021
757
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?
24.03.2021
635
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;
18.05.2021
392
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
17.05.2021
694
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
10.08.2018
2782
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 &
17.05.2021
675
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.
10.03.2021
750
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
17.05.2021
606
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
17.05.2021
406
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
16.05.2021
387
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
16.05.2021
392
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
15.05.2021
542
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..
15.05.2021
765
views
3
comments
2
Xavier
Level 17
Pearland
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Under discussion
The code times out during verification.
I don't think I completely understand what the exercise wants me to do. The code takes Strings as input and writes them to a file until the user enters "exit" and then reads what's in the file. When I try to verify, it times out, so I don't even know what to change.
15.05.2021
472
views
1
comment
0
Iacob Zamfir
Level 4
Under discussion
Why it's hard?
Why is so hard for me to learn? Why is so hard for me to lear Java when i really want? Why?
14.05.2021
424
views
2
comments
1
p saraf
Level 2
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
what happened in this code can someone explain me this code ? please
what happened in this code can someone explain me this code ? please
29.01.2021
524
views
1
comment
0
Oliver Heintz
Level 18
Mustang
Question about the task
Symbol frequency
Java Core
,
Level 8
,
Lesson 11
Resolved
It makes sense to me, but doesn't pass
Using TreeMap to auto-sort. This is basically the way I did the earlier tasks where you count letters and spaces. I waited until the print statement to cast into a character in case that messed up the TreeMap sorting since I don't know how that works. Why is it that every task here now makes me w
13.05.2021
1132
views
9
comments
0
Ramen
Level 23
South Lake Tahoe
Question about the task
Task No. 6 about integer type conversions
Java Syntax
,
Level 10
,
Lesson 4
Under discussion
why does (short) 150,000 print 18,928
I solved the task, but I'm not sure how casting 150,000 as a short turns the number into 18,928.
14.05.2021
401
views
1
comment
0
Andrei
Level 41
Question about the task
2048 (Part 12/18)
Games
,
Level 0
,
Lesson 2
Resolved
What is wrong with my moveRight, up, down algorithm?
My code is a loop, the mentor's solution is calling manually as needed. Am I doing something wrong? Please ignore the break in moveUp method, I was testing something private void moveLeft(){ boolean isNumberNeeded = false; for (int[] row : gameField) { boolean com
14.05.2021
828
views
1
comment
1
John
Level 17
Mansfield
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Help what's wrong
if the uaer type empty name then my program tellla to put(id,null) so i can still display the number as said by the condition but it's not working :(
14.05.2021
894
views
12
comments
0
John
Level 17
Mansfield
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Please someone explain the algorithm
I just finished this task but then I'm confused how it works
02.05.2021
614
views
9
comments
0
Zach
Level 22
Fort Collins
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Second and fifth tasks not passing ( but I clearly have output)?
package com.codegym.task.task10.task1019; import java.io.*; import java.util.HashMap; import java.util.Map; /* Functionality is not enough! */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStr
13.05.2021
464
views
1
comment
0
Show more
1
...
72
73
74
75
76
...
372
Please enable JavaScript to continue using this application.