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
  • jorge ives murillo paredes
    Level 40
    New York City
    Question about the task Reading and writing to a file: CodeGym
    Java Core, Level 10, Lesson 2
    Under discussion
    Can somebody help me whit the exeptions package com.codegym.task.task20.task2002; import java.io.*; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; /* Reading and writing to a file: CodeGym */ public class Solution { public static void main(String[]
    • 11/2/19
    • 1498views
    • 1comment
    0
  • Facundo Villarroel
    Level 20
    Berlin
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Resolved
    Two methods validation not passing...I'm starting to get a little tired of the stupid validations not passing. From where this thing is taking that the Solution class doesn't have two methods?
    • 10/19/19
    • 1108views
    • 2comments
    0
  • Facundo Villarroel
    Level 20
    Berlin
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Resolved
    Like for everyone, failing on third requirementTesting my code, it works. Unless I'm not undestanding the task as they meant it, then it should pass. 1. Catch the exception if file doesn't exist 2. Read the source file again 3. Read destination file Its dumb to catch the exception the first time you read it and not the second one, but that is wh
    • 10/23/19
    • 1377views
    • 3comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    Please helpSo unsure what I'm supposed to do
    • 11/3/19
    • 1693views
    • 1comment
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    What is wrong with my code? The last two requirements are not satisfied. Thanks a lot.package com.codegym.task.task07.task0708; //import java.io.BufferedReader; //import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.Scanner; /* Longest string */ public class Solution { private static List strings = new ArrayList();; privat
    • 11/1/19
    • 1330views
    • 5comments
    0
  • resperaptor
    Level 2
    Yekaterinburg
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Resolved
    Whats wrong?Man Man = new Man(); Woman Woman = new Woman();
    • 4/17/19
    • 2406views
    • 5comments
    3
  • Cheikh
    Level 7
    Dakar
    Question about the task Cat and statics
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Don't get where the problem is !Despite all my attempts, it looks like there's something I don't see. Can someone guide me please?
    • 11/2/19
    • 1372views
    • 2comments
    0
  • 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!
    • 10/31/19
    • 1439views
    • 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
    • 11/1/19
    • 1509views
    • 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?
    • 5/17/19
    • 1587views
    • 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
    • 9/13/18
    • 1560views
    • 7comments
    0
  • Mack
    Level 20
    Osiedle-Nowiny
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    Where is mistake?Help, please
    • 12/7/18
    • 2031views
    • 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
    • 4/9/19
    • 1502views
    • 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
    • 10/3/19
    • 1419views
    • 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));
    • 11/1/19
    • 1360views
    • 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) {
    • 10/26/19
    • 1118views
    • 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
    • 11/1/19
    • 1258views
    • 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.
    • 11/1/19
    • 1050views
    • 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 {
    • 10/31/19
    • 1307views
    • 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!
    • 10/28/19
    • 1463views
    • 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
    • 9/27/19
    • 1464views
    • 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
    • 10/31/19
    • 1542views
    • 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
    • 5/14/19
    • 1801views
    • 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?
    • 10/21/19
    • 1858views
    • 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
    • 8/11/19
    • 1540views
    • 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
    • 6/28/19
    • 1332views
    • 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*/
    • 10/31/19
    • 1188views
    • 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??
    • 10/31/19
    • 1269views
    • 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++){
    • 10/30/19
    • 1089views
    • 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
    • 10/30/19
    • 1366views
    • 1comment
    0
  • 1
  • ...
  • 265
  • 266
  • 267
  • 268
  • 269
  • ...
  • 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