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
  • Yash
    Level 15
    Sugar Hill
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Resolved
    I don't understandValidation says this : The Hen class must have a getMonthlyEggCount method. The Hen class must have a getDescription method. The AsianHen class must be in a separate file. The AfricanHen class's getMonthlyEggCount method must return an int. The description of an AfricanHen should have the following
    • 17.11.2019
    • 1181views
    • 5comments
    1
  • Elsilaves
    Level 4
    Üllő
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Resolved
    Please help. what's up with this solution?The program should output text. - it outputs text The program must read data from the keyboard. - it reads The displayed text must contain the entered name. - it contains the name The displayed text must contain the entered number1. -it contains the number1 The displayed text must contain the enter
    • 25.05.2020
    • 348views
    • 0comments
    0
  • Jack
    Level 4
    Yerevan
    Question about the task More conversions
    Java Syntax, Level 3, Lesson 8
    Under discussion
    helptell me whats wrong
    • 25.05.2020
    • 375views
    • 1comment
    0
  • Laurence
    Level 10
    Question about the task Shared last names and first names
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Hi guys, quick question about duplicate keysI thought hashmaps couldn't have duplicate keys, but isn't that what is happening here when adding pairs with the same last name? Thanks!
    • 24.05.2020
    • 448views
    • 1comment
    0
  • SAYAN SAMANTA
    Level 10
    Bangalore
    Question about the task The Three "Muscateers"
    Java Syntax, Level 5, Lesson 5
    Under discussion
    how to solve? public class Solution { public static void main(String[] args) { Cat cat1 = new Cat(); Cat cat2 = new Cat(); Cat Cat3 = new Cat(); cat1.Cat("Kitty",6,12,13); cat2.Cat("Mary",7,13,14); cat3.Cat("Sany",8,14,15); } public static cla
    • 18.08.2018
    • 2126views
    • 6comments
    0
  • Talia Mullen-Humphreys
    Level 11
    Radcliffe
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion
    What Is Wrong with my code?I can't figure out why the last condition is not met.
    • 25.05.2020
    • 452views
    • 1comment
    0
  • JeRiF94
    Level 22
    Baku
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Resolved
    What's wrong?I do not really get what problem is , that's looks like solution , but I think something wrong with my understanding exactly to conditions.
    • 11.04.2019
    • 1619views
    • 11comments
    1
  • Belinda
    Level 4
    Portland
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    I passed this after trying different things, but the output for the third println statement is wrong....so not sure how I got it right? System.out.println(min(-20, -10, -30, 40)); Minimum for this line is -30 but the output says 40?
    • 13.05.2020
    • 532views
    • 7comments
    0
  • HaeWon Chung
    Level 17
    Boston
    Question about the task Reading a file
    Java Core, Level 3, Lesson 11
    Archived
    Cannot close InputStreamReaderSince I didn't directly assign InputStreamReader to variable, I don't know how I can close it. I thought InputStreamReader is wrapped in BufferedReader, it would be closed when I close BufferedReader. Any help?
    • 13.05.2020
    • 1274views
    • 8comments
    0
  • Daniel
    Level 9
    Vienna
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Resolved
    Please look at this.What's going on here?
    • 25.05.2020
    • 785views
    • 1comment
    0
  • satya vath
    Level 9
    Mumbai
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Resolved
    A hint please package com.codegym.task.task07.task0705; import java.io.BufferedReader; import java.io.InputStreamReader; /* One large array and two small ones */ public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader buf =
    • 21.11.2018
    • 2357views
    • 5comments
    0
  • Ewerton
    Level 30
    Belo Horizonte
    Question about the task Reading from a stream
    Java Collections, Level 2, Lesson 4
    Under discussion
    How can this return null?sw.append("1") was just a debugging thing
    • 08.07.2019
    • 1596views
    • 5comments
    0
  • Harika Yantrapragada
    Level 7
    Hyderabad
    Question about the task More conversions
    Java Syntax, Level 3, Lesson 8
    Resolved
    Can you help me out with the logic How to convert double into int
    • 01.11.2018
    • 1813views
    • 10comments
    0
  • PEgaz
    Level 40
    Katowice
    Question about the task More conversions
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Good result when code is running, but failure in veryfication. Please, help.Hi, everyone, Unfortunately I don;t get it why the task still shows me an error during confirmation. Whatever input I enter - I also seem to have correct result in output - please help. code: package com.codegym.task.task01.task0131; import java.io.*; /* More conversions */ public class Solut
    • 26.03.2020
    • 966views
    • 2comments
    0
  • hanumohan
    Level 25
    San Jose
    Question about the task Arkanoid (part 11)
    Java Multithreading, Level 3, Lesson 13
    Resolved
    Print method failing, any know i what i did mistake package com.codegym.task.task24.task2413; public class Canvas { private int width; private int height; private char[][] matrix; public int getWidth() { return width; } public int getHeight() { return height; } public char[][] getMatrix() {
    • 25.05.2020
    • 594views
    • 3comments
    0
  • Talia Mullen-Humphreys
    Level 11
    Radcliffe
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    Why does my code not work for the following sequence: 1, 1, 1, 2, 2, 2, 1, 1, 2, 2. Expected output: 3I can't figure it out!
    • 24.05.2020
    • 520views
    • 1comment
    0
  • moseka
    Level 23
    Nairobi
    Question about the task Census
    Java Syntax, Level 8, Lesson 8
    Resolved
    Correct output but not verifyingKindly, someone help me to know what is the problem with the code
    • 25.05.2020
    • 830views
    • 2comments
    0
  • Adnan Razzaq
    Level 15
    Bamberg
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    can someone identify an issue why it is not verfiying?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[]array
    • 27.06.2019
    • 1448views
    • 6comments
    0
  • Jason Good
    Level 22
    Leeds
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Gives correct output but doesn't pass final criterion.Please help.
    • 24.05.2020
    • 458views
    • 2comments
    0
  • Jonas
    Level 41
    Vilnius
    Question about the task Find the class by its description
    Java Collections, Level 6, Lesson 10
    Resolved
    How to do this task? Can you explain the logic, please?Thank you very much
    • 25.03.2020
    • 1246views
    • 6comments
    0
  • Lisha .
    Level 0
    chennai
    Under discussion
    will i get certificate for this
    • 23.05.2020
    • 519views
    • 1comment
    0
  • JianQiu Hwang
    Level 35
    Washington
    Question about the task CashMachine (part 8)
    Java Collections, Level 9, Lesson 15
    Under discussion
    I Get Wrong For LowerCase with currencyCodeWhy do I Get Wrong For LowerCase with currencyCode?
    • 21.05.2020
    • 501views
    • 3comments
    0
  • Kaushik Ashutosh Raj
    Level 8
    Bangalore
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    There is no way to enter input through the keyboard..
    • 22.08.2018
    • 2194views
    • 8comments
    0
  • Connor
    Level 8
    Boston
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    Isn't printing and I don't know why.At this point I feel like it's something stupid that I'm overlooking but I've been working on this one almost since I woke up. Now I have to go to work so I'm like smacking myself because I can't figure out WHAT I'm doing wrong. Very frustrating for me right now. package com.codegym.task.task03.ta
    • 12.04.2019
    • 1599views
    • 10comments
    0
  • Odhran
    Level 18
    Sheffield
    Question about the task Time conversion
    Java Syntax, Level 3, Lesson 5
    Resolved
    No task conditions are met - I dont get why, calls the method twice onto new lines, takes and receives the int value from the main, target result is achieved - how is it completely wrong?package com.codegym.task.task03.task0312; /* Time conversion */ public class Solution { public static void main(String[] args) { System.out.println(convertToseconds(15)); System.out.println(convertToseconds(20));//write your code here } public static int co
    • 24.11.2019
    • 1382views
    • 4comments
    0
  • Henry
    Level 6
    Stuttgart
    Question about the task Walking in circles
    Java Syntax, Level 5, Lesson 9
    Under discussion
    hiPls i would like someone to hint me how to correct my mistake at the last constructor
    • 24.05.2020
    • 604views
    • 1comment
    0
  • hidden #10426237
    Level 7
    Question about the task Financial expectations
    Java Syntax, Level 3, Lesson 12
    Under discussion
    Can,t find the typo.Can,t find the typo.
    • 22.02.2019
    • 1751views
    • 5comments
    0
  • Van Ha
    Level 41
    Bodegraven
    Question about the task Archiver (part 9)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    What's wrong with the relative path?Hi, Getting this from the validator: When the collectFileList(Path path) method receives a regular file, the method must add its path relative to rootPath to the fileList field. As far as I can see I'm getting the relative path from the path object. I also already have tried it the other way around
    • 11.03.2020
    • 1031views
    • 3comments
    0
  • dhanush
    Level 30
    Chennai
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Resolved
    help me outevery thing is fine but the last two conditions is not getting verified help me out! :(
    • 23.05.2020
    • 550views
    • 2comments
    0
  • dhanush
    Level 30
    Chennai
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Resolved
    else without ifI don't know why I'm getting this error help me to find my error :(
    • 23.05.2020
    • 1964views
    • 4comments
    0
  • 1
  • ...
  • 188
  • 189
  • 190
  • 191
  • 192
  • ...
  • 371
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • 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