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
  • Gellert Varga
    Level 23
    Szekesfehervar
    Under discussion
    Reference conversions: widening and narrowingFrom the Oracle's website: "A widening reference conversion exists from any reference type S to any reference type T, provided S is a subtype of T. " "Narrowing reference conversions: From any reference type S to any reference type T, provided that S is a proper supertype of T. " 1.) On base of th
    • 1/6/21
    • 798views
    • 4comments
    0
  • Odeh Osayande Vincent
    Level 1
    Limerick
    Under discussion
    algorithmDesign an Algorithm for the following Java application that asks a customer to: enter the quantity of items requested from a mail-order catalogue, and the price of each item. The program will then return & display the totalCost of the required items. The results are formatted to
    • 5/1/20
    • 828views
    • 0comments
    0
  • Odeh Osayande Vincent
    Level 1
    Limerick
    Question about the task Improvements in Java 7 (multiple exceptions)
    Java Collections, Level 8, Lesson 6
    Under discussion
    write a method called positive values which will calculate and return the number of positive numbers in arraywrite a method called positive values which will calculate and return the number of positive numbers in array
    • 5/1/20
    • 980views
    • 0comments
    0
  • Syed
    Level 1
    Bolton
    Under discussion
    what is subscription fees?Hi what is subscription fees?
    • 5/3/20
    • 1046views
    • 0comments
    0
  • fzw
    Level 41
    West University Place
    Question about the task Caching
    Java Collections, Level 4, Lesson 8
    Under discussion
    Why is my code not validating last two requirements?I can get exactly the same result as the expected output. Thanks.
    • 5/5/20
    • 915views
    • 0comments
    0
  • anele
    Level 0
    Under discussion
    Online teaching Does online teaching enhance the learning of Business studies at this time of covid 19
    • 5/6/20
    • 494views
    • 0comments
    0
  • myqms
    Level 22
    Landshut
    Under discussion
    What is wrong with the markTile method ?Please help, I can't find the mistake.
    • 5/6/20
    • 520views
    • 0comments
    0
  • Vadim
    Level 8
    Hounslow
    Under discussion
    it's something new for me, who can explain me that? Thanks a lotpublic class Solution { public static int step; public static void main(String[] args) { method1(); } public static void method1() { method2(); } public static void method2() { new Solution().method3(); } public void method3() { me
    • 5/14/20
    • 474views
    • 0comments
    0
  • Dima Faraj
    Level 0
    Question about the task Snake (Part 20/20)
    Games, Level 0, Lesson 1
    Under discussion
    Help with Snake CollisionI've just finished the course, and am doing bug-fixes. I have no idea how to make the snake move correctly, here's the code relating to my issue: //snake.java package com.codegym.games.snake; import com.codegym.engine.cell.*; import java.util.ArrayList; import java.util.List; public class Snake ex
    • 5/15/20
    • 807views
    • 0comments
    0
  • Arthur
    Level 8
    Céron
    Under discussion
    HelloI don't understand why it doesn't work...
    • 5/18/20
    • 581views
    • 0comments
    0
  • Angus McDonald
    Level 5
    Sydney
    Question about the task Minesweeper (Part 16/16)
    Games, Level 0, Lesson 0
    Under discussion
    Final step and code has been adjusted (not by me) which now doesn't function correctly.Hi team, I've just completed step 15 of the Minesweeper project successfully, moved into step 16 being very pleased with myself seeing that the game is complete and it appears that a bunch of code has been removed / updated when moving from step 15 to 16. The game isn't functioning as it should. I'
    • 5/19/20
    • 487views
    • 0comments
    0
  • Lisa THAZAR
    Level 1
    Francheville
    Under discussion
    Hi everyone..This is my code, and the error is the createGame don't call in the initialize.. Can you help me please?package com.codegym.games.minesweeper; import com.codegym.engine.cell.*; public class MinesweeperGame extends Game { private GameObject[][] gameField = new GameObject[SIDE][SIDE]; // check spelling of GameObject[][] variable above private static final int SIDE = 9; public void ini
    • 5/20/20
    • 582views
    • 0comments
    0
  • BlueJavaBanana
    Level 37
    Question about the task Debug everything under the sun
    Java Core, Level 6, Lesson 13
    Resolved
    Hints/Tips on this TaskI don't want the solution to this task, but I'm really struggling to grasp how to approach this problem. Has anyone got any tips/subtle hints?
    • 5/14/20
    • 714views
    • 2comments
    0
  • Katerina Brookshaw Petranova
    Level 5
    Parque la reina-Cho
    Question about the task Currency exchange
    Java Syntax, Level 3, Lesson 3
    Resolved
    please helpcan you please tell me where I'm going wrong and what have I forgotten? Please be clear as this is the first time I'm trying to learn programming language, thanks.
    • 12/15/20
    • 663views
    • 5comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Minimum of two numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Can not find symbol num1 and num2 package com.codegym.task.task04.task0418; /* Minimum of two numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    • 1/6/21
    • 614views
    • 2comments
    0
  • Lex Medeiros
    Level 18
    San Jose
    Question about the task Debug everything under the sun
    Java Core, Level 6, Lesson 13
    Under discussion
    The program must use OurUncaughtExceptionHandler's uncaughtException method to display 2 messages.As far as I understand this I am setting the default exception handler OurUncaughtExceptionHandler. Placing it inside the TestedThread class definition. It outputs the two lines correctly. Thus, it must be using "OurUncaughtExceptionHandler to display the two messages. Please help!
    • 7/11/19
    • 1792views
    • 5comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Debug everything under the sun
    Java Core, Level 6, Lesson 13
    Under discussion
    need some hintIf i properly understand Interface Thread.UncaughtExceptionHandler it should be invoke when RuntimeException is throw.
    • 2/28/19
    • 1535views
    • 4comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Do we have a pair?
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What went wrong in displaying all the 3 equal nos. at line 27 import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader (new InputStreamReader(System.in)); String fnum = reader.readLine(); int num1 = Integer.parse
    • 11/29/20
    • 832views
    • 4comments
    0
  • Lex Icon
    Level 17
    Sofia
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    Splitting-sorting has implemented correctly, the problem is to populate the final ArrayList contains the sorted data.Hi Java warriors, Just to make some of my actions more clear: I called isGreaterThan() just to cover the requirement, in fact - my code doesn't need this check (maybe I'm wrong, it's possible tho). So, I'd highly appreciate it if anyone would help me to fix my code, by editing: //populating the fina
    • 1/5/21
    • 679views
    • 5comments
    0
  • Jennifer Peters
    Level 3
    Brisbane
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    Help - Explanation of for loopHi all, I was just wondering if anyone could explain why my function prints 5 times. My understanding is that the loop would stop before index 5 because of the for loop condition i<5. Would anyone please explain this to me? Thanks 😀
    • 1/6/21
    • 640views
    • 1comment
    0
  • joe
    Level 27
    London
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Under discussion
    Stuck on last validation "Copy all the bytes from the *.partN files to the new file."Any tips on what I'm doing wrong?
    • 1/5/21
    • 457views
    • 3comments
    0
  • Thasi
    Level 10
    Cape Town
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Confused as to what I am getting wrong...Tested it with both numbers/strings only - still works but my code is not verified as correct, where did I go wrong?
    • 7/8/19
    • 1340views
    • 4comments
    0
  • anupam jha
    Level 7
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Resolved
    help plz public static int sumDigitsInNumber (int number) { } what to write inside this method n more importantly why ??? when you write System......print..(method (546))... you are nt done?? why??
    • 1/5/21
    • 759views
    • 3comments
    0
  • Chandan Thapa
    Level 22
    Dubai
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Resolved
    how and where am I doing wrong?Any help would be great.
    • 1/4/21
    • 577views
    • 5comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Unable to approach in proper wayPlease refer line number 16 tried with real numbers 1.5 and 2.5. It is working with 2.5 and hope if I do so it will work for rest But its a Big O(n) type approach its not so good please help
    • 11/28/20
    • 810views
    • 10comments
    0
  • Sendhur Muthu
    Level 2
    Mumbai
    Under discussion
    Need to continue my learning quest..I am at level 2..Idont have any more dark matter to move forward..stuck in here ,can you give me a solution..And also i have completed all my free tasks. Moreover I cant afford to buy premium. Need help to finish my quest.
    • 4/29/20
    • 872views
    • 0comments
    0
  • Jhoal
    Level 22
    Berlín
    Question about the task A list and some threads
    Java Core, Level 6, Lesson 3
    Under discussion
    I don't understand why? Hey guys I have a question. I didn't quite understand why do I have to write the keyword new and the () in SpecialThread - - >> new Thread (new SpecialThread ()); Wouldn't be enough just address SpecialThread and nothing else? Or is it because it is a static class?
    • 1/5/21
    • 544views
    • 1comment
    0
  • anupam jha
    Level 7
    Under discussion
    variables Cat c = new Cat(); here i created cat variables or objects? yes i initialized the Cat c variable hence its an object....Give ur opinion....Thanks...!
    • 1/4/21
    • 746views
    • 2comments
    0
  • Liliane Top
    Level 17
    Amsterdam
    Question about the task Snake (Part 11/20)
    Games, Level 0, Lesson 1
    Under discussion
    Again I fail the test but it works in my gameI tried many different thing and it seems to work correctly in my game but I keep failing the test. Someone any idea why??
    • 2/29/20
    • 1400views
    • 3comments
    0
  • Josephine
    Level 2
    Normal
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Under discussion
    Why my third condition is not passing?I am getting correct output.Why my third condition is not passing?I am getting correct output. please help
    • 1/5/21
    • 769views
    • 1comment
    0
  • 1
  • ...
  • 102
  • 103
  • 104
  • 105
  • 106
  • ...
  • 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