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
  • Clarendon lee
    Level 8
    Baltimore
    Question about the task The whole duck isn't enough
    Java Syntax, Level 5, Lesson 12
    Resolved
    Task requirements are not metWhat's wrong? Verify say "Task requirements are not met" Thanks a lot!
    • 31.10.2019
    • 1334views
    • 2comments
    0
  • hidden #10549694
    Level 3
    Under discussion
    How can I contiunue learningI'm actually at level 3, lesson 1, with IntelliJ installed and I tried to solve the task in that lesson - but when I'm trying to verify my code (in a browser), the buttons just goes grey and nothing happens. Moreover, lesson 2 of this level, where I installed the CodeGym plug-in - there are only tas
    • 01.11.2019
    • 1363views
    • 4comments
    0
  • Станислав Владимирович
    Level 4
    Donduseni
    Question about the task More conversions
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Help guysHello guys, My program works properly, whenever i put any number i want in my program, it gives me correct answer, but last condition it's not correct, can you help me with that?
    • 17.05.2019
    • 1473views
    • 6comments
    0
  • gery
    Level 9
    Islamabad
    Question about the task More conversions
    Java Syntax, Level 3, Lesson 8
    Under discussion
    identify correction import java.io.InputStreamReader; import java.io.BufferedReader; public class Solution { public static void main(String[] args) throws Exception { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String s = bf.readLine(); int ss = Integ
    • 13.09.2018
    • 1441views
    • 7comments
    0
  • Mack
    Level 20
    Osiedle-Nowiny
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    Where is mistake?Help, please
    • 07.12.2018
    • 1933views
    • 6comments
    2
  • Ankush Rajput
    Level 25
    Bhopal
    Question about the task Snake (part 17)
    Java Multithreading, Level 2, Lesson 18
    Resolved
    Another validation glitch ?Couldn't find what I am doing wrong. All requirements pass except - "If the snake is still alive, then we need to add a head and remove the last element from the snake's tail." which I am clearly doing. public void move(int x, int y){ SnakeSection new_section = new SnakeSection(getX()+x,ge
    • 09.04.2019
    • 1402views
    • 3comments
    3
  • Jason
    Level 26
    Rancho Cucamonga
    Question about the task Transactionality
    Java Core, Level 7, Lesson 10
    Resolved
    I need some outside input. I can't figure out what is going wrong.I have been messing with this for what feels like ages now please please tell me there is still hope
    • 03.10.2019
    • 1305views
    • 3comments
    2
  • Boris Penchev
    Level 8
    Sofia
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Why my code no was verify? Pls. help me. Thank you.This is my code and it doesn`t work. public class Solution { private static List strings; public static void main(String[] args) throws Exception { int max = 0; strings = new ArrayList(); BufferedReader z = new BufferedReader(new InputStreamReader(System.in));
    • 01.11.2019
    • 1273views
    • 1comment
    0
  • Radames Sanchez
    Level 5
    Las Vegas
    Under discussion
    Can somebody explain me what is wrong with my code? It does not compile because it takes the && as the part of a boolean (?) package com.codegym.task.task04.task0411; /* Seasons on Terra */ public class Solution { public static void main(String[] args) { checkSeason(12); checkSeason(4); checkSeason(7); checkSeason(10); } public static void checkSeason(int month) {
    • 26.10.2019
    • 978views
    • 3comments
    0
  • Radames Sanchez
    Level 5
    Las Vegas
    Question about the task Do we have a pair?
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Any suggestions? I really can't figure out why the requirements are not met
    • 01.11.2019
    • 1170views
    • 2comments
    0
  • Abhirami
    Level 17
    Bangalore
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Failed to pass the last requirement!Is there anything wrong in my logic? please help.
    • 01.11.2019
    • 962views
    • 1comment
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    I don't know how to code the last requirement. Thanks a lot!package com.codegym.task.task07.task0709; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Scanner; /* Expressing ourselves more concisely */ public class Solution { public static void main(String[] args) throws Exception {
    • 31.10.2019
    • 1161views
    • 4comments
    0
  • Jimmy Phan
    Level 7
    Atlanta
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Under discussion
    All conditions are met?All conditions that are given to me are correct. Am I missing something? Thanks in advance!
    • 28.10.2019
    • 1312views
    • 7comments
    0
  • Au Ivan
    Level 17
    Hong Kong
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    it should be working, but...java.lang.NullPointerException at com.codegym.task.task09.task0930.Solution.main(Solution.java:18) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
    • 27.09.2019
    • 1370views
    • 2comments
    2
  • Cristian
    Level 16
    Bucharest
    Question about the task What sort of list is that?
    Java Syntax, Level 7, Lesson 6
    Under discussion
    A have a problem with the last requirement. Why? Thanks a lot.package com.codegym.task.task07.task0707; import java.util.ArrayList; /* What sort of list is that? */ public class Solution { public static void main(String[] args) throws Exception { //write your code here ArrayList list = new ArrayList(); list.add("s1"); l
    • 31.10.2019
    • 1420views
    • 4comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the task The whole duck isn't enough
    Java Syntax, Level 5, Lesson 12
    Resolved
    implementation of the toString method for the Dog classStrange mistake! Why not like the implementation of the toString method for the class Dog package com.codegym.task.task05.task0525; public class Solution { public static void main(String[] args) { Duck duck1 = new Duck(); Duck duck2 = new Duck(); System.out.println(d
    • 14.05.2019
    • 1702views
    • 2comments
    1
  • kalyan
    Level 7
    hyderabad
    Question about the task Snake (Part 6/20)
    Games, Level 0, Lesson 1
    Under discussion
    Please somebody help me out with this..Two of the requirements are not getting satisfied. Can anyone please tell me where I made the mistake?
    • 21.10.2019
    • 1730views
    • 2comments
    0
  • Avi
    Level 0
    Question about the task Minesweeper (Part 1/16)
    Games, Level 0, Lesson 0
    Under discussion
    what is the problem with my code?I don't know why it doesn't work
    • 11.08.2019
    • 1452views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task AmigoOutputStream
    Java Core, Level 8, Lesson 8
    Under discussion
    I tired. Help me pls with thisGive me a solution pls
    • 28.06.2019
    • 1233views
    • 1comment
    0
  • Tadas
    Level 4
    Terneuzen
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Hi guys, answer looks like is correct but still something not good*/
    • 31.10.2019
    • 1084views
    • 2comments
    0
  • Tadas
    Level 4
    Terneuzen
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Can somebody look at my code? How I supposed to call min a, b function??
    • 31.10.2019
    • 1160views
    • 2comments
    0
  • Anita Pal
    Level 14
    Question about the task Greater than 10? You're not a good fit for us
    Java Syntax, Level 8, Lesson 8
    Under discussion
    what is wrong in my codepackage com.codegym.task.task08.task0814; import java.util.HashSet; import java.util.Set; /* Greater than 10? You're not a good fit for us */ public class Solution { public static HashSet createSet() { HashSet set = new HashSet<>(); for(int i = 1;i<=20;i++){
    • 30.10.2019
    • 1008views
    • 2comments
    0
  • Olek
    Level 41
    Amsterdam
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    conditions 3 and 4 failHi all, Can you help to understand why it fails on conditions 3 and 4? On the test input it produces the correct output. Input: grandfather grandmother daughter program car Output: grandfather grandmother
    • 30.10.2019
    • 1255views
    • 1comment
    0
  • SAYAN SAMANTA
    Level 10
    Bangalore
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    wherere is the problem? package com.codegym.task.task08.task0817; import java.util.HashMap; import java.util.Map; /* We don't need repeats */ public class Solution { public static HashMap<String, String> createMap() { HashMap<String,String> map = new HashMap<String,String>(); ma
    • 29.08.2018
    • 1943views
    • 2comments
    0
  • Prabhanjan Pandey
    Level 2
    pune
    Question about the task Minimum of two numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    min of two nosi am returning the value but then also it is saying that min method must return the minimum of both numbers.
    • 12.08.2018
    • 3169views
    • 13comments
    1
  • Julien
    Level 15
    Paris
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Resolved
    Is there a best way to approach this ?Hello guys, i'm looking to refactor this method. It split an Array of integers int[] in two smaller ones (array1 and array2) and return those as an Object[]{array1,array2} I'm pretty sure i can give some fresh to this algorithm. Someone would like to review this code ? private static Object[] in
    • 10.05.2019
    • 1244views
    • 7comments
    1
  • Whitney
    Level 14
    Onalaska
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    Output seems to be correct, but I'm not sure where the error is?Example output: The cat's name is Grandfather Tiger, no mother, no father The cat's name is Grandmother Puss, no mother, no father The cat's name is Father Oscar, no mother, Grandfather Tiger is the father The cat's name is Mother Missy, Grandmother Puss is the mother, no father The cat's name is
    • 30.10.2019
    • 1690views
    • 5comments
    0
  • Kent Hervey
    Level 19
    Question about the task ConsoleReader class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    Exception errorI am getting an error and don't know why: Error:(43, 50) java: unreported exception java.lang.Exception; must be caught or declared to be thrown public static String readString() throws Exception { //write your code here InputStream inputStream = System.in; Reader inputStreamRe
    • 25.10.2019
    • 1351views
    • 1comment
    0
  • Han
    Level 24
    Question about the task Using JSON to convert from one class to another
    Java Collections, Level 3, Lesson 5
    Under discussion
    I don't know how to use the className fieldI'm stuck on how to serialize this. Somehow I need to let the mapper use the className field to serialize json into that object. Is there a method I'm missing? I could really use a clue :)
    • 28.10.2019
    • 996views
    • 1comment
    0
  • Henriett Tóth
    Level 18
    Budapest
    Question about the task Greater than 10? You're not a good fit for us
    Java Syntax, Level 8, Lesson 8
    Resolved
    Help pls! Help pls! I don't understand where is the problem. :(
    • 29.10.2019
    • 1048views
    • 2comments
    0
  • 1
  • ...
  • 263
  • 264
  • 265
  • 266
  • 267
  • ...
  • 372
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