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
  • Seferi
    Level 22
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    Why is !even always evaluates to true? package com.codegym.task.task04.task0427; /* Describing numbers */ import com.sun.deploy.security.SelectableSecurityManager; import java.io.*; public class Solution { public static void main(String[] args) throws Exception { boolean even; BufferedReader reader = new Buffe
    • 6/12/20
    • 636views
    • 3comments
    0
  • Seferi
    Level 22
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    It working fine but doesn't pass the test..Or I understood the exercise wrong...
    • 6/18/20
    • 954views
    • 3comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Resolved
    Could anyone elaborate this task to understand it better.please, it will mean a lot. All answers are welcomed.
    • 6/24/20
    • 568views
    • 4comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    Stuck mind is not working now....!!! where I'm wrong???? Please helppppp😔
    • 6/17/20
    • 596views
    • 5comments
    0
  • Juan Gallardo
    Level 10
    Edmonton
    Question about the task More Sam-I-Am
    Java Syntax, Level 7, Lesson 9
    Resolved
    I think it displays correctlyHow can I get rid of the last line break in the output? Could that be the problem?
    • 11/12/18
    • 2655views
    • 8comments
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Doesn't resolve father objectEverything works except the third call to write out the father's name and grandfather's name. I'm really confused on this one because all the other conditions work. Your help is appreciated.
    • 6/25/20
    • 628views
    • 4comments
    0
  • MaGaby2280
    Level 41
    Guatemala City
    Question about the task Debug, debug, and again debug
    Java Core, Level 5, Lesson 12
    Resolved
    I cannot pass the test... I have tried changing the access modifier but still won´t pass... could someone help me please! package com.codegym.task.task15.task1526; /* Debug, debug, and again debug */ public class Solution { public static void main(String[] args) { new B(6); } public static class A { private int f1 = 7; private A(int f1) { this.f1 = f1;
    • 1/16/20
    • 1437views
    • 4comments
    0
  • jclements2
    Level 20
    Rogers
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Resolved
    Not sure why this won't validate?The output seems correct, and yet it will not validate. Any thoughts on what is wrong here?
    • 5/2/20
    • 1139views
    • 5comments
    0
  • Michał Pietrus
    Level 33
    Krakow
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Resolved
    helpHelp please why it doesnt work ?
    • 3/27/20
    • 1136views
    • 4comments
    0
  • Aleksander
    Level 41
    Question about the task Aggregator (part 6)
    Java Collections, Level 8, Lesson 15
    Under discussion
    Can anyone help me?I have no idea how to solve this... If anyone can help, I'll be grateful :) Thanks
    • 4/11/20
    • 947views
    • 1comment
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Resolved
    Code not passing last two tasksMy code looks good. I can't figure out what's wrong with it. I returns a string concatenated 5 times, and a string concatenated variable of times. In the main funciton it prints out the results. Your assistance is appreciated.
    • 6/24/20
    • 556views
    • 2comments
    0
  • Stephen Haokip
    Level 8
    imphal
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    stuck at last conditionplease help the poor guy here
    • 6/24/20
    • 612views
    • 1comment
    0
  • Robert P
    Level 20
    Nashville
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    What am I doing wrong?I've commented out this code as much a logically possible to make it easier to read. I've polled the array to make sure it takes 10 strings , and that all 10 of them are stored in the array. (line 42) I've tested and retested the build, it works to the requirements stated. I've prodded around the
    • 10/29/18
    • 1966views
    • 6comments
    1
  • Johannes
    Level 27
    Centurion, Pretoria
    Question about the task Rounding numbers
    Java Core, Level 8, Lesson 11
    Resolved
    Tested with input file, working, but Codegym validator not happy ?Please have a look ? I debugged it, it works flawlessly. (though I'm sure there are easier and more efficient ways to do it, just don't know the math functions well enough to use it)
    • 4/11/20
    • 1293views
    • 13comments
    0
  • Talia Mullen-Humphreys
    Level 11
    Radcliffe
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Null Pointer Exception & Data Has Been ChangedNull Pointer Exception & Data Has Been Changed?? Please Help
    • 6/7/20
    • 551views
    • 1comment
    0
  • Jeremi Nuer
    Level 7
    San Francisco
    Question about the task Getters and setters for the Person class
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Cannot convert int to Char??I'm pretty sure I'm doing everything right. But my getAge class isn't working. The code has a problem with where I do 'return age' although I can't fathom why that would be the case. Please Help.
    • 6/24/20
    • 677views
    • 1comment
    0
  • Stephen Haokip
    Level 8
    imphal
    Question about the task Method quartet
    Java Syntax, Level 8, Lesson 6
    Resolved
    guys m stuck againplease help the poor guy here
    • 6/23/20
    • 742views
    • 3comments
    0
  • Seferi
    Level 22
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Resolved
    I thought I covered all the conditions but... doesn't work..What is wrong with my code?
    • 6/10/20
    • 867views
    • 2comments
    0
  • Brad Reed
    Level 19
    Hartford
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    final condition, thought I had it met...can someone help...my brain is fried
    • 6/23/20
    • 601views
    • 1comment
    0
  • Alan Heffernan
    Level 17
    Anwoth
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Can't seem to spot my error, can anyone help?Code does not seem to be passing but I can't seem to spot my error, Can anyone help me out on where I am going wrong?
    • 2/10/19
    • 1388views
    • 3comments
    0
  • Onome Brownly-Otiede
    Level 9
    Galway
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    can somebody help plsi now know what its telling me to do but Im still failing
    • 6/19/20
    • 626views
    • 2comments
    0
  • Henk
    Level 19
    Pretoria
    Question about the task Food
    Java Core, Level 4, Lesson 4
    Resolved
    Passed task, but it has a place telling me to do new coding, and I did not......makes no sense ? public static void selectableMethods(Selectable selectable) { //write your code here } I did not understand what they wanted in there, and "marked" the code, and passed. (understood the other requirements, and added them). They have not done this before (told us to put code somewhe
    • 5/17/19
    • 1712views
    • 3comments
    0
  • dhanush
    Level 30
    Chennai
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    helpit's not printing other than love donno what's wrong
    • 6/8/20
    • 525views
    • 2comments
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task ConsoleReader class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    Cant get boolean task workingFor some reason I can't get passed the boolean task. My code seems right. Can anyone help me with this please?
    • 6/24/20
    • 696views
    • 2comments
    0
  • Angel Stefan Arjoca
    Level 26
    Bucharest
    Question about the task The isomorphs are coming
    Java Core, Level 2, Lesson 12
    Resolved
    The right answer but... 🤦‍♂️Pls, if anyone can give me a hint... Tk you!
    • 6/24/20
    • 748views
    • 2comments
    0
  • Jeanne Vo
    Level 22
    Olympia
    Question about the task Multiplication table
    Java Syntax, Level 4, Lesson 10
    Under discussion
    Help please.Can anyone help me to spot out where I went wrong here. My code compiled okay but at the end of every line, there is one more digit is displayed. 1 2 3 4 5 6 7 8 9 10 1 2 4 6 8 10 12 14 16 18 20 2 3 6 9 12 15 18 21 24 27 30 3 Like this, for example.
    • 6/23/20
    • 573views
    • 2comments
    0
  • Prassha
    Level 24
    Chagford
    Question about the task How do you serialize Singleton?
    Java Core, Level 10, Lesson 4
    Under discussion
    Please help me to understand the different between returning object and Singltonprivate Object readResolve(){ return ourInstance; } And private Singlton readResolve(){ return ourInstance; } when i used Singlton as return type it is giving different value for singleton1 and singleton for bellow code Singleton singleton = deserializeSi
    • 6/17/20
    • 684views
    • 2comments
    0
  • AKA
    Level 18
    Jieyang
    Under discussion
    I don't know how I faultpublic class Solution { public static void main(String[] args) throws Exception { //在此编写你的代码 String[] arr=new String[10]; BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); for(int i=0;i<8;i++){ arr[i]=reader.readLine();
    • 6/22/20
    • 636views
    • 2comments
    0
  • Brad Reed
    Level 19
    Hartford
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Resolved
    Help please;I thought I did this correctly this time, but clearly not. I'm obviously missing something that I'm not seeing.
    • 6/23/20
    • 634views
    • 2comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Minimum of N numbers
    Java Syntax, Level 8, Lesson 11
    Resolved
    I'm getting error at line 39. It is showing unreachable statement.please help....!!!
    • 6/22/20
    • 685views
    • 2comments
    0
  • 1
  • ...
  • 177
  • 178
  • 179
  • 180
  • 181
  • ...
  • 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