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
Azja
Level 32
Krakow
Question about the task
Archiver (part 8)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
Whats wrong here?
I'm getting this error: "If any exception other than a NoSuchZipFileException occurs, then display "An error occurred. Please check the entered data." Even when I copied this to catch statement it didn't pass
01.07.2019
1657
views
7
comments
0
Xavier
Level 17
Pearland
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
I don't know what happened.
I opened a past task to check something and when I opened this one again, when I tried to run it, it gives an error: Error:Module '1.JavaSyntax' production: java.lang.ClassCastException: class org.jetbrains.jps.builders.java.dependencyView.TypeRepr$PrimitiveType cannot be cast to class org.jetbrain
13.08.2020
1864
views
8
comments
0
Lgd
Level 20
London
Question about the task
Census
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Struggling to see why this won't work. It seems to return the correct numbers. Any help please. Thanks
Struggling to see why this won't work. It seems to return the correct numbers. Any help please. Thanks
17.03.2020
1428
views
5
comments
0
Emenike Ayalogu
Level 13
Bowling Green
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Resolved
I can’t see what is wrong with this code. Please help!
I don’t know why I can’t pass the verification.
25.05.2019
1660
views
3
comments
0
Lawson
Level 29
Lagos
Question about the task
Who called me?
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
help
pls what's my error here
13.08.2020
957
views
1
comment
0
Henrique
Level 41
São Paulo
Question about the task
Archiver (part 2)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
Absolutely no idea of what to do. HELP PLS
idk if it's just me, but I think these requirements and conditions are EXTREMELY confusing i cannot even test the code, because if won't even compile... so, please, help?
12.08.2020
531
views
3
comments
0
Sanjeevkumar
Level 22
Mumbai
Question about the task
John Johnson
Java Core
,
Level 9
,
Lesson 11
Resolved
what i did wrong?
last two sucks!
13.08.2020
445
views
2
comments
0
Nithin
Level 35
Hyderabad
Question about the task
Archiver (part 16)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
anyone please help me with this
I've tried a bunch of methods but none are working public void removeFiles(List pathList) throws Exception { if(!Files.notExists(zipFile)) throw new NoSuchZipFileException(); Path tempFile = Files.createTempFile(zipFile.getParent(),"tempFile", ".zip"); try (ZipIn
12.07.2019
1655
views
5
comments
2
Abhishek Yadav
Level 6
New Delhi
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Please help me
Why I am getting error. Please help.
13.08.2020
747
views
3
comments
0
Oleh
Level 32
Kyiv
Question about the task
Archiver (part 15)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
I am stuck
Method works well even with inner directories but not passes the validation. Is it completable?
16.04.2019
1645
views
2
comments
2
Radosław
Level 30
Rzeszów
Question about the task
Shortener (7)
Java Collections
,
Level 6
,
Lesson 15
Resolved
Help
Any help?
13.08.2020
522
views
2
comments
0
Kent Hervey
Level 19
Question about the task
Exception when working with Map collections
Java Syntax
,
Level 9
,
Lesson 6
Under discussion
What does (null) do?
I don't know what this does: HashMap map = new HashMap(null);
06.02.2020
730
views
1
comment
0
Peter Schrijver
Level 23
Hilversum
Question about the task
Rarest bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
Infinite loop detected. I don't know where
Verify on CodeGym said "The program ran too long - Check your code. It looks like you have an infinite loop." Program runs on IntelliJ and give correct output. Looking for your support on this
11.08.2020
713
views
1
comment
0
Maxine Hammett
Level 19
San Diego
Question about the task
Fix four mistakes
Java Core
,
Level 4
,
Lesson 8
Resolved
Return type Error
I'm getting this error "invalid method declaration; return type required. file com/codegym/task/task14/task1418/Solution.java, line 26, position 608" I didn't think the last two functions returned anything. What do I have wrong?
12.08.2020
670
views
6
comments
0
Darek
Level 41
Katowice
Question about the task
Space (part 3)
Java Collections
,
Level 3
,
Lesson 15
Resolved
What's problem?
In my opinion, a job well done. Fields correctly initialized and correctly implemented Getter and Setter. However, the validator sticks to the ship field getter. "Create a ship field in the Space class. Add a getter and setter for it. You have not added a valid getter for the ship field." I do not
13.08.2020
535
views
1
comment
0
dhanush
Level 30
Chennai
Question about the task
Two in one
Java Core
,
Level 8
,
Lesson 11
Resolved
help me
It tells the first file is not closed but i have closed it after it finishes it's work
13.08.2020
344
views
4
comments
0
Majek
Level 10
Katowice
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
i noted about 0... cmon
package com.codegym.task.task04.task0429; /* Positive and negative numbers */ import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int a = scan.nextInt()
13.08.2020
456
views
2
comments
0
Pranit Gade
Level 9
Mumbai
Question about the task
Who called me?
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
HELP!!
Can someone tell me what is wrong...
26.07.2020
725
views
2
comments
0
hidden #10444738
Level 16
Question about the task
Animal set
Java Syntax
,
Level 8
,
Lesson 11
Resolved
null pointer exception line 51 and print to screen?
I'm getting a null pointer exception on the join method with the addAll dogs line 51 and it wont print to screen why?
12.07.2019
2198
views
5
comments
2
Andrew
Level 29
Seattle
Question about the task
Archiver (part 13)
Java Multithreading
,
Level 7
,
Lesson 15
Under discussion
Help please!
Where am I going wrong? public List getFileList() throws Exception { if (!Files.isRegularFile(zipFile)) throw new NoSuchZipFileException(); List files = new ArrayList<>(); try (ZipInputStream zipInputStream = new ZipInputStream(Files.newInputStream(zipFile))) { ZipEntry
25.06.2019
1340
views
3
comments
2
Anton
Level 26
Oslo
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Under discussion
Correct output, but not verifying.
Correct output, but not verifying.
13.08.2020
507
views
5
comments
0
Yuvavimal
Level 12
coimbatore
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
what is wrong ?
package com.codegym.task.task07.task0718; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; /* Checking the order */ public class Solution { public static void main(String[] args) throws IOException { //write your code he
13.08.2020
647
views
3
comments
0
Joel Pearce
Level 22
Birmingham, UK
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Code works, but won't pass one of the conditions
Anyone know why?
24.07.2020
426
views
2
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
Cows are animals too
Java Core
,
Level 2
,
Lesson 6
Resolved
I don't understand....
I'm lost on this excersize could someone please explain what I'm doing wrong? Thank you your help is appreciated.
28.07.2020
587
views
2
comments
0
Raisa Toscano
Level 22
Tepic
Question about the task
Cows are animals too
Java Core
,
Level 2
,
Lesson 6
Resolved
what is the problem here?
public class Solution { public static void main(String[] args) { Animal e= new Cow(); e.getName(); } } abstract class Animal { public abstract String getName(); } class Cow extends Animal{ public String getName(){ String s="Cow"; return s;}
08.01.2019
1976
views
4
comments
0
Adil
Level 7
Eindhoven
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Where is constructor method()?
I solved the task but I don't understand where the constructor method is. Don't you need one to make an object? I expected this: public Man() { }
13.08.2020
493
views
2
comments
0
peter
Level 13
Den Haag
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Resolved
why doesn't it fullfil requirements 3 and 5?
i have no idea why my code doesn't work so a little bit of help would be nice and appreciated.
12.08.2020
510
views
5
comments
0
Andrei Stratu
Level 18
Iasi
Question about the task
Rarest bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
Getting an error
Exception in thread "main" java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader 'bootstrap') - I don't understand why I get this error. I cannot check the output to see what I am doi
12.08.2020
416
views
2
comments
0
Adam Maichrzik
Level 22
Katowice
Question about the task
SimpleObject interface
Java Core
,
Level 3
,
Lesson 11
Resolved
Need help and advice
Need a little help.
29.02.2020
1230
views
3
comments
0
Ed Cab
Level 15
Hawthorne
Question about the task
Fixing bugs
Java Core
,
Level 3
,
Lesson 11
Under discussion
} <-- expected ??
Error message says there is problem with the braces in this code. I don't see it. How do I solve this one?
05.08.2020
500
views
3
comments
0
Show more
1
...
150
151
152
153
154
...
372
Please enable JavaScript to continue using this application.