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
  • Chris
    Level 19
    Newark
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Resolved
    Im not sure what I am supposed to do here.Is it asking me to create 10 new strings or use the array?
    • 9/12/20
    • 1041views
    • 2comments
    0
  • ThomasLC
    Level 16
    Singapore
    Question about the task Different methods for different types
    Java Core, Level 5, Lesson 12
    Under discussion
    Last condition not met plus strange bugCode executes okay, just that there's this weird thing where it'll always print an extra empty string after a (Double) Entry. Help would be appreciated :)
    • 5/25/19
    • 1776views
    • 7comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Printing strings
    Java Syntax, Level 3, Lesson 5
    Resolved
    What is wrong with my writeToConsole method inside main()? public class Solution { public static void main(String[] args) { public static void writeToConsole("Hello, World!"); } public static void writeToConsole(String s) { //write your code here System.out.println("printing: "+ s); } }
    • 4/29/20
    • 1140views
    • 2comments
    2
  • isaacfibo
    Level 24
    Huntington
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    Can't pass the last one...Help pls!!!Don't know why the last one won't pass.
    • 9/22/20
    • 494views
    • 5comments
    0
  • Branka
    Level 41
    Belgrade
    Question about the task Snake (part 12)
    Java Multithreading, Level 2, Lesson 18
    Under discussion
    The method must be called on a Room object?Hello, I am not quite sure what other Room object should call the mentioned methods in main, apart from the game object. I'd be really grateful if someone could point out what's wrong in my code. Thanks a bunch. Branka
    • 4/11/20
    • 1288views
    • 11comments
    0
  • Bill Wu
    Level 29
    Wellington
    Question about the task Threads of a string or stringy threads? That's the question
    Java Multithreading, Level 2, Lesson 5
    Resolved
    What's the meaning of the last requirement?I am not sure what's the requirements want. To my understanding each method should show the text in the conditions which my code does, but it's not verified. Can anyone explain it please? Thanks.
    • 4/4/19
    • 2184views
    • 11comments
    0
  • hidden #10447638
    Level 22
    Question about the task Minimum number of statics
    Java Syntax, Level 6, Lesson 11
    Resolved
    Why does "step" variable needs to be static?I don't quite understand why the variable needs to be static. I know method1 needs to be static because it's called by main (which is static), and method2 because it's called by method1. package com.codegym.task.task06.task0616; /* Minimum number of statics */ public class Solution { stat
    • 6/4/19
    • 2155views
    • 8comments
    0
  • Carli Eubanks
    Level 15
    San Diego
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Resolved
    I'm lostI've tried a lot of variations, but it's not working. I don't know how to fix it so any advice would be greatly appreciated.
    • 9/25/20
    • 748views
    • 2comments
    0
  • Buba
    Level 6
    Trebic
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    where is the problem?Is it because i use array? Output of the program shows correct maximum. Please someone give me a hint. Thanks
    • 9/13/20
    • 776views
    • 7comments
    0
  • sourav bamotra
    Level 20
    jammu
    Question about the task Horse racing
    Java Core, Level 6, Lesson 5
    Under discussion
    passed the task...but i am bit confused.we haven't started the thread anywhere through which our run() method will run(i.e "new Thread(horse.get(index)).start()"). Then how we will reach the code inside the run() method. Help out please!!
    • 9/25/20
    • 650views
    • 6comments
    0
  • Yuliya Samsonava
    Level 3
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Non-static variable wife cannot be referenced from static contentpackage com.codegym.task.task02.task0204; /* Family relations */ public class Solution { public static void main(String[] args) { // Woman woman = new Woman(); Man man = new Man(); Man.wife = Woman; Woman.husband = Man; } public static clas
    • 9/19/20
    • 877views
    • 2comments
    0
  • Angel Stefan Arjoca
    Level 26
    Bucharest
    Question about the task Using RandomAccessFile
    Java Collections, Level 2, Lesson 2
    Resolved
    How i can convert string to text?How i find is text is the same? 🤔
    • 9/22/20
    • 733views
    • 2comments
    0
  • Maryem Vickers
    Level 7
    HT...
    Question about the task Class counter
    Java Syntax, Level 6, Lesson 8
    Under discussion
    I've run out.What do I do if I run out of dark matter and I can't get any more?! I faced this terrible problem already... :<
    • 9/5/20
    • 701views
    • 4comments
    0
  • hidden #10654418
    Level 18
    Under discussion
    Minesweeper (part 15/16)I can't fullfill the requestst - when I try this: private void restart() { isGameStopped = false; countClosedTiles = SIDE * SIDE; score = 0; setScore(score); countMinesOnField = 0; } I got following error: The createGame() method must clear all items (flags, mines
    • 9/24/20
    • 460views
    • 2comments
    0
  • Bohdan
    Level 8
    Milan
    Question about the task Space Invaders (Part 34/34)
    Games, Level 0, Lesson 6
    Resolved
    BugSHAPEMATRIX package com.codegym.games.spaceinvaders; public class ShapeMatrix { public static final int[][] ENEMY = new int[][]{ {7, 0, 7}, {7, 7, 7}, {0, 7, 0} }; public static final int[][] PLAYER = new int[][]{ {0, 0, 6, 0, 0},
    • 9/18/20
    • 704views
    • 3comments
    0
  • vamsi mokari
    Level 13
    Hyderabad
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Under discussion
    whats the issue in my codepackage com.codegym.task.task08.task0823; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; /* Going national */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader =
    • 9/25/20
    • 552views
    • 1comment
    0
  • mona
    Level 7
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    pleaseplease correct the error
    • 9/24/20
    • 916views
    • 6comments
    0
  • Tamas Horcsak
    Level 18
    Leeds
    Question about the task Seeing dollars in your future
    Java Syntax, Level 4, Lesson 10
    Under discussion
    why my code is not acceptedimport java.io.*; public class Solution { public static void main(String[] args) throws Exception { int i = 0; while(i < 10){ int f = 0; while(f < 10){ System.out.print("$ "); f++; }
    • 9/24/20
    • 555views
    • 3comments
    0
  • Jac
    Level 7
    Birmingham
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    It's not passing the second to last requirement. Can someone help me find out why? package com.codegym.task.task05.task0532; import java.util.Scanner; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { Scanner input = new Scanner(System.in); int maximum = Integer.MIN_VALUE; while(i
    • 9/23/20
    • 446views
    • 2comments
    0
  • Shadow
    Level 7
    Hogsmead
    Question about the task Max constructors
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Helppphelpppl!!!!!
    • 9/24/20
    • 653views
    • 1comment
    0
  • Mateusz
    Level 36
    Wroclaw
    Question about the task HTML Editor (part 8)
    Java Multithreading, Level 8, Lesson 15
    Resolved
    Tip for this taksHi small Tip: Don't override all method in the package "action". Take(override ) only public void actionPerformed(ActionEvent e) method.
    • 2/25/20
    • 1269views
    • 3comments
    0
  • siya
    Level 2
    Sandton
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    can somebody pleaae help me. im not sure what i have done wrong I tried looping but im not very familiar with the way it is supposed to be implemented
    • 4/16/20
    • 1217views
    • 4comments
    0
  • Umabharathy
    Level 2
    chennai
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    Error in the codeI executed the code this way and having errors in it please help.
    • 1/8/19
    • 1560views
    • 5comments
    0
  • mona
    Level 7
    Question about the task The way of the Samurai
    Java Syntax, Level 3, Lesson 6
    Under discussion
    meaning🤔🤔what is the meaning of that word... actually..which language🤷‍♀️🤷‍♀️
    • 9/23/20
    • 544views
    • 4comments
    0
  • bri
    Level 7
    Sevilla
    Question about the task Cat's finalize method
    Java Syntax, Level 6, Lesson 5
    Resolved
    Seriously?!HOnestly I copied word for word if I don't put semi-colon after Throwable error. If i put one error. If I enter a variable ie String name Cat String name error. What is going on?!
    • 2/6/19
    • 2004views
    • 6comments
    0
  • sabrine RA
    Level 12
    Paris
    Question about the task Big salary
    Java Syntax, Level 10, Lesson 11
    Under discussion
    HELP!i can't understand the error or the goal of this task
    • 9/24/20
    • 495views
    • 1comment
    0
  • Onur Bal
    Level 27
    Istanbul
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Resolved
    Not Getting Verified Despite Having Correct OutputI have tested the programme on my computer and everything seems to work perfectly. On line 22, I also tried printing out a substring in order to leave the id out, but that doesn't seem to work either. EDIT: I was able to solve the problem. To give a hint to anyone who may face a similar issue, cons
    • 9/24/20
    • 585views
    • 0comments
    0
  • Lawson
    Level 29
    Lagos
    Question about the task Snake (part 16)
    Java Multithreading, Level 2, Lesson 18
    Resolved
    Pls helpI have an error in the 3rd condition
    • 9/23/20
    • 578views
    • 2comments
    0
  • Au Ivan
    Level 17
    Hong Kong
    Question about the task Cats
    Java Core, Level 4, Lesson 4
    Resolved
    NullPointerExceptionOutPut: java.lang.NullPointerException at com.codegym.task.task14.task1404.Solution.main(Solution.java:17) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAcce It run very well on my JDK..but it creates an exception here...why lol
    • 10/13/19
    • 2076views
    • 4comments
    0
  • amj
    Level 7
    Imphal
    Question about the task To the top of the list
    Java Syntax, Level 7, Lesson 6
    Under discussion
    the third condition is not satisfied.how can i fix this?
    • 9/24/20
    • 795views
    • 2comments
    0
  • 1
  • ...
  • 134
  • 135
  • 136
  • 137
  • 138
  • ...
  • 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