CodeGym
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
  • 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
    • 1657views
    • 7comments
    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
    • 1864views
    • 8comments
    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. ThanksStruggling to see why this won't work. It seems to return the correct numbers. Any help please. Thanks
    • 17.03.2020
    • 1428views
    • 5comments
    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
    • 1660views
    • 3comments
    0
  • Lawson
    Level 29
    Lagos
    Question about the task Who called me?
    Java Syntax, Level 9, Lesson 2
    Under discussion
    helppls what's my error here
    • 13.08.2020
    • 957views
    • 1comment
    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 PLSidk 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
    • 531views
    • 3comments
    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
    • 445views
    • 2comments
    0
  • Nithin
    Level 35
    Hyderabad
    Question about the task Archiver (part 16)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    anyone please help me with thisI'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
    • 1655views
    • 5comments
    2
  • Abhishek Yadav
    Level 6
    New Delhi
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Under discussion
    Please help meWhy I am getting error. Please help.
    • 13.08.2020
    • 747views
    • 3comments
    0
  • Oleh
    Level 32
    Kyiv
    Question about the task Archiver (part 15)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    I am stuckMethod works well even with inner directories but not passes the validation. Is it completable?
    • 16.04.2019
    • 1645views
    • 2comments
    2
  • Radosław
    Level 30
    Rzeszów
    Question about the task Shortener (7)
    Java Collections, Level 6, Lesson 15
    Resolved
    HelpAny help?
    • 13.08.2020
    • 522views
    • 2comments
    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
    • 730views
    • 1comment
    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 whereVerify 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
    • 713views
    • 1comment
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Fix four mistakes
    Java Core, Level 4, Lesson 8
    Resolved
    Return type ErrorI'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
    • 670views
    • 6comments
    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
    • 535views
    • 1comment
    0
  • dhanush
    Level 30
    Chennai
    Question about the task Two in one
    Java Core, Level 8, Lesson 11
    Resolved
    help meIt tells the first file is not closed but i have closed it after it finishes it's work
    • 13.08.2020
    • 344views
    • 4comments
    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... cmonpackage 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
    • 456views
    • 2comments
    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
    • 725views
    • 2comments
    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
    • 2198views
    • 5comments
    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
    • 1340views
    • 3comments
    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
    • 507views
    • 5comments
    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
    • 647views
    • 3comments
    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 conditionsAnyone know why?
    • 24.07.2020
    • 426views
    • 2comments
    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
    • 587views
    • 2comments
    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
    • 1976views
    • 4comments
    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
    • 493views
    • 2comments
    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
    • 510views
    • 5comments
    0
  • Andrei Stratu
    Level 18
    Iasi
    Question about the task Rarest bytes
    Java Core, Level 8, Lesson 3
    Resolved
    Getting an errorException 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
    • 416views
    • 2comments
    0
  • Adam Maichrzik
    Level 22
    Katowice
    Question about the task SimpleObject interface
    Java Core, Level 3, Lesson 11
    Resolved
    Need help and adviceNeed a little help.
    • 29.02.2020
    • 1230views
    • 3comments
    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
    • 500views
    • 3comments
    0
  • 1
  • ...
  • 150
  • 151
  • 152
  • 153
  • 154
  • ...
  • 372
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym