AI Academy
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
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
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
7/12/19
1919
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.
8/13/20
883
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?
4/16/19
1880
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?
8/13/20
692
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);
2/6/20
887
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
8/11/20
869
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?
8/12/20
882
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
8/13/20
673
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
8/13/20
498
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()
8/13/20
597
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...
7/26/20
865
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?
7/12/19
2374
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
6/25/19
1608
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.
8/13/20
683
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
8/13/20
802
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?
7/24/20
580
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.
7/28/20
744
views
2
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() { }
8/13/20
634
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.
8/12/20
659
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
8/12/20
579
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.
2/29/20
1386
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?
8/5/20
676
views
3
comments
0
Gil Allen
Level 8
Johnstown
Question about the task
Only for the rich
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Can't find Iterator symbol?
I am getting an error message for line 21 - the carat is pointing at the Capital I and says can;t find symbol. Says symbol is class Iterator?? can't find its own class
8/12/20
1107
views
2
comments
0
Gil Allen
Level 8
Johnstown
Question about the task
10 thousand deletions and insertions
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Declaring the ArrayList
I thought that when you declared an ArrayList that you had to say what kind of variable would be in it. That wasn't done here, e.g. ArrayList, so can someone explain when you have to and when you don't have to declare the types in the ArrayList?? thanks
8/12/20
672
views
2
comments
0
bamughamye patrick
Level 8
Paris
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
What is the problem?
My code compiled well but why cant i get the last requirement right?
8/12/20
854
views
1
comment
0
Michał Pietrus
Level 33
Krakow
Question about the task
Archiver (part 10)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
Help please
Anyone know how to resolve that ? Validator says : Be sure the createZip method properly saves a directory and the files it contains. Be sure to use the FileManager class and the addNewZipEntry method.
5/18/20
847
views
5
comments
2
Ritik Gupta
Level 5
Etah
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
my code gives error for odd values
8/8/20
594
views
2
comments
0
Joyonta Saha
Level 31
Question about the task
Archiver (part 6)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
last Req. is not verifying?
Help!
8/27/19
1447
views
2
comments
2
sourav bamotra
Level 20
jammu
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Resolved
this piece of code in removeDuplicateByValue method is not enough to remove duplicate element from hashmap? if i simply call this method in main, it throws Exception in main. why so?
HashMap<String, String> copy = new HashMap<String, String>(map);
8/11/20
756
views
6
comments
0
Inifome
Level 10
Delta
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
can't find the problem
can't seem to satisfy the last condition. need help
8/12/20
616
views
0
comments
0
Show more
1
...
154
155
156
157
158
...
375
Please enable JavaScript to continue using this application.