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
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Archiver (part 16)
    Java Multithreading, Level 7, Lesson 15
    Under discussion
    2nd and 3rd requirement doesn't not metpublic void removeFiles(List pathList) throws Exception{ if(!Files.notExists(zipFile)) throw new NoSuchZipFileException(); Path tempFile = Files.createTempFile(zipFile.getParent(),"tempFile", ".zip"); try (ZipInputStream zipInputStream = new ZipInputStream(Files.
    • 11.12.2019
    • 1382views
    • 1comment
    0
  • IvanNik
    Level 15
    Sofia
    Question about the task Month number
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Don't know why not verifySomething is wrong with my output but I can't figure it out what.Cannot verify last step - display the text.
    • 18.01.2019
    • 1618views
    • 3comments
    2
  • HaeWon Chung
    Level 17
    Boston
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Resolved
    Why it doesn't work?I understand that just assigning reversearray to array doesn't work. So I googled and found clone() method. But it still doesn't work. If I display the result of array inside sort method it displays numbers in descending order. But in the main method, it displays in ascending order. I KNOW how to
    • 29.01.2020
    • 1461views
    • 6comments
    0
  • shabarish kumar
    Level 20
    Hyderabad
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Not able to find the mistakeI have tested my code for different in ide. It has shown correct results only but here its not accepting. can anyone help me please.
    • 22.06.2019
    • 1559views
    • 1comment
    1
  • Austeja
    Level 10
    Kaunas
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved
    The code won't verify, even though it works. Could someone take a look? The code won't verify, even though it works. Could someone take a look?
    • 25.01.2020
    • 1060views
    • 6comments
    0
  • jawad
    Level 10
    Lahore
    Question about the task Census
    Java Syntax, Level 8, Lesson 8
    Under discussion
    what's the probelmthe third condition not verifying
    • 10.01.2020
    • 979views
    • 2comments
    0
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Archiver (part 10)
    Java Multithreading, Level 7, Lesson 15
    Under discussion
    last conditionerror showing "if a file or folder isn't passed to the createZip(Path source) method, then you need to throw a PathNotFoundException"
    • 06.12.2019
    • 1013views
    • 1comment
    0
  • Moses
    Level 6
    Beune
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Please why is this wrong?The program only prints winter and then spring for the other tested values
    • 19.12.2019
    • 1021views
    • 2comments
    0
  • Emil
    Level 4
    Harnosand
    Question about the task Come on, lucky seven!
    Java Syntax, Level 4, Lesson 4
    Resolved
    Numbers r not correct, please help meCan anyone help me to tell me what is wrong with my code?
    • 18.01.2020
    • 1158views
    • 2comments
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Question about the task Even to the moon!
    Java Syntax, Level 2, Lesson 8
    Resolved
    In some cases why the result is _.150000000000002 instead of _.15?When i call the getWeight method with the 96 argument, then the output will be 16.32. It's OK. But if i call the getWeight method for example with the 95 argument, then the output will be 16.150000000000002 instead of 16.15. I wonder why?... (And the Verify button ticks all the boxes with green.)
    • 29.01.2020
    • 1084views
    • 4comments
    0
  • Aleksander
    Level 18
    Katowice
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    What i s wrong with this code ?In my opinion the program compiles correctly because the returned values are consistent with the actual ones
    • 30.01.2020
    • 1411views
    • 2comments
    0
  • krystian
    Level 9
    Kozle
    Question about the task Remove and insert
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Help pls. I can not pass the last Requirements
    • 30.01.2020
    • 854views
    • 2comments
    0
  • Pandora
    Level 17
    Stockholm
    Question about the task More Sam-I-Am
    Java Syntax, Level 7, Lesson 9
    Resolved
    Why is this not passing?I do have the string "Ham" after each word, on a new line. This is my output: Sam Ham I Ham Am Ham I don't understand why the condition "After each word, add the string "Ham" to the list" isn't passing, can someone explain this to me please?
    • 30.01.2020
    • 1448views
    • 2comments
    0
  • Vicente
    Level 9
    Argentina
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Do i really need to create 6 cat objects with different names?PS: i know it's a complicated way to get the job done, but i didn't want to system print 80 billion times
    • 15.11.2019
    • 1515views
    • 3comments
    1
  • 季军
    Level 38
    Shanghai
    Question about the task Snake (part 11)
    Java Multithreading, Level 2, Lesson 18
    Under discussion
    Why the validator forces us to use Math.random()?The validator only accepts Math.random() and reject any other implemention, even though Math.random() is a delegation of random.nextDouble()
    • 30.01.2020
    • 796views
    • 1comment
    0
  • SIDDHARTHA BISWAS
    Level 9
    Bhubaneshwar
    Question about the task Boss, something weird is happening
    Java Syntax, Level 5, Lesson 12
    Under discussion
    whats the problem ?getting this error message. "The program should display a string that ends with the sum of the entered numbers."
    • 07.02.2019
    • 1498views
    • 4comments
    0
  • Fabian Andiel
    Level 25
    Vienna
    Under discussion
    Input StreamGuys can you help me with the following detail. Why does the following example work. I dont get my head around the following line: " int data = inputStream.read(); " get the bytes of the file c:/data.txt concetinated automatically in the vaiable data or does inputStream.read() read the file
    • 30.01.2020
    • 893views
    • 1comment
    0
  • Arko Sarkar
    Level 8
    Mumbai
    Question about the task Max constructors
    Java Syntax, Level 5, Lesson 9
    Under discussion
    What does this error mean? public class Circle { public double x; public double y; public double radius; //write your code here public Circle(double x) { this.x = x; } public Circle(double x, double y) { this(x); this.y = y; } public Circle
    • 28.08.2018
    • 2016views
    • 5comments
    0
  • Charlie Branson
    Level 12
    Wytheville
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    not sure why this isnt working!any help!
    • 29.01.2020
    • 1249views
    • 1comment
    0
  • Charlie Branson
    Level 12
    Wytheville
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Resolved
    not sure why this is failing. the last testpackage com.codegym.task.task05.task0502; /* Implement the fight method */ public class Cat { public int age; public int weight; public int strength; public Cat() { } public boolean fight(Cat anotherCat) { //write your code here if (this.age + this.stren
    • 29.01.2020
    • 1397views
    • 2comments
    0
  • HaeWon Chung
    Level 17
    Boston
    Under discussion
    I cannot run the code on IntelliJ Run icon is disabled so I cannot run or test it before submitting for verification. Does anyone have idea how to activate run icon?
    • 29.01.2020
    • 785views
    • 6comments
    0
  • Ailin
    Level 3
    Saint Louis
    Question about the task Minesweeper (Part 5/16)
    Games, Level 0, Lesson 0
    Resolved
    What am I doing wrong?Pls help
    • 23.01.2020
    • 1410views
    • 2comments
    0
  • Шерзод Мирсадыков
    Level 8
    London
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion
    Stuck with the last conditionHi guys! Can't figure out what's wrong with the code - the last condition never confirms. Could someone explain the reason?
    • 29.01.2020
    • 1757views
    • 1comment
    0
  • Michał Witek
    Level 12
    Warsaw
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Req 3 not met, even tho return values are fineShould i use Calendar instead?
    • 29.01.2020
    • 1357views
    • 1comment
    0
  • Tessa Podbury
    Level 18
    Melbourne
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Under discussion
    Output is correct but not passingHi, My output works perfectly and I get the correct sum printed to screen no matter how many numbers I try. However I'm not passing any of the specs. Please help
    • 29.01.2020
    • 961views
    • 2comments
    0
  • Shujaat Mirza
    Level 3
    Houston
    Question about the task Comment out the superfluous
    Java Syntax, Level 1, Lesson 4
    Under discussion
    how to reset task?how to reset task?
    • 28.10.2019
    • 1443views
    • 3comments
    0
  • HaeWon Chung
    Level 17
    Boston
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Resolved
    Initializing issueWith this code I got an error message Error in com/codegym/task/task07/task0721/Solution.java on line 28 variable maximum might not have been initialized Since i starts with 0, I was assuming list[i] assign to maximum and minimum which would initialize 2 variables. But apparently it doesn't work t
    • 28.01.2020
    • 1037views
    • 9comments
    0
  • Ailin
    Level 3
    Saint Louis
    Question about the task Minesweeper (Part 9/16)
    Games, Level 0, Lesson 0
    Under discussion
    Explanation requiredPls can someone explain
    • 24.01.2020
    • 1185views
    • 1comment
    1
  • honeybun$
    Level 3
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    why won't it compile?it says M(string 15) wasn't initialized.
    • 10.01.2020
    • 1405views
    • 2comments
    0
  • Mikayla Pace
    Level 27
    Salt Lake City
    Question about the task Threads of a string or stringy threads? That's the question
    Java Multithreading, Level 2, Lesson 5
    Under discussion
    How do they want the strings formatted? I know I need to implement the other two methods as well, but I can't even get the first one to verify, a bit confused about how they want them to be formatted. Any clues would be helpful.
    • 18.01.2020
    • 1222views
    • 2comments
    0
  • 1
  • ...
  • 234
  • 235
  • 236
  • 237
  • 238
  • ...
  • 371
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