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
  • Ahmed
    Level 23
    Amsterdam
    Question about the task To the top of the list
    Java Syntax, Level 7, Lesson 6
    Resolved
    Don't know why it still doesn't accept the answer Can anyone explain why it still doesn't accept my answer? When i run the application locally it does what i expected. Thanks!
    • 5/6/19
    • 1925views
    • 6comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task OOP: Method overloading
    Java Core, Level 5, Lesson 12
    Under discussion
    Wheres's the problem ?Can't get
    • 8/9/19
    • 1179views
    • 1comment
    0
  • gmb55
    Level 25
    Tarnów
    Question about the task Following a pattern
    Java Core, Level 6, Lesson 13
    Resolved
    2.5s? What is wrong with this 2.5s?
    • 8/17/19
    • 1603views
    • 1comment
    0
  • Talha
    Level 5
    Lahore
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Resolved
    com/codegym/task/task03/task0316/Solution.java:13: error: reached end of file while parsing } ^What should I do to finish this error?
    • 8/8/19
    • 1399views
    • 1comment
    0
  • Patrick Lao
    Level 2
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    My code does not match the 5th requirement. Need help. 1. Under 'public static void print(String s)', I have type in once: System.out.println("Java is easy to learn!"); System.out.println("Java opens many opportunities"); In the display, it showed 4 strings. Then why the 5 requirement is failing? 2. also what is the difference between public static v
    • 8/6/19
    • 1489views
    • 3comments
    0
  • codeJavaster
    Level 15
    Goeteborg
    Question about the task Cats should not be abstract!
    Java Core, Level 2, Lesson 6
    Under discussion
    How do I use getName method?Could someone explain please?
    • 8/7/19
    • 1290views
    • 1comment
    0
  • Randall John
    Level 19
    San Jose
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    My Variable Values are Supposedly correct but I can't get the right answer.When I enter 1,2,2,4,5, -1, it doesn't work. It gives me 2.0 instead of 2.8 for some reason :(
    • 8/15/19
    • 1301views
    • 2comments
    0
  • Connor
    Level 8
    Boston
    Question about the task Create a Friend class
    Java Syntax, Level 5, Lesson 7
    Under discussion
    I'm not understanding the concept.I've read and reread the lecture. But I think I'm just not understanding why we initialize something. Could someone give me a real world example of the uses? Also I don't get the syntax very well so if you want to help me out with that then I'd appreciate it but I absolutely don't mind learning th
    • 4/25/19
    • 1652views
    • 2comments
    1
  • Ewerton
    Level 30
    Belo Horizonte
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Third requirement only. Help?Don't know where is the problem. First time this occurs... And the statement / initial code from the website differs from Intellij plugin.
    • 6/28/19
    • 1766views
    • 3comments
    0
  • Show How
    Level 8
    Newbury
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    Why is this solution not working.I have tested the code with different inputs and it gives the right output but not passing the most tests in codegym. I also tried changing List to ArrayList in the instant variable still no luck. Anybody please explain what I am doing wrong here? Thanks.
    • 5/21/19
    • 1767views
    • 10comments
    0
  • arvindsid
    Level 10
    Chennai
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    Check the createMap() method. The HashMap should consist of 10 entries that represent (last name, first name) pairs.What is wrong with the create map method given below? public static HashMap<String, String> createMap() { HashMap<String, String> hashMap = new HashMap<String, String>(); hashMap.put("last","Peter"); hashMap.put("last","Andy"); hashMap.put("last","
    • 3/7/19
    • 1877views
    • 4comments
    0
  • Aleksandar
    Level 11
    Skopje
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Can't pass verificationI tested my code and works fine. Any idea what's wrong?
    • 8/14/19
    • 1391views
    • 2comments
    2
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Under discussion
    Why i get so many failed verificationplease help
    • 8/16/19
    • 1116views
    • 1comment
    0
  • Luyi
    Level 31
    Kosice
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Resolved
    any tips?Hi all, could you please give me some tips?
    • 8/15/19
    • 1288views
    • 2comments
    0
  • Laurap5
    Level 9
    Vilnius
    Question about the task Labels and numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    Please help :(I'm not really sure, why it doesn't work :( Error: If the number is negative and odd, display "Negative odd number".
    • 11/11/18
    • 2514views
    • 9comments
    0
  • Husain Kothari
    Level 20
    Mumbai
    Question about the task Even characters
    Java Core, Level 9, Lesson 5
    Resolved
    I am using FileWriter but the verifier asks me to use FileWriterSince I am already using File writer I dont get why my code is not verifying the use FileWriter condition.
    • 7/28/19
    • 1700views
    • 2comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Rarest bytes
    Java Core, Level 8, Lesson 3
    Under discussion
    give me a help plsi need a full code
    • 6/28/19
    • 1484views
    • 1comment
    0
  • OnigiriByte
    Level 16
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    Is there a solution without making a copy of the HashMap?So I managed to solve problems like this by making a copy which seems easier, but I wanted to know other ways without using a copy and not getting the ConcurrentModificationException. I've already solved it using a copy, but It would be appreciated if I could get comments with hints, or dm a soluti
    • 1/28/19
    • 2166views
    • 8comments
    0
  • Thomas
    Level 13
    Scottsdale
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Under discussion
    How did this ugly Code pass ? .. output is incorrect ...... How do I fix it for Winter ? if(month>=3 && month<=5) { System.out.println("spring"); } else if(month>=6 && month<=8) { System.out.println("summer"); } else if(month >=9 && month <=11) { System.out.println("aut
    • 5/24/19
    • 1663views
    • 6comments
    1
  • R3fiX
    Level 12
    Tarnow
    Question about the task Animal set
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Object comparisonI know, that there is better and easier way to write removeCats method, but I'm just wondering, why my version does not work. The error tells about noSuchElementException so it seems that comparing objects returning false in every case. I tried also with '==' but it didn't work as well. Thanks for h
    • 8/15/19
    • 1640views
    • 1comment
    0
  • Alex
    Level 24
    Sibiu
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Everything prints correctly, but fails to last requirementEverything prints correctly with and without the for loop.What is the problem ? It fails to last requirement. package com.codegym.task.task08.task0824; import java.util.ArrayList; /* Make a family */ public class Solution { public static void main(String[] args) { //write your code
    • 8/12/19
    • 1692views
    • 2comments
    0
  • Przemysław Dr
    Level 20
    Tricity
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Resolved
    How parsing should look like?Does anyone successfully parsed given string? I'm aware that this task could be done with a different approach but I would like to understand why it is not parsing... public static void main(String[] args) throws ParseException { String date = "FEBRUARY 4 2015"; Date date1 = new Si
    • 8/9/19
    • 1833views
    • 2comments
    1
  • Denis
    Level 22
    Kharkiv
    Question about the task All that moves
    Java Core, Level 3, Lesson 2
    Under discussion
    give me your help bro :(i dont understand how i can ddo this, but i understand all process
    • 6/24/19
    • 1427views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Brain training
    Java Core, Level 5, Lesson 12
    Under discussion
    help me plsgime me a code for my full understanding.thanks
    • 6/26/19
    • 1439views
    • 2comments
    0
  • Jen P
    Level 26
    Question about the task Iterating through a file tree
    Java Collections, Level 1, Lesson 2
    Archived
    Error : The output stream to the file must be closed.I constantly met errors of "The output stream to the file must be closed." However, as shown in my current solution, I am pretty sure I have explicitly closed all file output stream, writer , or reader objects. In addition, referring to https://codegym.cc/help/4001 where we shared a similar solutio
    • 8/13/19
    • 1679views
    • 2comments
    0
  • Boris the Llama
    Level 20
    Maidstone
    Question about the task Following a pattern
    Java Core, Level 6, Lesson 13
    Resolved
    Working correctly but not verifying? The code seems to be working, but it doesn't verify. In intelliJ it shows the output that is required, but fails the 4th condition.
    • 8/11/19
    • 1531views
    • 2comments
    0
  • Abu Bakker Siddiq H
    Level 5
    Salem
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Why the last case is not passing at allDo please refer the code and help me !
    • 7/29/19
    • 1340views
    • 3comments
    0
  • Jay
    Level 17
    Washington
    Question about the task Buggy initializeIdAndName
    Java Core, Level 3, Lesson 2
    Under discussion
    Task verified BUT I have a question about using "this" Inside the InitializeAndName method, I initially used: return new User(); and my code did not verify. However, after using "return this;", the code verified. What I understand from that is 1. the return new User(); returned a new instance of the User class without any parameters 2. while the "retur
    • 8/13/19
    • 1345views
    • 2comments
    0
  • Scott
    Level 13
    Boston
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Multiple Working Solutions Fail Task 3 & 4Attempted multiple ways and getting the correct output, but the 3 & 4 task requirements show as failures. Attached is one of the working solutions.
    • 8/13/19
    • 1651views
    • 2comments
    1
  • hidden #10462592
    Level 8
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Resolved
    Desired result obtained but yet failed to satisfy conditionsThe code is able to give output correctly and it is also a infinite loop which means user can enter multiple values and still get the desired output. Alas, it fails to fail to satisfy the conditions mentioned. why?
    • 8/13/19
    • 1356views
    • 2comments
    0
  • 1
  • ...
  • 289
  • 290
  • 291
  • 292
  • 293
  • ...
  • 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