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
  • 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 ?
    • 10/3/18
    • 1826views
    • 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
    • 11/6/18
    • 1630views
    • 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.
    • 1/23/19
    • 2520views
    • 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
    • 8/10/19
    • 1273views
    • 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 {
    • 8/4/19
    • 1060views
    • 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
    • 12/4/18
    • 2240views
    • 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.
    • 2/21/19
    • 2371views
    • 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?
    • 6/30/19
    • 1613views
    • 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.
    • 8/10/19
    • 1432views
    • 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...
    • 8/10/19
    • 1378views
    • 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
    • 7/30/19
    • 1784views
    • 4comments
    0
  • Picvajzmen
    Level 20
    Belgrade
    Question about the task Different methods for different types
    Java Core, Level 5, Lesson 12
    Resolved
    works but will not verify..im guessing its because of the way it checks for verification but i don't know.
    • 7/24/19
    • 1575views
    • 3comments
    0
  • Shaun Forster
    Level 14
    United Kingdom
    Question about the task Dividing by zero
    Java Syntax, Level 9, Lesson 11
    Resolved
    Keeps saying method does not exist, what am I missing?Won't validate because it thinks I do not have the divideByZero method when I clearly do. I must be missing something obvious.
    • 8/13/19
    • 1787views
    • 2comments
    1
  • Ajinkya
    Level 0
    Question about the task Kind words for the teacher
    Java Syntax, Level 0, Lesson 4
    Resolved
    what is the error in the program?I am unable to identify the mistake in the program
    • 8/1/18
    • 1965views
    • 5comments
    1
  • Ahmed
    Level 23
    Amsterdam
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Resolved
    Doesn't validate switch statementCan anyone help out here? I already used switch statements but the validator doesn't recognize it.
    • 8/13/19
    • 1415views
    • 2comments
    0
  • Gábor
    Level 14
    Budapest
    Question about the task Flip the array
    Java Syntax, Level 7, Lesson 4
    Resolved
    println method not showing anything.Just when it is in the for merthod. if it's outside then showing the value of the needed array. Also in both case no error is coming..
    • 8/8/19
    • 1447views
    • 3comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Resolved
    Not matching the req why ?point out
    • 4/16/19
    • 1432views
    • 3comments
    0
  • Deepak Chandra
    Level 16
    Visakhapatnam
    Question about the task Identical words in a list
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Help pleaseHey guys everything is fine with my code it works and is verified succesfully. I am posting this so that you guys could suggest me any further modifications in my code(i.e if there is some unnecessary code, or may be i could have written some logic better etc). Go through my code and suggest me if
    • 6/24/19
    • 1581views
    • 4comments
    0
  • Ritik Singh
    Level 8
    Gwalior
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    what is the error here? package com.codegym.task.task07.task0706; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Streets and houses */ public class Solution { public static void main(String[] args) throws Exception { //write your code here int ar
    • 8/10/19
    • 1352views
    • 1comment
    0
  • Joe
    Level 8
    Ottawa
    Under discussion
    Not sure what is missing.I can't complete 4th requirement - The min method must return the minimum of the 5 passed numbers. If there are several minimum numbers, return any of them. Not sure what I'm missing... package com.codegym.task.task05.task0531; import java.io.BufferedReader; import java.io.InputStreamReader; /*
    • 8/12/19
    • 1060views
    • 1comment
    0
  • Bob Junior Bastien
    Level 3
    Columbus
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Can someone help me please . my prog compiled very well and executed the task , but the application mention errorCan someone help me please . my prog compiled very well and executed the task , but the application mention error
    • 8/12/19
    • 1338views
    • 2comments
    0
  • hacks patel
    Level 20
    Ahmedabad
    Question about the task What's today's date?
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Just Month is in lowerCaseMy output is look like Aug 18, 2013 help me to print month in upperCase
    • 1/5/19
    • 3025views
    • 5comments
    3
  • Tej
    Level 9
    Hyderabad
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    anything wrong?public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { // write your code here int sub = abs( a); int sub1 = b - 10; if(sub>sub1)
    • 8/11/19
    • 1129views
    • 1comment
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Minesweeper (Part 1/16)
    Games, Level 0, Lesson 0
    Under discussion
    What am I doing wrong?I'm not sure why this isn't working, can someone please help? Thank you
    • 8/4/19
    • 2152views
    • 7comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Default values
    Java Core, Level 5, Lesson 9
    Under discussion
    what is wrong, guyshelp me pls
    • 6/26/19
    • 1545views
    • 2comments
    0
  • Ornela
    Level 11
    Tirana
    Question about the task Mercantile intentions
    Java Syntax, Level 3, Lesson 12
    Under discussion
    Problems with IntelliJ IdeaI want to run this code in IntelliJ Idea, and it keeps giving me an error, and directly another task that i didn't finish appears. What can i do to run just this code and ignore the other task? On the codegym compiler this works fine, but i wanted to become used to IntelliJ idea.
    • 2/6/19
    • 2175views
    • 9comments
    1
  • Denis
    Level 22
    Kharkiv
    Question about the task A big fox is still a fox
    Java Core, Level 3, Lesson 4
    Under discussion
    help me pls with thisa cant understand what is wrong
    • 6/24/19
    • 1678views
    • 1comment
    0
  • Andrea
    Level 20
    Question about the task Catching unchecked exceptions
    Java Syntax, Level 9, Lesson 8
    Resolved
    Seeing a similar as the previous taskThe way the code is written I thought I was meeting the requirements: -calling all three methods in the handleExceptions method -using only one try catch block -printout out of the exceptions Not sure what else could I am missing. Please advise.
    • 8/11/19
    • 1644views
    • 1comment
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Completed but still don't undersatndSo the code worked but I don't understand why. There are two lines of input so how does the program know which line I'm referring to?
    • 8/8/19
    • 1292views
    • 2comments
    0
  • SefoBe
    Level 16
    Paris
    Question about the task HashMap of 10 pairs
    Java Syntax, Level 8, Lesson 3
    Under discussion
    Correct output but not acceptedWhy is my output correct but the solution is not accepted ?
    • 8/8/19
    • 1357views
    • 3comments
    0
  • 1
  • ...
  • 290
  • 291
  • 292
  • 293
  • 294
  • ...
  • 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