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
  • Richard Caputo
    Level 16
    United States of America
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    Anyone wanna help??It seems right to me...
    • 9/9/21
    • 666views
    • 3comments
    0
  • Daniel
    Level 4
    Zagreb
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Validation problemThis is the code, I'm not sure what's wrong: BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(br.readLine()); System.out.println(a<0 ? a+1 : a*a);
    • 9/22/21
    • 684views
    • 3comments
    0
  • Real McCoy
    Level 22
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Resolved
    Assistance Please...Could someone give me some guidance on this? This is my second crack at this and I cant seem to get the last requirement to pass. I've tested with a stub wordsearch in every direction described in the conditions and the solution passes...not sure what im missing...
    • 9/22/21
    • 825views
    • 11comments
    0
  • Greg Martel
    Level 5
    Question about the task Labels and numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    Variable declaration not allowed here...I reviewed my lessons on declaring String variables, yet I cannot understand why I am unable to declare String variables in my "if" statements. Thanks so much for your help!
    • 9/23/21
    • 1957views
    • 3comments
    0
  • scriptKing
    Level 7
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    can someone give me a hint here i believe this is working but not to the exact perameters package com.codegym.task.task05.task0532; import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum = 0;
    • 9/22/21
    • 658views
    • 3comments
    0
  • Radames Sanchez
    Level 5
    Las Vegas
    Question about the task Labels and numbers
    Java Syntax, Level 4, Lesson 7
    Under discussion
    Did it exactly the same way as the others, compiler goes off.Any advice?
    • 11/9/19
    • 1827views
    • 8comments
    1
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    "Be sure that the size of the allPeople list does not change when a person's data is deleted."I don't understand this at all. When you remove something from an ArrayList, the size of the ArrayList is going to go down. What exactly is it asking me to do?
    • 9/23/21
    • 1380views
    • 1comment
    0
  • The Chief
    Level 18
    Question about the task Encryption
    Java Core, Level 8, Lesson 11
    Resolved
    Why am I not getting the encryption requirement?The encryption requirement is the only one I'm not getting and I don't know why. Please help.
    • 9/19/21
    • 492views
    • 4comments
    0
  • Dawid
    Level 28
    Question about the task Charting our own course
    Java Multithreading, Level 5, Lesson 9
    Resolved
    Each message should be on a new lineYou don't need to look at the main method, it is for testing purposes. The code of the actual method does not pass the final stage of verification, stating that each message should start on a new line. Well, this is what is happening. I just want to know if there is something not right with my code,
    • 9/22/21
    • 616views
    • 1comment
    0
  • Usha Mathivanan
    Level 15
    CHENNAI
    Question about the task MovieFactory
    Java Core, Level 4, Lesson 8
    Resolved
    Pls help me ! Last 3 conditions are not satisfied.OUTPUT: Cartoon Thriller SoapOpera java.lang.NullPointerException at com.codegym.task.task14.task1414.Solution$MovieFactory.getMovie(Solution.java:45) at com.codegym.task.task14.task1414.Solution.main(Solution.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect
    • 6/30/20
    • 1076views
    • 3comments
    1
  • Onar D.
    Level 7
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Resolved
    code is working but the task the last condition is not validwhy or what wrong with code?
    • 9/18/21
    • 897views
    • 2comments
    1
  • Saurabh Nair
    Level 2
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Failing : The min method must return the minimum of the numbers a, b, and cHi, I am being failed by the system when verifying the below code for requirement - The min method must return the minimum of the numbers a, b, and c. My result is 1 -3 3 5 I am unsure of where am I wrong in this. Arguments in the min function was pre-populated for the task. Thank you.
    • 5/25/21
    • 1064views
    • 11comments
    1
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Minesweeper (Part 5/16)
    Games, Level 0, Lesson 0
    Under discussion
    for part.04!I pass this part(04) but i don't understand why we need to write in createObject() : gameField[x][y] = new GameObject(y, x); Why not (x, y)??? Why we not pass first the row(x) and second, the column(y)? Tk you! Ps: i ask this question because i failed many times with =new GameObject(x, y);
    • 9/21/21
    • 726views
    • 1comment
    0
  • Szpaneryk
    Level 13
    Bialystok
    Question about the task Snake (Part 18/20)
    Games, Level 0, Lesson 1
    Resolved
    I need help with setDirectionWhy my code doesnt pass the test, wheres the mistake?
    • 9/20/21
    • 568views
    • 3comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    I don' t understand the abs()!Hello, i finish the task but i don't understand how abs works: abs(a<0) return -a, so "minus a" become a positive number!? How? Let say if(-2<0) return -2; =》 become 2 ??? On the other hand if(a<0) return ((-a)*(-a)); =》a
    • 9/18/21
    • 868views
    • 4comments
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    Does anyone know the hidden CG requirements for this task?Is it possible that CG is deliberately hiding some details of their requirements? I mean how to count the words "world" exactly. CG says the words are separated by punctuation marks, but I still see some unclear circumstances. E.g. if it is included in the file: "world'abcd(world!worldly,worlds;"
    • 9/21/21
    • 578views
    • 9comments
    0
  • Matt
    Level 1
    United States of America
    Question about the task Snake (Part 2/20)
    Games, Level 0, Lesson 1
    Resolved
    Why wont this compile!!Can someone please tell me why this wont compile? ;(
    • 9/21/21
    • 634views
    • 1comment
    2
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    where am i done mistake?please comment me a solution!!
    • 9/19/18
    • 2391views
    • 7comments
    0
  • Alan
    Level 8
    montreal
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Resolved
    man.wife = new Woman();-------woman.husband = new Man();------ dont know whats wrong ???man.wife = new Woman(); woman.husband = new Man();
    • 9/11/21
    • 733views
    • 2comments
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Question about the task Even characters
    Java Core, Level 9, Lesson 5
    Resolved
    try block without catch block - ?I saw the following in the downloaded CG correct solution: They put all the Reader/Writer object creations in try blocks. There were several try blocks. But there was not a single catch block anywhere. And the IO-objects were not closed with close() method. How does this thing work? Is it better
    • 9/19/21
    • 671views
    • 5comments
    0
  • Richard Caputo
    Level 16
    United States of America
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    Can anyone tell me what's wrong?the output seems correct
    • 9/16/21
    • 792views
    • 1comment
    0
  • Radames Sanchez
    Level 5
    Las Vegas
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What's wrong with my code? Last requirement is not met (?)All requirements are met, right(?) Am I missing something?
    • 10/29/19
    • 1675views
    • 4comments
    0
  • Tessa Podbury
    Level 18
    Melbourne
    Question about the task Factory method pattern
    Java Core, Level 6, Lesson 13
    Under discussion
    Last conditionHey guys, confused because as far as I can tell, if null is passed it will revert to default in switch? Thanks!
    • 6/9/20
    • 810views
    • 3comments
    0
  • Erik
    Level 2
    Allentown
    Question about the task Calculate the circumference of a circle
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Saying error on the first letter of radius why?????package com.codegym.task.task01.task0129; /* Calculate the circumference of a circle */ public class Solution { public static void main(String[] args) { printCircleCircumference(5); double pi = 3.14; double C = 2*pi*radius; System.out.println(C); } pu
    • 10/30/18
    • 2008views
    • 7comments
    0
  • Velociraptor
    Level 3
    Bangalore
    Question about the task Calculate the circumference of a circle
    Java Syntax, Level 2, Lesson 2
    Under discussion
    guys the first condition is not satisfied can you please help me??this is my code package com.codegym.task.task01.task0129; /* Calculate the circumference of a circle */ public class Solution { public static void main(String[] args) { printCircleCircumference(5); double pi = 3.14; printCircleCircumference(2 * 314* 5); } pu
    • 7/24/20
    • 1206views
    • 4comments
    1
  • Richard Caputo
    Level 16
    United States of America
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    Why is this not working??this condition is not passing: The program should display the maximum of the N entered numbers.
    • 9/8/21
    • 499views
    • 2comments
    0
  • Richard Caputo
    Level 16
    United States of America
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Resolved
    Anyone wanna tell me what I'm doing wrong here?The code works as instructed (as far as I can tell)...
    • 9/11/21
    • 543views
    • 1comment
    0
  • Richard Caputo
    Level 16
    United States of America
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    Got the output correct, but the method is confusingAny suggestions on how to move the loops to the printList method?
    • 9/12/21
    • 1012views
    • 1comment
    0
  • Richard Caputo
    Level 16
    United States of America
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Resolved
    Anyone??The output is correct... isn't it?
    • 9/12/21
    • 579views
    • 2comments
    0
  • Greg Martel
    Level 5
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    What gives?I've been racking my head for 30 minutes trying to find a combination which fails this Solution. Could someone please give me a hint as to where I went wrong? Thanks so much!
    • 9/16/21
    • 514views
    • 2comments
    0
  • 1
  • ...
  • 60
  • 61
  • 62
  • 63
  • 64
  • ...
  • 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