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
sourav bamotra
Level 20
jammu
Question about the task
Adapting multiple interfaces
Java Core
,
Level 9
,
Lesson 3
Under discussion
help please
made 16 attempts to solve. but finally i go through that weird pattern of String.format("%010d",data.getPhoneNumber()).replaceFirst("................","......................"); Any referral to online text to understand such pattern? ×_×
16.10.2020
461
views
2
comments
0
Anitamalina
Level 18
København
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Problems with local variable and boolean statements
1. is my line 19 right? I want to add a number to the sum each time it loops.. 2. how do I tell when a boolean is false - it that enough in my if statement line 21 ?
16.10.2020
394
views
1
comment
0
Seferi
Level 22
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Resolved
Help please
Thanks in advance..
15.10.2020
349
views
4
comments
0
Shadow
Level 7
Hogsmead
Question about the task
Man and woman
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
its showing :
Identifier missing in System.out.println(man1.name ^
16.10.2020
409
views
3
comments
0
romeo
Level 5
Paramaribo
Resolved
HELP!!! Problems with Solutions using IntelliJ IDEA...
When I try to run the code for a Codegym task. it runs the last solution instead of the current one. I have to manually change the solution configuration to match the current task. I.e ( I have to change task0319 to task0320 using the solution folder at the top...)
26.05.2019
1392
views
3
comments
0
Jhoal
Level 22
Berlín
Question about the task
Minesweeper (Part 3/16)
Games
,
Level 0
,
Lesson 0
Under discussion
I don't know what I m doing wrong
Hi guys do you have any idea what am i doing worn? I'm having this message all the time com/codegym/games/minesweeper/part03/GameObject.java:12: error: unreachable statement return y; What am I missing?
16.10.2020
437
views
2
comments
0
Timothy Chan
Level 11
Hong Kong
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Can't meet the requirement 3
What's wrong with it? Why the minimum is -9? Thanks in advance!
15.10.2020
484
views
4
comments
0
Inifome
Level 10
Delta
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Resolved
got the answer and tested it with different input but no verification
don't know why the last condition failed to get verified please can anyone help point out my mistakes
13.10.2020
500
views
17
comments
0
Davedabull
Level 22
New York City
Question about the task
Long words
Java Core
,
Level 9
,
Lesson 11
Resolved
Can someone debug my codes?
I think it's working fine but it's not passing...
15.10.2020
318
views
2
comments
0
Vitalina
Level 20
Question about the task
Minimum of N numbers
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
What's the problem with the getMinimum() method??
I'v tried 4 different ways for getMinimum() method but no one works. It seems like the list is empty... I don't know what to do.. I will be pleased if someone will help me. Thanks in advance!
15.10.2020
322
views
2
comments
0
arafat
Level 4
Dhaka
Question about the task
Task with percentages
Java Syntax
,
Level 3
,
Lesson 3
Resolved
what's wrong here ?????
when i ran the program i got 9.9 so i think its correct because if you increase 9 by 10 percent the answer is 9.9 please explain me what's wrong
25.03.2019
2061
views
11
comments
0
Jan Elšík
Level 41
Prague
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Resolved
I know it is odd solution on my side, but I think it works
Hi, So my thinking was basically this: get the first file to list round and move to list move to list with added " " change list to String write to file 2. I am way top tired to think about more pretty solution (and also eliminate some unecessary steps there), so my question is - is my solutio
15.10.2020
436
views
2
comments
0
Krad
Level 14
Cherry Log
Resolved
So I'm using intellij and I don't see the solution when I click run. I only see "process finished with exit code 0". Any thoughts on how to bring back the output?
m,
15.10.2020
445
views
2
comments
0
Jesús de Llera
Level 23
Badajoz
Question about the task
John Johnson
Java Core
,
Level 9
,
Lesson 11
Resolved
Validator complaining about names
I don't see where the problem is. Validator is telling me to "Be sure that names are correctly added from the file to the PEOPLE list." But I've run a loop on PEOPLE and all the names are in there as they should. Any hint? Thanks!
12.07.2019
1748
views
4
comments
0
Davedabull
Level 22
New York City
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Resolved
Works with the example, but not passing
The codes works with multiple args keywords and nested tags, but still not passing, any thoughts?
14.10.2020
504
views
5
comments
0
Azhar Iqbal
Level 18
Multan
Question about the task
Let's talk music
Java Core
,
Level 6
,
Lesson 3
Resolved
Is there any problem in my code ?
A little hint is required.
08.10.2018
1915
views
3
comments
4
Henrique
Level 41
São Paulo
Question about the task
Mixed-up modifier
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Solved it, but didn't quite understand
Hi! Why "public int C = A * B;" (non static) can use "A" and "B" (which are static)? Inside this static and non static field, what's the difference between "public int C = A * B;" and "public static int D = B * A;"? I've already read the article about it, but everytime this task appears I see tha
13.05.2020
716
views
6
comments
2
Joshua Tyrrell
Level 7
Poughkeepsie
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
it prints the expected output, yet says I need to check the number of rows. Can someone double check me?
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader (new InputStreamReader(System.in)); String num1 = reader.readLine(); int rows = Integer.parseInt(num1); String
14.10.2020
588
views
3
comments
0
Ian De Bie
Level 28
Austin
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Resolved
Please help. Why doesn't this pass tests, but it works in my IDE?
Can anyone tell me what is specifically failing here please? The program calls alert(Double) if the value contains a period ".", or otherwise it calls alert(String), but it fails those validation tests.
14.10.2020
340
views
1
comment
0
Cam
Level 15
Bogota
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Resolved
I'm not sure what is wrong
By my logic this should print out all the family. I've read a few of the other comments and I suppose there is nothing wrong in my code. But validation says otherwise
14.10.2020
512
views
7
comments
0
Lex Medeiros
Level 18
San Jose
Question about the task
File in a static block
Java Core
,
Level 5
,
Lesson 12
Under discussion
What am I doing wrong?
It is telling me In the static block, all lines from the file named FILE_NAME must be added separately to the List lines. I am adding them separately.
27.05.2019
1551
views
2
comments
0
Ian De Bie
Level 28
Austin
Question about the task
Default values
Java Core
,
Level 5
,
Lesson 9
Resolved
Is this the proper way to solve the problem?
I solved it with reflection, but not sure if that is acceptable. public static void main(String[] args) throws IllegalAccessException { Solution solution = new Solution(); for(Field f : Solution.class.getFields()) System.out.println(f.get(solution)); }
14.10.2020
448
views
2
comments
0
Guanting Liu
Level 0
Springfield
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
What's wrong with code?
14.10.2020
272
views
1
comment
0
Ahmad Dabagh
Level 9
Hannover
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Task requirements are not met pls Help
The code works with me But i don't understand why not accept it it says ( Task requirements are not met ) 😟
14.10.2020
420
views
2
comments
0
Marek Pasierbek
Level 9
Poznań
Question about the task
Symbol frequency
Java Core
,
Level 8
,
Lesson 11
Under discussion
Why it is correct?
package com.codegym.task.task18.task1821; import java.io.FileReader; import java.io.IOException; public class Solution { public static void main(String[] args) throws IOException { int[] aSCII = new int[128]; try (FileReader reader = new FileReader(args[0])) { whil
14.10.2020
387
views
1
comment
0
Tom ford
Level 15
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
The first letter is not being accounted with repetition...HELP
..
14.10.2020
319
views
1
comment
0
Ahmad Dabagh
Level 9
Hannover
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Why?
I have done this task but i don't understand why was this Code is not correct and the result was ( 98 ) 🤯 int num = reader.read(); Why wthis this Code dosn't worked the result was ( 98 ) int num = Integer.parseInt(reader.readLine()); Why to int ? it's worked but i dont unders
13.10.2020
396
views
4
comments
0
Benjamin Winchester
Level 17
Savannah
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Archived
Not sure why this isnt working.
Please help.
26.11.2018
2112
views
7
comments
0
Шарох
Level 10
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
Hi Coders!
It's simple problem but I don't know what should I do :(
14.10.2020
594
views
2
comments
0
Guanting Liu
Level 0
Springfield
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
what's wrong with this code?
14.10.2020
293
views
1
comment
0
Show more
1
...
118
119
120
121
122
...
366
Please enable JavaScript to continue using this application.