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
  • James
    Level 41
    Not in list
    Question about the task CashMachine (part 12)
    Java Collections, Level 9, Lesson 15
    Resolved
    What's wrong here?I've ran the program several times and it appears to pass all the task conditions but it will not verify. I eventually tried to use the model solution, but even that won't pass. Please help me figure out what's wrong.
    • 6/12/21
    • 644views
    • 0comments
    0
  • Victor Omoha
    Level 8
    Raleigh
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    i need help with passing the 4th requirementpackage com.codegym.task.task07.task0713; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Playing Javarella */ public class Solution { public static void main(String[] args) throws Exception { //write your code h
    • 9/2/21
    • 544views
    • 2comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Under discussion
    Not passing the 5th taskNot sure what I need to change. Any help is appreciated. Thanks in advance.
    • 9/2/21
    • 602views
    • 1comment
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task The early bird gets the worm
    Java Core, Level 6, Lesson 13
    Under discussion
    I am probably overthinking this question....Appreciate if you could point me in the right direction. Thanks in advance.
    • 9/2/21
    • 633views
    • 2comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Snake (Part 17/20)
    Games, Level 0, Lesson 1
    Resolved
    Why is the last task failing?I am confused why my last task is not passing?
    • 7/15/21
    • 501views
    • 1comment
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Racer (Part 5/28)
    Games, Level 0, Lesson 5
    Under discussion
    Can't pass the second to last task??I'm confused as to why they are using these values as well this.width = matrix[0].length; this.height = matrix.length;
    • 9/1/21
    • 590views
    • 2comments
    0
  • Alexandru
    Level 22
    High Blantyre
    Question about the task Minesweeper (Part 7/16)
    Games, Level 0, Lesson 0
    Under discussion
    Works in browser but not on PCWhen I run it in browser it runs perfectly When I run it on my pc instead of numbers it displays some strange characters and it is not displaying the bomb icon. when it runs on pc I also get an error this displayed as some kind of error: 2021-08-26 11:37:50.661 java[7584:930059] CoreText note: C
    • 8/26/21
    • 650views
    • 1comment
    0
  • Andrea
    Level 20
    Question about the task Catching checked exceptions
    Java Syntax, Level 9, Lesson 8
    Resolved
    Not sure what the issue is In the code the handleExceptions method is calling method1, method2 and method3. I am using one try catch block The catch statement is catching and printing what exceptions are caught. Therefore not sure what the actual issue could be that's causing the validation to fail Please advise.
    • 8/11/19
    • 2378views
    • 8comments
    3
  • Stian Eggum Tellnes
    Level 15
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Under discussion
    Invalid method declaration?I know I solved this one a bit differently than the "main solution" but I think this should work. However I'm getting an invalid method declaration. anyone know why?
    • 8/31/21
    • 541views
    • 2comments
    0
  • Ahmad
    Level 7
    Detroit
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Resolved
    Third requirement not met. Not sure whyHi, The program works but for some reason the 3rd requirement is not met. I created two int arrays of 10 in size. What's the issue?
    • 8/30/21
    • 726views
    • 4comments
    0
  • Andrei
    Level 41
    Question about the task Is a palindrome possible?
    Java Collections, Level 9, Lesson 9
    Resolved
    Can anyone please help me understand the algorithm to this solution?First, when adding the char to the array, why does it add +1 ? Why is the algorithm looking to see if the char is even or odd? package com.codegym.task.task39.task3908; /* Is a palindrome possible? */ public class Solution { public static void main(String[] args) { } public stat
    • 7/30/21
    • 1253views
    • 13comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Catching custom exceptions
    Java Syntax, Level 9, Lesson 8
    Resolved
    Please helpI'm not actually sure what this code is doing, I've somehow managed to pass most of the requirements. I have no idea how to pass the last one though
    • 11/19/19
    • 2299views
    • 9comments
    4
  • Janet
    Level 2
    Orlando
    Under discussion
    No encuentro los ejercicios A partir del nivel 2 ya no me deja hacer los ejercicios. Alguien puede ayudarme por favor.
    • 6/1/21
    • 410views
    • 1comment
    0
  • Shashikant Sharma
    Level 8
    Surat
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Under discussion
    What's Wrong In The Code?I Got The Desired Output: Grandfather Grandmother Still Two Condition Are Not Fulfilled.
    • 8/28/21
    • 609views
    • 5comments
    0
  • scriptKing
    Level 7
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Under discussion
    mine is working but wont complete the exersize what have i missed package 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.strength> an
    • 8/29/21
    • 938views
    • 1comment
    0
  • JIng
    Level 10
    Richmond
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Resolved
    I need help.could someone correct my mistakes?
    • 3/13/19
    • 2481views
    • 5comments
    0
  • Indranil Chakraborty
    Level 3
    United Kingdom
    Question about the task Display right away
    Java Syntax, Level 3, Lesson 3
    Resolved
    Help🤨It says I’m missing. )
    • 8/25/21
    • 735views
    • 3comments
    2
  • Shashikant Sharma
    Level 8
    Surat
    Question about the task To the top of the list
    Java Syntax, Level 7, Lesson 6
    Resolved
    What's Wrong With The Code?I Got The Desired Output But The Third Requirement is missing. I Have No Idea of What They Want Me To Do? Can Anyone Explain Me?
    • 8/25/21
    • 994views
    • 9comments
    0
  • Khongpak Phupkdee
    Level 15
    Chiangrai
    Question about the task User, loser, coder and programmer
    Java Core, Level 4, Lesson 8
    Resolved
    Why in Person.java has implement by itself? public interface Person { class User implements Person { void live() { System.out.println("I usually just live."); } } class Loser implements Person { void doNothing() { System.out.println("I usually do nothing."); } } cl
    • 8/27/21
    • 972views
    • 8comments
    0
  • M suleman
    Level 20
    Lahore
    Question about the task Extending AmigoOutputStream
    Java Core, Level 8, Lesson 8
    Under discussion
    plz help,last condition is not satisfy line = reader.readLine(); String s="Y"; if(line.equals(s)) break; } isr.close(); reader.close(); }
    • 11/12/18
    • 1634views
    • 3comments
    0
  • Stian Eggum Tellnes
    Level 15
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    Why am I getting all these exception errors?I feel like I've solved the task as far as I can, but I'm not sure why I'm getting all these exception errors. I'm guessing it has something to do with either my loop never ending, or the fact that it can't handle parsing empty fields or something when it runs out of numbers. Any ideas?
    • 8/27/21
    • 853views
    • 2comments
    0
  • hidden #10618197
    Level 16
    Question about the task Snake (Part 20/20)
    Games, Level 0, Lesson 1
    Under discussion
    ErrorYesterday I fixed minesweeper and 2048. But Snake still doesn't run, I get that: Error: Could not find or load main class lib Caused by: java.lang.ClassNotFoundException: lib Is it looking for a class named "lib"? 6 months ago it worked well, but now? The classpath is equal to the other games bu
    • 8/26/21
    • 507views
    • 1comment
    0
  • Raj Mishra
    Level 2
    India
    Question about the task Robot wars
    Java Core, Level 3, Lesson 11
    Under discussion
    hitCount value is not ncreasing, could not understand the logicI dont understand, every time doMove(-,-) method is called, my hitCount remains 0. So only hand as body bodypart is called. Though its static, it should retain the last changed value. But in my case every time it's becoming 0. Could you please help with what I am missing here?
    • 8/27/21
    • 886views
    • 2comments
    0
  • Cinthya Cabanzo
    Level 22
    Bogota
    Question about the task Neo
    Java Core, Level 3, Lesson 11
    Resolved
    My code runs but did not pass the verification.My code runs but did not pass the verification.
    • 6/7/19
    • 2386views
    • 6comments
    0
  • jerry
    Level 16
    Earth C-137
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Under discussion
    setting the start dayhow to set first day of the year for this(my) program correctly ? firstly tried and failed with: LocalDate now = LocalDate.now(); LocalDate firstDay = now.with(firstDayOfYear()); changed all to "set" still wrong output. thank you
    • 8/27/21
    • 687views
    • 1comment
    0
  • Edward Rickers
    Level 15
    Washington
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion
    Why is the main function not void?Also why is it at the bottom when it is usually at the top?
    • 8/26/21
    • 844views
    • 2comments
    0
  • Kaushik Datta
    Level 2
    Suri
    Question about the task Kind words for the teacher
    Java Syntax, Level 0, Lesson 4
    Resolved
    do..while syntaxTrying to write an elegant code with do...while. please help
    • 8/26/21
    • 704views
    • 1comment
    0
  • 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
    • 8/26/21
    • 550views
    • 1comment
    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 ?
    • 8/25/21
    • 795views
    • 1comment
    0
  • Fabian Andiel
    Level 9
    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
    • 2/1/20
    • 2059views
    • 5comments
    0
  • 1
  • ...
  • 62
  • 63
  • 64
  • 65
  • 66
  • ...
  • 374
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 © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym