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
    Resolved
    How to create several java files and one java package manually? And to run it from Windows commandline (DOS).Don't ask why:-) Just because this is interesting for me. I'm able to run simple programs from commandline but only if they are written into one single file. It works fine. For example, if the CatTest.java file is inside the C:\TEST folder, then i run it from the commandline this way: C:\TEST>
    • 1/13/21
    • 761views
    • 4comments
    0
  • Abdelrahman
    Level 5
    Amman
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    what's wrong with my code?i don't understand why the 6th task wrong could someone explain?
    • 12/31/20
    • 568views
    • 3comments
    0
  • Abdelrahman
    Level 5
    Amman
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Resolved
    questionHow do I make it so that I display text through checkSeason?
    • 1/12/21
    • 712views
    • 2comments
    0
  • Abdelrahman
    Level 5
    Amman
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    HelpWhy is the first task not checked.
    • 1/13/21
    • 692views
    • 2comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Resolved
    I thought after days of struggling that I nailed itOkay it is a bit of spaghetti code but why do I fail the test? I even tried with triple nested tags and the output seems correct....
    • 1/13/21
    • 552views
    • 3comments
    0
  • Dinesh
    Level 7
    Delhi
    Under discussion
    Not getting line 6 & 7 public class Solution { public static void main(String[] args) { //write your code here Man man = new Man(); Woman woman = new Woman(); man.wife = husband; woman.husband = man; } public static class Man { public int age; public in
    • 1/6/21
    • 686views
    • 7comments
    0
  • Vincent
    Level 2
    Under discussion
    I have ran out of dark matter, and cannot afford a premium subscription. What should I do?I have ran out of dark matter, and cannot afford a premium subscription. What should I do?
    • 7/13/20
    • 585views
    • 0comments
    0
  • dhanush
    Level 30
    Chennai
    Question about the task Snake (Part 18/20)
    Games, Level 0, Lesson 1
    Under discussion
    please helphelp me please :(
    • 7/14/20
    • 654views
    • 0comments
    0
  • Vincent
    Level 2
    Under discussion
    I have ran out of dark matter, and cannot afford a premium subscription. What should I do?I have ran out of dark matter, and cannot afford a premium subscription. What should I do?
    • 7/15/20
    • 591views
    • 0comments
    0
  • ppp122
    Level 20
    Under discussion
    这个要咋做,求大佬帮助! package zh.codegym.task.task09.task0925; /* 错位的 static 修饰符 */ public class Solution { public int A = 5; public static int B;// = 2 * A; public static int C;// = A * B; public static int D;// = A * B; public static void main(String[] args) { Solution room = new Soluti
    • 7/15/20
    • 510views
    • 0comments
    0
  • andy 6473
    Level 9
    Bangalore
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Under discussion
    java lang null pointer exceptionsdkg;aweoisjvnaweoi aweigh;aweUIHfifswpivgjSDIKvj Zn vnvAIjvnaN vasn nac
    • 7/15/20
    • 641views
    • 0comments
    0
  • AlfredW
    Level 23
    Denver
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Under discussion
    I am getting the correct output and I am meeting all of the asked for conditions. So I do not understand what is wrong.It keeps on giving feedback that the sort method should be able to sort an array of any length.. even though that is NOT in the required Conditions. So I have modified it so that it could actually sort any length array and it still won't verify. So I am lost.
    • 7/15/20
    • 661views
    • 1comment
    0
  • Bozena
    Level 4
    Boston
    Under discussion
    Kiedy wybieram zadanie (Select task), IDEA wyłącza sięENGLISH BELOW Hej, jak tylko chcę wybrać jedno z dostępnych zadań, program się wyłącza i pokazuje się komunikat o niespodziewanym błędzie. Mam macbooka 10.9.5. IntelliJ IDEA wersja 2019, zaś JDK najnowsza, 14. Jak to naprawić? Załączam screeny. Z góry dziękuję za odpowiedź! Hi, when I select a
    • 7/18/20
    • 698views
    • 0comments
    0
  • Rush Waa
    Level 9
    Under discussion
    Question about levelshow to unlock levels which are beyond level 40?
    • 7/18/20
    • 497views
    • 0comments
    0
  • Norbert
    Level 41
    Kielce
    Under discussion
    Could someone please explain to me what to do hereI have no ideas anymore, The last one doesn't work Requirements: The private void gameOver() method must be created in the Game2048 class. The isGameStopped variable must be set to true in the gameOver() method. The showMessageDialog(Color, String, Color, int) method must be called in
    • 7/20/20
    • 527views
    • 0comments
    0
  • Michał
    Level 3
    Katowice
    Under discussion
    Snake Part 3/20 - Anyone can help please with the " The GameObject class must have one constructor with two int parameters that are used to initialize the x and y fields. " Anyone can help please with the " The GameObject class must have one constructor with two int parameters that are used to initialize the x and y fields. " Have no Idea what I do wrong. Can you guys explain me what exaclty and how to fix it ? Thanks! package com.codegym.games.snake; public class
    • 7/22/20
    • 484views
    • 0comments
    0
  • Lawson
    Level 29
    Lagos
    Question about the task Subjective reality
    Java Syntax, Level 2, Lesson 3
    Under discussion
    jaJava come eat my memory... that I may understand well😁😁😁
    • 7/22/20
    • 588views
    • 0comments
    0
  • Nicholas Grube
    Level 41
    Carrollton, TX
    Question about the task CashMachine (part 14)
    Java Collections, Level 9, Lesson 15
    Under discussion
    Confused about output for WithdrawCommand.I am confused on the requirements of using the string success.format in withdraw_en.properties. Where and How should we use the success.format string? Do we display the total amount withdrawn, or the total for each denomination? I am completely lost here. Furthermore, do we still need to display ea
    • 7/24/20
    • 631views
    • 0comments
    0
  • Prassha
    Level 24
    Chagford
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    I think this is badly written code but passed. i tried to do space efficient way but it wont pass. public static StringBuilder getLine(String... words) { ArrayList strings = new ArrayList<>(); if(words.length==0) return new StringBuilder(); for(String s:words) strings.add(s); ArrayList permutedList= new ArrayList<>(); pe
    • 7/24/20
    • 622views
    • 0comments
    0
  • Blizniak
    Level 4
    Cieszyn
    Under discussion
    Pomoze ktos ? package pl.codegym.task.task03.task0307; /* Witaj, StarCraft! */ import java.time.temporal.Temporal; public class Solution { public static void main(String[] args) { Zerg zerg = new Zerg(); zerg.imie = "barnaba"; Zerg zerg2 = new Zerg(); zerg2.
    • 1/13/21
    • 494views
    • 1comment
    0
  • Andrei
    Level 41
    Question about the task Task No. 1 about integer type conversions
    Java Syntax, Level 10, Lesson 4
    Resolved
    Dividing by 0 not throwing error? Huh?a is 0; b is 46; c is 0; f is 1234.0; long d = (short) (0 + 1234 / 0 [not possible!] + 46) Why is the output -1? Also, I thought char only holds 1 value. That applies only to letters? Does this mean that for values, char can hold range -32,678 to 32,678? public class Solution { public static
    • 11/16/20
    • 854views
    • 6comments
    1
  • Dinesh
    Level 7
    Delhi
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Condition checkThe task has been submitted successfully But I think there is one flaw in condition check When entered equal numbers say eg.555, 666, 10,10,10 It is giving 3 as ordinal number in such case in the following code. But it should not be. How to get exit without any output if all numbers are equal as
    • 1/12/21
    • 560views
    • 6comments
    0
  • Tay2von
    Level 6
    Oklahoma City
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    ALL TASKS PASS EXCEPT ONE.... What am I missing?
    • 1/13/21
    • 601views
    • 1comment
    0
  • Rich
    Level 23
    San Diego
    Question about the task File in a static block
    Java Core, Level 5, Lesson 12
    Resolved
    not getting anythingI'm trying to do this on a mobile device and am not getting any output. any pointers?
    • 1/12/21
    • 647views
    • 2comments
    0
  • Blizniak
    Level 4
    Cieszyn
    Under discussion
    CO jest nie tak ze sie nie chce skompilowac ? prosze o pomoc package pl.codegym.task.task03.task0303; /* Wymiana walut */ public class Solution { public static void main(String[] args) { konwertujEurNaUsd(200, 4.12); konwertujEurNaUsd(200, 4.14); { System.out.println(konwertujEurNaUsd(200, 4.12)); Syste
    • 1/12/21
    • 594views
    • 1comment
    0
  • DmdKanth
    Level 19
    Dayton
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    not sure what's wrong. it errors on reading keyboard info but it is doing that. Not sure what's wrong.
    • 1/12/21
    • 634views
    • 4comments
    0
  • Vincenzo Seggio
    Level 28
    Question about the task Snake (Part 20/20)
    Games, Level 0, Lesson 1
    Resolved
    Game shows "Game Over" after start.I passed all Snake-Lessons, but if I start the game it shows directly "Game Over". Is there somebody who had the same problem?
    • 1/12/21
    • 655views
    • 1comment
    0
  • Tobias
    Level 1
    Maisried
    Under discussion
    heyHey guys i always get this achievment that i made my first level but i can't click it away i always have to reload the page and then it comes back Can anyone tell me how to get this message off or how can I contact the support? Sry for my bad english
    • 7/24/20
    • 466views
    • 0comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Resolved
    I do not understand the conditionsWhat exactly is required. How should the output look like. I'm afraid I do not understand the requirements..
    • 1/8/21
    • 588views
    • 2comments
    0
  • Slawek
    Level 16
    Wroclaw
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Problem with taskWhere is the mistake?
    • 1/12/21
    • 639views
    • 3comments
    0
  • 1
  • ...
  • 98
  • 99
  • 100
  • 101
  • 102
  • ...
  • 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