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
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Getters and setters for the Dog class
    Java Syntax, Level 5, Lesson 5
    Resolved
    why do we use void in set method . As I know that it doesn't return any value but clearify this to understand to me please.all answers will be appreciated. 🙂
    • 5/21/20
    • 1021views
    • 2comments
    0
  • Nishant Bhatia
    Level 13
    Navi Mumbai
    Question about the task To the top of the list
    Java Syntax, Level 7, Lesson 6
    Resolved
    Can anyone please identify the problem?
    • 6/12/19
    • 1925views
    • 3comments
    0
  • yz
    Level 37
    Jakarta
    Question about the task Unequal exchange
    Java Collections, Level 9, Lesson 9
    Resolved
    what kind of binary is this?any hint pls
    • 4/30/20
    • 981views
    • 2comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Under discussion
    Please help my brain is getting puzzledWhat part to rectify ?
    • 8/15/19
    • 1674views
    • 3comments
    0
  • Michael Brimage
    Level 19
    Washington D.C.
    Question about the task Spaces
    Java Core, Level 8, Lesson 11
    Resolved
    is my Casting the problem Line 29??Hello everyone, I cant quite make out what my issue is. Ive looked at some of the other questions raised about this problem. I still cant quite make it out. Your assistance is greatly appreciated. Mike
    • 5/21/20
    • 639views
    • 6comments
    0
  • Pranesh Gandhi
    Level 4
    Los Angeles
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    ans problemI am getting the correct ans but still cannot get task passed. I don't know what is the problem. It giving me error in last Condition.
    • 5/21/20
    • 540views
    • 3comments
    0
  • Andreas Dengler
    Level 16
    Bielefeld
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Under discussion
    Help pleaseI get the message I get to many lines. I saw already answers saying you read the byte instead of the number itself. Probably thats my fault but I dont know how to solve it and if this is really my Problem.
    • 4/24/20
    • 1080views
    • 2comments
    0
  • Mark C David
    Level 2
    Mumbai
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Typo or forgot to add 0Getting error "Typo or forgot add 0"
    • 5/21/20
    • 445views
    • 1comment
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    please correct me where i'm going wrong??here's my code : I tried both of code in comments and after comment. public class Solution { pu
    • 5/16/20
    • 781views
    • 6comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Resolved
    give me hint ,please!! here's my code: BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String aa = reader.readLine(); int a = Integer.parseInt(aa); String bb = reader.readLine(); int b = Integer.parseInt(bb); String cc = reader.readLin
    • 5/17/20
    • 893views
    • 3comments
    0
  • noctafrey
    Level 2
    Braunschweig
    Under discussion
    Was sind Referenztypen ? bzw zusammengesetzte TypenHallo Leute ich verstehe einen zusammenhang nicht wirklich vielleicht könnt ihr mir ja helfen :) In Level 2 Lesson 2 werden zusammengesetzte typen erklärt und ich glaube ich habe sie sie verstanden das man mit ihnen neue Typen für variabeln "erschaffen" kann. Ich habe versucht nach dem Beispiel vor
    • 5/21/20
    • 561views
    • 2comments
    0
  • Lex Medeiros
    Level 18
    San Jose
    Question about the task Task No. 2 about integer type conversions
    Java Syntax, Level 10, Lesson 4
    Under discussion
    You can't change the initialization of variable c, but you can add a cast operator.Could anyone tell me what I am doing wrong? I added a cast operator to a in the division so I can get 3.75.
    • 4/19/19
    • 1946views
    • 4comments
    0
  • Marcin Olech
    Level 41
    Kraków
    Question about the task CashMachine (part 9)
    Java Collections, Level 9, Lesson 15
    Under discussion
    Im confused. Everything seems like in requirements but doesn't pass.1st and 2nd requirements. What else can I do?:)
    • 2/27/20
    • 1311views
    • 6comments
    0
  • arvindsid
    Level 10
    Chennai
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Under discussion
    don't understand what is wrong with the codehttps://codegym.cc/quests/lectures/questsyntax.level05.lecture05 Implement the fight method Dont understand whats wrong in the below code. package com.codegym.task.task05.task0502; /* Implement the fight method */ public class Cat { public int age; public int weight; public int s
    • 9/6/18
    • 2302views
    • 5comments
    2
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Cats
    Java Core, Level 4, Lesson 4
    Under discussion
    why did i get a null pointer exceptionnull pointer exception
    • 8/14/19
    • 1082views
    • 2comments
    0
  • Jason Ahn
    Level 5
    Calgary
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Resolved
    Please helpI'm getting this error and don't know what the problem is... package com.codegym.task.task01.task0132; /* Sum of the digits of a three-digit number */ public class Solution { public static void main(String[] args) { System.out.println(sumDigitsInNumber(546)); } public st
    • 12/18/18
    • 2572views
    • 3comments
    0
  • manatsu ginn
    Level 28
    Tokyo
    Question about the task Words with numbers
    Java Core, Level 9, Lesson 11
    Under discussion
    doesn't ".*//d+.*" can determine whether a string contains number? please help.package com.codegym.task.task19.task1923; import java.io.BufferedReader; import java.io.FileReader; import java.io.FileWriter; import java.io.BufferedWriter; /* Words with numbers */ public class Solution { public static void main(String[] args) throws Exception{ BufferedReader br =
    • 5/20/20
    • 966views
    • 6comments
    0
  • manatsu ginn
    Level 28
    Tokyo
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Archived
    Please help, is there any problem with regex \\d{1,2}\\D* ?Please help, is there any problem with regex \\d{1,2}\\D* ?
    • 5/20/20
    • 664views
    • 4comments
    0
  • jajaceek
    Level 23
    Warszawa
    Question about the task Minesweeper (Part 12/16)
    Games, Level 0, Lesson 0
    Resolved
    I have no idea how to solve the task.I made several trials but nothing works. Blows there is the last trial but it also doesn't work. Any clue how to solve? // if (!gameField[y][x].isOpen){ // return; // } // else if (gameField[y][x].isFlag || gameField[y][x].isMine){ // return;
    • 1/7/20
    • 1292views
    • 4comments
    1
  • Picvajzmen
    Level 20
    Belgrade
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Resolved
    canot verify!Cant verify and i do not know why... It says that the program does not display text on the screen, which it obviously does...
    • 6/17/19
    • 1334views
    • 3comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Display right away
    Java Syntax, Level 3, Lesson 3
    Under discussion
    problem while running in Intellij IdeaActually I was working on the task Sum OF 3 DIGIT NUMBERS using intellij Idea. When I finished the program and tried to run in intellij idea it moved me to the mentioned task that I had already completed through the browser rather than using IDE . But I thought it might be the cause of problem
    • 5/20/20
    • 640views
    • 2comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Financial expectations
    Java Syntax, Level 3, Lesson 12
    Under discussion
    Getting desired output but the condition is not satisfied.Gave d as console input for the desired output
    • 5/20/20
    • 675views
    • 2comments
    0
  • Show How
    Level 13
    Manchester
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Resolved
    test is not passing please helpOnly the 3rd condition is not passing after countless times of submission. Please help whats happening here. Thanks.
    • 5/20/20
    • 664views
    • 4comments
    0
  • Shreyas Sadgir
    Level 11
    Pune
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved
    getting correct answer still not satisfying 4th condition getting correct answer still not satisfying 4th condition
    • 5/20/20
    • 554views
    • 3comments
    0
  • MBC
    Level 14
    Apeldoorn
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Sorting validation won't passWhen I test it, it works. But for some reason, it the tests don't see my sorting in desceding order method?
    • 7/19/19
    • 1433views
    • 3comments
    0
  • Wes Reed
    Level 10
    Alexandria
    Question about the task Do we have a pair?
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Not clear on why the 3rd and 4th conditions are not passing package com.codegym.task.task04.task0417; /* Do we have a pair? */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String reader1 = reader.readL
    • 5/20/20
    • 538views
    • 3comments
    0
  • David
    Level 26
    Bucharest
    Question about the task Factorial
    Java Core, Level 5, Lesson 12
    Resolved
    helpI dont know what's wrong public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int input = Integer.parseInt(reader.readLine()); reader.close(); System.o
    • 5/20/20
    • 613views
    • 2comments
    0
  • Rob
    Level 3
    Lommel
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    No idea what is wrong with this.Some help please.
    • 5/20/20
    • 794views
    • 4comments
    0
  • David
    Level 26
    Bucharest
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Can anyone help me? for (int i=1;i
    • 3/6/20
    • 1268views
    • 6comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Seeing dollars in your future
    Java Syntax, Level 4, Lesson 10
    Resolved
    I just want to know why i need to assign value one to d variable twice. Please clear my doubt. int m = 0; int d = 1; while(m<10) { while(d<10){ System.out.print("$"); d++; } System.out.print("$"); System.out.println(); m++; d=1; }
    • 5/19/20
    • 727views
    • 4comments
    0
  • 1
  • ...
  • 192
  • 193
  • 194
  • 195
  • 196
  • ...
  • 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