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
  • 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?
    • 14.08.2019
    • 1296views
    • 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
    • 16.08.2019
    • 1008views
    • 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?
    • 15.08.2019
    • 1175views
    • 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.2018
    • 2351views
    • 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.
    • 28.07.2019
    • 1580views
    • 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
    • 28.06.2019
    • 1354views
    • 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
    • 28.01.2019
    • 1992views
    • 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
    • 24.05.2019
    • 1538views
    • 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
    • 15.08.2019
    • 1509views
    • 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
    • 12.08.2019
    • 1521views
    • 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
    • 09.08.2019
    • 1713views
    • 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
    • 24.06.2019
    • 1337views
    • 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
    • 26.06.2019
    • 1289views
    • 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
    • 13.08.2019
    • 1582views
    • 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.
    • 11.08.2019
    • 1430views
    • 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 !
    • 29.07.2019
    • 1232views
    • 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
    • 13.08.2019
    • 1228views
    • 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.
    • 13.08.2019
    • 1508views
    • 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?
    • 13.08.2019
    • 1250views
    • 2comments
    0
  • Anjali Sharma
    Level 6
    Chennai
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    I don't know why this is showing errorAny suggestions ?
    • 03.10.2018
    • 1726views
    • 5comments
    0
  • hidden #10366080
    Level 5
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    this is a working code, but i need optimization if(year % 400 == 0){ System.out.println("Number of days in the year: " + 366); }else if(year % 100 == 0 && year % 400 != 0 ){ System.out.println("Number of days in the year: " + 365); }else if(year % 4 == 0){ System.out.println("Number of
    • 06.11.2018
    • 1511views
    • 6comments
    0
  • Vatsal Patel
    Level 15
    Naperville
    Question about the task Good or bad?
    Java Syntax, Level 4, Lesson 4
    Resolved
    I am not sure what the issue is? The code logic works but I am failing in the requirements.
    • 23.01.2019
    • 2385views
    • 7comments
    0
  • Brandon Nicolle
    Level 5
    Edmonton
    Question about the task Dividing is good
    Java Syntax, Level 3, Lesson 1
    Under discussion
    I don't understandHow is the div function being ran 3 times by coding System.out.println??? I'm not actually calling the div function, I'm only asking the compiler to print out a / b, so why is it doing it 3 times? I don't understand how the compiler pulls all this stuff together. Can somebody explain this to me in
    • 10.08.2019
    • 1164views
    • 4comments
    0
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    Couldn't pass 4th conditionimport java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; public class solution { public static void main(String[] args) throws IOException {
    • 04.08.2019
    • 964views
    • 2comments
    0
  • علي حجار
    Level 18
    Bursa
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    help output is currect , but i can ou got it
    • 04.12.2018
    • 2059views
    • 7comments
    0
  • harshshah
    Level 9
    Gandhinagar
    Question about the task Display right away
    Java Syntax, Level 3, Lesson 3
    Under discussion
    how to use assigment operatorI cannot find the error in the this code.
    • 21.02.2019
    • 2232views
    • 5comments
    0
  • shovan
    Level 22
    Kolkata
    Question about the task Turnip
    Java Core, Level 3, Lesson 11
    Under discussion
    it does not display anythingwhy IndexOutOfBounds Exception?
    • 30.06.2019
    • 1493views
    • 2comments
    2
  • KARAN BHOITE
    Level 15
    Nagpur
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    plz tell me...i gave up.
    • 10.08.2019
    • 1318views
    • 3comments
    0
  • 季军
    Level 38
    Shanghai
    Question about the task Adding a file to an archive
    Java Collections, Level 1, Lesson 6
    Under discussion
    pls help meDon't know what's wrong with my solution, it run just as the condition on my computer, but still cannot pass the test. It seems that some kind of exception occured, but iI cannot figure it out...
    • 10.08.2019
    • 1274views
    • 2comments
    0
  • sailaja
    Level 3
    Hyderabad
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    what's wrong in my codepackage com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); Strin
    • 30.07.2019
    • 1632views
    • 4comments
    0
  • 1
  • ...
  • 287
  • 288
  • 289
  • 290
  • 291
  • ...
  • 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