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
Zach
Level 22
Fort Collins
Question about the task
Factory method pattern
Java Core
,
Level 6
,
Lesson 13
Under discussion
Why can't I access the ImageTypes??
I keep getting this error..... com/codegym/task/task16/task1631/ImageReaderFactory.java:7: error: cannot find symbol public static ImageReader getImageReader(ImageTypes type) throws Exception { ^ symbol: class ImageTypes location: class com.co
26.08.2021
307
views
1
comment
0
Anitamalina
Level 18
København
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Under discussion
Scanner vs buffereader?
Can't I use a scanner ?
25.08.2021
556
views
1
comment
0
Fabian Andiel
Level 25
Vienna
Question about the task
Rarest bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
Dont hava any idea?
Guys can you help me? I dont have any idea what is going wrong. best regards Fabian
01.02.2020
1645
views
5
comments
0
Aswin Anand
Level 4
Under discussion
how to get dark matter without subscription
ansr
25.08.2021
265
views
0
comments
0
Edward Rickers
Level 15
Washington
Question about the task
10 thousand deletions and insertions
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Why is the remove function not working?
Does "b" not count as an item? Insert passed though...
24.08.2021
406
views
2
comments
0
Ryan Palmer
Level 20
Philadelphia
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Under discussion
Clarity
Sorry for my newb question but I am here to learn! I don't understand the set up of the task. Why are we reading a file from the console but also checking args? It says that the program is started with an argument - does that mean we are to assume that there will be data within the args array and
24.08.2021
518
views
10
comments
0
Victor Omoha
Level 8
Raleigh
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Resolved
i'm stuck
package com.codegym.task.task07.task0705; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; /* One large array and two small ones */ public class Solution { public static void main(String[] args) throws Exception { //write your code here in
24.08.2021
527
views
4
comments
0
Jyothi
Level 20
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Resolved
overriding parent class getDescription validation failure. How can I correct this?
task14.task1408 - Chicken factory Overriding parent class getDescription validation failure. How can I correct this?
20.12.2018
1892
views
4
comments
0
scriptKing
Level 7
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
ok mine works but didnt use abs not sure why -a would achieve anything?
public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { // write your code here int ac = a - 10; int bc = b-10; if(a
22.08.2021
612
views
6
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
File in a static block
Java Core
,
Level 5
,
Lesson 12
Under discussion
File not found exception
My source file for the lines read is located in the same folder as the rest of the files for the project (as you can see, it is included in the files with my attached solution code). I don't understand why it's not finding it. I should be able to access it with a relative path (just the filename). I
20.08.2021
310
views
1
comment
0
Dawid Bujnicki
Level 41
Warsaw
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Resolved
Stuck - "The list returned by detectAllWords is not the right size!"
Hello! I'm completely stuck on this one. Usually hints in help section helped me get correct solution, but this time even tho code seems to work correctly, validator still doesn't let me in. I've tried with single word entry, multiple word entries, palindromes, single and multiple, and it still doe
18.08.2021
347
views
14
comments
0
Bill Wu
Level 29
Wellington
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Resolved
Why cannot be verified? correct output
Hi guys, I've tested with the two example url and I get the correct result. But it cannot be verified. Any one knows why? Thanks.
17.02.2019
2096
views
14
comments
3
Randall John
Level 19
East Cleveland
Question about the task
File in a static block
Java Core
,
Level 5
,
Lesson 12
Under discussion
I keep getting a FileNotFound Exception please help
What am i doing wrong :(
28.06.2020
955
views
4
comments
0
0wis
Level 6
Paris
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
I can't find what is wrong with my tests
Hello, I don't understand why it is not verified. If any length is strictly superior to the length of the other , then the condition is true, and "The triangle is not possible". Otherwise, "The triangle is possible". I have tested with isosceles and equilateral triangle, and it works. I tested with
20.08.2021
509
views
2
comments
0
Raymond Steenvoorden
Level 4
Almere Stad
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
How bad is my solution?
Im getting an error but I do have the correct answer, It feels a bit like a bummer that the correct solution is a switch. But this works also fine. package com.codegym.task.task04.task0411; public class Solution { public static void main(String[] args) { checkSeason(12); ch
16.01.2021
834
views
4
comments
0
Ryan Palmer
Level 20
Philadelphia
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Under discussion
Passing filename to thread
So looking over the lessons on Threads, and trying to implement it here, I realized I didn't understand something. When we start the thread in the main method we may have something like new ReadThread(string).start(); then in the RunThread method we create something like Private String fileName
19.08.2021
357
views
2
comments
0
Nashid Kp
Level 2
Manjeri
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Pls verify my code & help
what's wrong in my code? and, I didn't understand below mentioned part from the question: VariableType variableName = new TypeOfObjectBeingCreated();
19.08.2021
876
views
4
comments
0
Gytis Laukaitis
Level 6
Marijampole
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
What's wrong ?
Display numbers in descending order. Console input 5 4 7. Console output 7 5 4.
13.08.2021
323
views
2
comments
0
Alhoussein Camara
Level 7
United States of America
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
How am I failing this task?
I do not understand why I am failing this task. I did read in the names of 6 cats in the specified order. String catGrandFatherName = reader.readLine(); Cat catGrandfather = new Cat(catGrandFatherName); String catGrandMotherName = reader.readLine(); Cat cat
19.08.2021
714
views
2
comments
0
jerry
Level 16
Earth C-137
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
fail with correct output
even first requirement is failed however i get the right output aka longest string aka "grandma" any idea why lol ~i can understand last requirement not matching-i didnt write it yet
18.08.2021
437
views
7
comments
0
jerry
Level 16
Earth C-137
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
grand pa/ma
23, 26 How to correctly put grandfather and grandmother 👊🧠 ? and WHYYYYYY tried 214674752 different ways: with or without 'cat" big, small letters.. still same error thank you
14.08.2021
455
views
4
comments
0
Edward Rickers
Level 15
Washington
Question about the task
Player and Dancer
Java Core
,
Level 4
,
Lesson 4
Under discussion
What am I missing that calling the play() and dance() are not working?
Putting void in front says start of illegal expression which I also don't fully understand
13.08.2021
527
views
2
comments
0
Anitamalina
Level 18
København
Under discussion
Object call versus class-calls ?
I try to understand the difference between example 1 and example 2 below, and why it matters, what to call. I think, I understand that, Example 1 I call the class Idea and Example 2 I call the object of Idea-class. But why does it matter, and when to prefer the example 1 over example 2, and the othe
16.08.2021
298
views
2
comments
0
Nami
Level 10
Burwood
Question about the task
In decreasing order
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
My code works and conditions satisfied , but why we do not need return statement ?
public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int[] array = new int[20]; for (int i = 0; i < 20; i++) { array[i] = Integer.parseInt(reader.read
17.08.2021
392
views
2
comments
0
Dominik
Level 27
Warsaw
Question about the task
MVC (part 2)
Java Multithreading
,
Level 4
,
Lesson 14
Resolved
Package does not exist
I have a problem, compilator is saying that my package does not exist: Error in com/codegym/task/task36/task3608/view/View.java on line 3 package com.codegym.task.task36.task3608.controller does not exist. But it's definitely there. I don't know what is the problem. It's strange that I see no other
17.08.2021
878
views
12
comments
0
Shashikant Sharma
Level 8
Surat
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Resolved
😭 Can Anybody Explain Me This..........?
I Am Not Able To UnderStand What This Task Actually Want Me To Do???? I Have No Idea Where To Begin With????? Please Assist, No Direct Answers. OK.
15.08.2021
641
views
10
comments
0
wasnt me
Level 4
United Kingdom
Question about the task
Come on, lucky seven!
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What's wrong with my solution?
public class Solution { public static void main(String[] args) { checkInterval(60); checkInterval(112); checkInterval(10); } public static void checkInterval(int a) { if(a < 50 || a > 100){ System.out.println("The number a is n
12.08.2021
496
views
3
comments
0
Zach
Level 22
Fort Collins
Question about the task
Factory method pattern
Java Core
,
Level 6
,
Lesson 13
Under discussion
Any help is appreciated.
Not sure where to put the Factory to allow it to access the enum...
17.08.2021
322
views
1
comment
0
Harrison Tran
Level 14
Anaheim
Question about the task
Cat code won't compile
Java Syntax
,
Level 7
,
Lesson 12
Resolved
I don't understand what this method : @Override public String toString() role in this code, don't see it getting call anywhere
@Override public String toString() { return "Cat's name: " + name + ", age: " + age + ", weight: " + weight + ", tail: " + tailLength; package com.codegym.task.task07.task0726; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; imp
01.04.2020
1166
views
3
comments
1
Vlad
Level 29
Khon Kaen
Question about the task
MVC (part 3)
Java Multithreading
,
Level 4
,
Lesson 14
Resolved
please help
my code seems to be working fine and i get the right output
15.08.2021
424
views
2
comments
0
Show more
1
...
54
55
56
57
58
...
366
Please enable JavaScript to continue using this application.