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 quests
All levels
Any status
Questions about tasks
Hot
Vatsal Patel
Level 15
Naperville
Question about the task
Minimum of N numbers
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
What am I doing wrong?
I am reading from the keyboard to get the N number. Then reading line N times.
04.05.2019
1592
views
4
comments
0
Willie Mangram
Level 19
Pensacola
Question about the task
Minimum of N numbers
Java Syntax
,
Level 8
,
Lesson 11
Resolved
The getMinimum() method must return the minimum among the list items. - Program runs properly but won't validate
Maybe someone can point out the flaw in my code that is giving me this error. I appreciate any help, thanks!
17.01.2019
1922
views
8
comments
0
Zach
Level 22
Fort Collins
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Not sure why last three tasks are not passing?
The last three tasks are not passing although I believe my code is correct. Also, I am getting the error "Bear in mind that strings entered from the keyboard may contain not only letters, but also other symbols." Nowhere in the description does it ask for this? Thanks. package com.codegym.task.t
03.03.2021
394
views
2
comments
0
Sinisa
Level 11
Banja Luka
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
almost stuck :D
Hello, I seem to be stuck here. My code is almost correct, however it duplicates wrong string. Instead of outputing lyre love love it outputs love lyre lyre Any suggestions?
02.03.2021
470
views
2
comments
0
carlo.
Level 0
Sunland Park
Under discussion
else with out if error. Line 37. the if choice 2 why doesn't it work? how to fix?
import java.util.Scanner; import java.io.*; public class coh5{ public static void main(String[]args)throws FileNotFoundException{ //Initiate a scanner object to read file Scanner readFile= new Scanner(new File("products.txt")); //Initiate a scanner object to re read file and extract product
03.03.2021
501
views
1
comment
0
Jeanine Kimball
Level 26
New London
Question about the task
Build a WHERE query
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
It runs fine but it doesn't validate the last requirement.
I have no idea why this is being a pain.
21.08.2020
877
views
6
comments
0
Banak
Level 29
Saint-Gratien
Question about the task
Build a WHERE query
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
Be sure that the values following equals signs are wrapped in single quotes
Please Help !!!!!
02.03.2021
643
views
1
comment
0
Anthony Chalk
Level 30
London
Question about the task
Monitoring thread state
Java Multithreading
,
Level 5
,
Lesson 5
Resolved
Please help
For some reason instead of only displaying the state once, it continually displays it whilst it's running. It also does not display "TERMINATED". Is this because I setDeamon to true, and so it shuts down as soon as the other Thread stops?
02.03.2021
571
views
4
comments
0
Mina Nabil
Level 17
Sydney
Question about the task
Only for the rich
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Could someone help with the code ?
Hi, why it is not working and although I am iterating over the original hashmap and removing values less than 500, it does not show an error and its working ?
02.03.2021
629
views
2
comments
0
Karas
Level 1
Tampa
Question about the task
MovieFactory
Java Core
,
Level 4
,
Lesson 8
Resolved
Compiles even gives the null exeption requested on the requirements, still does not pass the verification, 100 attempst I quit...
02.03.2021
617
views
5
comments
0
Pawel
Level 22
Austin, TX
Question about the task
Building a file
Java Core
,
Level 8
,
Lesson 11
Resolved
Help needed
Any ideas what's wrong with this code?
01.03.2021
457
views
5
comments
0
Mina Nabil
Level 17
Sydney
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Hi, I am not too sure whats the problem if anyone could help
Hi, I am not too sure whats the problem if anyone could help
01.03.2021
661
views
1
comment
0
remote87
Level 18
Sofia
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Under discussion
I'm loosing my mind here...
Hello everyone! For the last couple of days, I have been trying to solve this task... I know I'm really close, but I can't figure this out: Why is this code not capturing name as a next token?! Any hint? EDITED: Test passed, but when try to pass the task...oh wonder, no pass... NEW CODE: Scanner sc
27.02.2021
768
views
7
comments
0
Sinisa
Level 11
Banja Luka
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
wrong solution
Hello, this is a stated solution for this task. Solution is flawed; regardless of the input it returns only "Even-numbered houses have more residents." It never returns "Odd-numbered houses have more residents."
01.03.2021
553
views
5
comments
0
Anthony Chalk
Level 30
London
Question about the task
MVC (part 8)
Java Multithreading
,
Level 4
,
Lesson 14
Resolved
Please help
The mentor recommendation for condition 4 is: You did not call the fireEventUserDeleted(124L) method on the EditUserView object in the Solution class's main method. But I did...
01.03.2021
571
views
3
comments
0
Zach
Level 22
Fort Collins
Question about the task
Working with dates
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Not sure what I am missing?
I wanted to try to solve this without using the Date object. Is there something I am forgetting to account for in this code?? package com.codegym.task.task08.task0827; import java.util.Date; import java.util.HashMap; /* Working with dates */ public class Solution { public static void m
28.02.2021
478
views
1
comment
0
Lin Chen
Level 14
Richardson
Question about the task
Fixing bugs
Java Core
,
Level 3
,
Lesson 11
Under discussion
Why it prints out 2,2 but not 2,3
hey guys, I have some confusion regarding the static int index in Hobby class. I am assuming this is a class variable and should increase by 1 each time hobby is being called. That's why I think System.out.println(Dream.HOBBY.toString()); // should be 2 System.out.println(new Hobby(
28.02.2021
500
views
2
comments
0
Shilpa nori
Level 34
Rochester
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
Doesn't validate
I don't know what's wrong with my solution, it works for different inputs. Your help is much appreciated. thanks
26.02.2021
475
views
2
comments
0
Banak
Level 29
Saint-Gratien
Question about the task
Between tabs
Java Multithreading
,
Level 2
,
Lesson 5
Resolved
PLEASE HELPPPPPP!
Could someone explain what's wrong with this .....!???
28.02.2021
545
views
5
comments
0
Asia
Level 19
Bydgoszcz
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
What do they mean?
Longest sequence of repeating numbers means that they have to be next to each other? Example 3 3 3 4 5 3 7 Is the length of the sequence 3 or four?
28.02.2021
710
views
1
comment
0
Mareike
Level 4
Question about the task
Cat and Dog objects: 50,000 each
Java Syntax
,
Level 6
,
Lesson 5
Resolved
What am I doing wrong?
Hello everyone, I'm a little stuck here. What am I doing wrong? com/codegym/task/task06/task0603/Solution.java:11: error: non-static variable this cannot be referenced from a static context Cat cat = new Cat(); ^ com/codegym/task/task06/task0603/Solution.java:12:
22.04.2019
3035
views
10
comments
0
Anitamalina
Level 18
København
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Resolved
What is wrong?
I get the following error from CodeGym, and I don't understand why??
27.02.2021
541
views
1
comment
0
Maxim Raitin
Level 20
Tomsk
Question about the task
Greater than 10? You're not a good fit for us
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
It works in IDE
last requir doesn't met. Why? It works correct in IDE
27.02.2021
530
views
2
comments
0
Павел Артеменко
Level 41
Krasnodar
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Resolved
Verification fails, don't know why
Any advice on test case, that show where I am wrong is appreciated.
29.04.2019
1592
views
2
comments
1
TaoLu
Level 20
泾县
Under discussion
build failed
CodeGymTasks\8.Games\src\com\codegym\games\minesweeper\MinesweeperGame.java:8:8 java: 无法访问javafx.application.Application 找不到javafx.application.Application的类文件 manual op: javac -cp lib/* -encoding "UTF-8" -d ../out/production/8. Games src/com/codegym/games/minesweeper/*.java src\com\codegym\games\
21.02.2021
466
views
2
comments
1
chan kenneth
Level 7
Hong Kong
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
cannot verify
I think i have got the answer but i cannot verify it. can somebody helps ? Thank you
27.02.2021
535
views
1
comment
0
Anonymous #10604401
Level 8
Skopje
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
The program run too long and was closed!
With this task, I constantly get this message (The program run too long and was closed). My solution is 90 the same as one of the previous tasks (Longest string), since the conditions are almost the same, only flipped around. I have experienced this kind of thing before, a few days ago, but back the
26.02.2021
483
views
2
comments
0
Gellert Varga
Level 23
Szekesfehervar
Resolved
obj.hashCode() vs System.identityHashCode(obj))
What is the difference? I thoght the reference of the object will returned by both of them , but it seems not. public class Solution { public static void main(String[] args) { String s = "abcd"; String s1 = new String("abcd"); String s2 = new String("abcd"); S
24.02.2021
595
views
4
comments
0
Zach
Level 22
Fort Collins
Question about the task
HashMap of Objects
Java Syntax
,
Level 8
,
Lesson 3
Under discussion
Don't see the problem but last task will not pass
package com.codegym.task.task08.task0806; import java.util.HashMap; import java.util.Map; /* HashMap of Objects */ public class Solution { public static void main(String[] args) throws Exception { HashMap map = new HashMap(); map.put("Sim", new Integer(5)); map.put(
25.02.2021
562
views
3
comments
0
Zach
Level 22
Fort Collins
Question about the task
Cat code won't compile
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Number format exception error
I changed all the int variables to Strings and got it to work but that doesn't pass some of the tests. Also tried to add another readLine or change the name to no avail. Not understanding what I am supposed to do. Thanks. package com.codegym.task.task07.task0726; import java.io.BufferedReader;
25.02.2021
450
views
1
comment
0
Show more
1
...
82
83
84
85
86
...
372
Please enable JavaScript to continue using this application.