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
bamughamye patrick
Level 8
Paris
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
Got task right but code i used i lengthy. Can someone show me how a for loop would have been used here? Thanks
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader;
26.08.2020
529
views
3
comments
0
Kasia
Level 22
Zabrze
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Resolved
Works here but doesn't pass the validator
I can create a file and save it (i.e as file.txt) and it shows the text on separated lines(including exit) but the program doesn't pass the validation. Additionally, I also got the message from: The program must write absolutely all of the entered lines (including "exit") to the file, each on a ne
12.11.2020
482
views
2
comments
0
The Chief
Level 18
Question about the task
Cat and Dog objects: 50,000 each
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Why is this code wrong?
I don't know why it keeps rejecting my code. Can anyone please tell me how to fix this?
11.11.2020
449
views
6
comments
0
Mariam
Level 9
Columbus
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
IT WORKS but compiler does not excepts. Please help
IT WORKS but compiler does not excepts. Please help
09.09.2020
428
views
3
comments
0
Arjun Kiruthivasan
Level 14
Chennai
Question about the task
String array in reverse order
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
where i done mistake??
pls tell me
13.09.2018
1667
views
5
comments
0
Maria
Level 22
Moscow
Question about the task
Notepad for new ideas
Java Syntax
,
Level 6
,
Lesson 11
Resolved
The output is NULL...
The task requirements sounds strange.. could please get some hints? Thanks in advance!
28.10.2020
587
views
2
comments
0
Onome Brownly-Otiede
Level 9
Galway
Question about the task
The whole duck isn't enough
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
do not understand
i do not understand why this is happening pls help
14.10.2020
508
views
2
comments
0
Denis
Level 22
Kharkiv
Question about the task
Human class constructors
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
HELP PLS!
Guys, i am very tired with this. I am worked with this code in IDEA and dont understand anything/ Give me full code pls!
21.06.2019
1218
views
3
comments
0
Dmitri
Level 22
Seversk
Question about the task
List of number arrays
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
I've got a strange message
I've got a strange message: The task does not compile on the server! Though it is working as intended in IJ.
11.11.2020
370
views
4
comments
0
Rajni Agrawal
Level 12
Bangalore
Question about the task
Catching a group of exceptions
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
Please help to find the problem
I feel the code the working fine. All exceptions are caught but the validation is not going through. Please help.
12.11.2020
465
views
2
comments
0
Anitamalina
Level 18
København
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Maximum of N numbers
Negative numbers - what should happen? I make a break from the loop, but should it ignore ? Maybe something else is wrong? import java.util.Scanner; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(Sy
11.11.2020
799
views
7
comments
0
antoinefleury2416
Level 3
Poitiers
Under discussion
I am blocked
I am blocked, I have no more black matter c I am not paying. what do I do ?
11.11.2020
327
views
1
comment
0
Roman Grygorczuk
Level 19
Cracow
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
What is wrong with the last check?
Hi all, I cannot understand why I cannot pass last requirement. Results seems to be correct. Thanks in advance for any clue! Best, Roman
02.11.2020
396
views
4
comments
0
gabe
Level 6
Greenville
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
0 not positive
i dunno, but i got the same question as another guy, and his code is needlessly complicated
08.10.2020
456
views
10
comments
0
Guanting Liu
Level 1
Springfield
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
details error
I don't know if there's something wrong with it,if it has,plz help me thx.need specific details very appreciate
11.11.2020
349
views
5
comments
0
Kaiyr Shayakhmetov
Level 22
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Resolved
Could you plz help me with this task!!! Code produces correct results, however can't pass validation
Could you plz help me with this task!!! Code produces correct results, however can't pass validation. Have no idea what is wrong with the code.
28.08.2020
573
views
1
comment
0
yehuda b
Level 23
Beersheba
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
After trying many different solutions it still fails
works well with conditions example, any tips??? disregard isNumber method, it is from one of my previous attempts...
09.11.2020
467
views
5
comments
0
Albert
Level 6
Hong Kong
Question about the task
Cat register
Java Syntax
,
Level 4
,
Lesson 2
Under discussion
Sth is wrong
// Result is 0, but the system reads it as passed, weird package com.codegym.task.task04.task0404; /* Cat register */ public class Cat { private static int catCount = 0; public static void addNewCat() { //write your code here Cat cat = new Cat(); Cat.catCount =
09.11.2020
416
views
2
comments
0
Dyrits
Level 22
Question about the task
Adding a file to an archive
Java Collections
,
Level 1
,
Lesson 6
Under discussion
Why this is not working?
I don't get it. I look to some other solutions. It is more or less doing the same thing, but just saving the content somewhere else first, but it is kind of the same at the end, no? Also, why don't we simply skip the entries to add the new one?
11.11.2020
467
views
1
comment
0
WhiteColloid
Level 7
San Francisco
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
I don't know why the third condition is not satisfied
I don't see a problem here.
11.11.2020
423
views
1
comment
0
Philip Butler
Level 32
United Kingdom
Question about the task
Adding a file to an archive
Java Collections
,
Level 1
,
Lesson 6
Under discussion
Finally got this to verify.
Thanks to others for posting their questions and answers. I ended up struggling with this one and doing a fair amount of Googlig to get a solution that verified. The tricky bit was not using the File System, so as others have pointed out creating a temporary file won't verify. For others that are
06.11.2019
1252
views
6
comments
12
Nicolas Huet
Level 41
Provins
Question about the task
Working with Java 8's DateTime API
Java Collections
,
Level 10
,
Lesson 10
Resolved
I don't find the issue here
I tried a bunch of different methods but I always the same two conditions that doesn't validates and I really don't find the problem. I was sur it was it was a stupid typo but I don't find it (it's possible I still missed it, dyslexia...). Anyway, if someone can show me the problem that would be aws
27.11.2019
797
views
3
comments
3
Anitamalina
Level 18
København
Question about the task
ConsoleReader class
Java Syntax
,
Level 6
,
Lesson 8
Resolved
Boolean method
Why doesn't this work?
09.11.2020
492
views
3
comments
0
Dinesh
Level 7
Delhi
Under discussion
What is wrong with my code?
public class SolUsDollar { public static void main(String[] args) { //write your code here convertEurToUsd(123, 1.18); convertEurToUsd(111, 1.68); System.out.println(US_dollars); } public static double convertEurToUsd(int eur, double exchangeRate) {
10.11.2020
351
views
6
comments
0
Roman Grygorczuk
Level 19
Cracow
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
NullPointerException
Hi all, I cannot display last two lines and get NullPointerException. Any clue please? Thanks, Roman
08.11.2020
367
views
3
comments
0
Dinesh
Level 7
Delhi
Under discussion
Why out put as 0.0 ?
public class TenPerIncrease { public static double addTenPercent(int i) { //write your code here double incInPer = (10/100)*i; return incInPer; } public static void main(String[] args) { System.out.println(addTenPercent(9)); } }
10.11.2020
285
views
2
comments
0
AlfredW
Level 23
Denver
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
STILL Wont Verify.
I got the time out fixed and my results numbers are good. Still won't verify....? Keeps saying: "The getNumbers method must return the array of numbers that satisfy the task conditions." Here are the results I get with 1000 and 1000000. But I have also run a couple of bigger numbers as well. So I
08.11.2020
592
views
17
comments
0
AlfredW
Level 23
Denver
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
Still keeps timing out...
I have gotten the right results but I get timed out. I tried using an array to hold the factored values to speed up calculating the bigger numbers. but it still times out. ??
08.11.2020
400
views
1
comment
0
Alexandre Lalancette
Level 41
Quebec
Question about the task
Aggregator (part 13)
Java Collections
,
Level 8
,
Lesson 15
Under discussion
Stuck with 2 requirements not passing. This big task is toughhh
From the 5 people that actually passed this, can you give me a small hint? Thank you!!
18.02.2020
997
views
3
comments
0
MoJo
Level 20
Cairns
Question about the task
Creating threads recursively
Java Core
,
Level 6
,
Lesson 13
Resolved
I got the taks right, but i don't quiet understand the behavoir
So, i don' want to give the answer here, but i first tried this: while (createdThreadCount < count) { System.out.println(new GenerateThread());} } and that this: if (createdThreadCount < count) The while loop didn't validate ("too many l
08.11.2020
523
views
2
comments
0
Show more
1
...
108
109
110
111
112
...
367
Please enable JavaScript to continue using this application.