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
Art
Level 13
Chisinau
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
Whats the problem here? -,-
Whats the problem with this code? Thanks!
2/25/20
1130
views
2
comments
0
Chris Hilborne
Level 26
Sanlucar de Barrameda
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Under discussion
I struggled with this task a lot before giving up...
Why does this task insist on FileInputStream? After doing a quick Google search it became patently obviously that most people use scanner to read integers for a file - I did it this way and it seemed to work. But I'll never know for sure because the task insists on using FileInputStream instead.
4/9/20
983
views
1
comment
0
Daniel L. Tovar
Level 9
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Help me, please.
Can anybody help me? I've got no clue about what I have to do here and I've been trying to solve this since yesterday
4/9/20
1129
views
1
comment
0
LucGar
Level 22
Bilbao
Question about the task
Factorial
Java Core
,
Level 5
,
Lesson 12
Resolved
Why?
i think i try everything, what is the problem?
4/9/20
1069
views
4
comments
0
John
Level 27
Washington DC
Question about the task
Factorial
Java Core
,
Level 5
,
Lesson 12
Resolved
infinite loop?
I keep getting a notification that there is an infinite loop in my code...I'm not seeing it.
10/31/19
1701
views
4
comments
2
An Gelo
Level 18
Cebu
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
the last requirements which is the text does not match.
I compiled the program and it has the correct output and match the text requirements but still error String name = reader.readLine(); String number = reader.readLine(); System.out.print(name+" will capture the world in "+number+" years. Mwa-ha-ha!"); output should be like this:Kev
8/3/18
3323
views
8
comments
1
- FniJnn -
Level 33
Paris
Question about the task
Weird bugs O_o
Java Multithreading
,
Level 9
,
Lesson 7
Resolved
I fixed the first bug, i don't understand what to do
Weird bugs O_o Fix 2 bugs: 1) an exception occurs 2) the program becomes unresponsive Make minimal changes. Requirements: 1. The startCreatingMessages() method must add 100000 elements to messageQueue without hanging. 2. Fix the bug in the line "messageQueue.drainTo(messageQueue, MAX_BATCH_SIZE);"
3/25/20
1520
views
3
comments
0
BlueJavaBanana
Level 37
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
This bloody thing works but isn't passing the auto check. What have I misunderstood?
Please see solution - it have checked this with all numbers including the supplied ones for the test and it work but is still failing?
4/9/20
1111
views
4
comments
0
Liliane Top
Level 17
Amsterdam
Question about the task
Countdown at the races
Java Core
,
Level 6
,
Lesson 10
Resolved
How does it work in detail?
Can anybody refer me to a better explanation? I tried many things but do not understand the logic behind multi threads. I reread the example several times but can't find out how it actually works in details. My first question is: 1) Why does it seem that I created an infinite loop while I do get ou
4/5/20
1389
views
2
comments
1
Richard Herrera
Level 3
Tampa
Question about the task
Parenthetical brainteaser
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
i need help with 382
cant figure how it work im trying. any help would be appreciated
4/9/20
1218
views
1
comment
0
Michał Pawłowicz
Level 18
Question about the task
Shuffled just in time
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
What is actually wrong with my code?
Output satisfies the requirements, but it is not enough to pass the tasks. I will be grateful for any sort of help.
4/7/20
1179
views
3
comments
2
Djole
Level 41
Belgrade
Question about the task
HTML Editor (part 19)
Java Multithreading
,
Level 8
,
Lesson 15
Resolved
If an event with the "Save as..." command is ...
public void actionPerformed(ActionEvent actionEvent) { String s = actionEvent.getActionCommand(); switch (s) { case "New": controller.createNewDocument(); break; case "Open": controller.openDocument(); break
5/16/19
1525
views
1
comment
0
Ivan
Level 31
Podol'sk
Question about the task
2048 (part 12)
Java Multithreading
,
Level 10
,
Lesson 15
Under discussion
I don’t understand where the error is here?
the first check point does not pass
8/5/19
1500
views
3
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Under discussion
can you explain me how to resolve this task?
need help
3/13/19
2104
views
9
comments
0
Björn
Level 1
Aachen
Question about the task
In decreasing order
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
sorting just the first half of the array - why that?
input: 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 output: 10 10 9 9 8 8 7 7 6 6 6 6 7 7 8 8 9 9 10 10 Any ideas why it is just sorting the first half? if I output the memArray before the for loop, it shows me the correct order. What is going wrong when i am copying memArray to array? for (int i
4/9/20
1000
views
1
comment
0
Pawel
Level 22
Austin, TX
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Resolved
sorting words - don't pass but the output is correct
could someone check what's wrong with this code? input examples which give incorrect output will be enough :)
3/27/20
1060
views
2
comments
1
Diana Pettit
Level 4
Mobile
Question about the task
Pets need people
Java Syntax
,
Level 2
,
Lesson 5
Resolved
What could be wrong?
I did the code. I even consulted other questions and I can't figure out why it's not accepting this. What am I missing?
1/5/20
1677
views
5
comments
0
vishesh yadav
Level 7
Mumbai
Question about the task
Parenthetical brainteaser
Java Syntax
,
Level 3
,
Lesson 4
Resolved
suggestions pls🙏
i have tried numerous ways but didn't make it. at last end up with with 3 parenthesis. pls suggest what am i missing?
3/28/20
1312
views
2
comments
0
- FniJnn -
Level 33
Paris
Question about the task
Refactoring (part 14)
Java Multithreading
,
Level 5
,
Lesson 16
Under discussion
I don't get it, everything is fine
Thanks :)
2/10/20
1114
views
2
comments
0
Sweetyyy Angel
Level 3
Erode
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Resolved
i understood to create an object named Person,but still i'm confused with the terms "assign a reference to the variable ".
package com.codegym.task.task02.task0202; /* Where does a Person come from? */ public class Solution { public static void main(String[] args) { //write your code here Person person; person = new Person(); } public static class Person {
3/30/20
1522
views
3
comments
0
Samantha
Level 4
Crofton
Question about the task
Part of a calculator
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Hey, what does it mean by main method? I've seen this a few times now and Im not understanding.
What does it mean? Also, what did I do wrong on this?
2/16/20
1386
views
1
comment
0
hidden #10550504
Level 10
Question about the task
Cat register
Java Syntax
,
Level 4
,
Lesson 2
Resolved
Hi! I don't understand what is wrong and what I should write here? I did try in many ways. Please help!
Help me please!
4/3/20
1443
views
4
comments
0
JianQiu Hwang
Level 35
Washington
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Archived
After I deleted the test file below "task3101" directory, I passed the test?
Previous attempts unmeeted the requirement that "1. The file passed as the second argument to main must be renamed to allFilesContent.txt.". However, after I deleted the test file below "task3101" directory, I passed the test. So, the file, called "allFilesContent.txt" at the "task3101" directory, c
3/15/20
1241
views
2
comments
0
David
Level 26
Bucharest
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Resolved
any hint
Help, I can't see where is the mistake
4/7/20
1287
views
3
comments
0
Jiesheng Yang
Level 8
Sulzbach
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
What is wrong?
I have no idea what why java tells me that I had a Format Bug. Please help. java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:542) at java.lang.Integer.parseInt(Integer.java:615) at com.codegym.task.task05.task0532.Solution.main(Solution.java:18) at sun.reflect.N
4/7/20
1019
views
2
comments
0
Daniel L. Tovar
Level 9
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Can anybody explain to me why this is not working?
I've been trying for several minutes now and I don't know how to get this to work.
4/8/20
874
views
1
comment
0
Uchenna Benjamin
Level 15
Madisonville
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Resolved
I don't understand what the third condition wants me to do.
What is the meaning of adding line at the beginning of the code. the third condition. thanks for the help...
4/7/20
1048
views
2
comments
0
Jakhongir Ruziev
Level 23
Tashkent
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
I cannot pass tests but it seems to be working fine. Can someone help figure out. My 2nd question is if I uncomment longest = list.get((0)).length(); on the line 33 it does not return longest. Can someone explain why?
for (int i=0; ilongest) longest=list.get(i).length(); }
4/7/20
1251
views
1
comment
0
Jakhongir Ruziev
Level 23
Tashkent
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Help me please. Cannot solve the problem for hours
R or L
4/7/20
1115
views
2
comments
0
MP
Level 8
Wietzendorf
Question about the task
Seeing dollars in your future
Java Syntax
,
Level 4
,
Lesson 10
Resolved
What is wrong?
Can somebody tell me what is wrong with my code? It seems like the second while is only used once. So if I add a "1" instead of the free space with my System.out.println("1"); it displays : $$$$$$$$$$1 1 1 1 1 1 1 1 1 1 I don't really understand why the second while loop is used only once. Aren
1/21/19
3250
views
9
comments
0
Show more
1
...
215
216
217
218
219
...
374
Please enable JavaScript to continue using this application.