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
  • Ovo Leslie
    Level 26
    Lagos
    Question about the task Tetris (part 13)
    Java Collections, Level 2, Lesson 15
    Resolved
    Can anyone help me out here. I can't figure out the matrix thingHelp needed!
    • 5/21/20
    • 656views
    • 2comments
    1
  • FelixUjo
    Level 35
    Gijón
    Question about the task Reading and writing to a file: Human
    Java Core, Level 10, Lesson 2
    Under discussion
    I can't think of anything else to tryI can't think of anything else to try
    • 12/8/23
    • 334views
    • 1comment
    0
  • Amantai
    Level 47
    Shymkent
    Question about the task Iterating through a file tree
    Java Collections, Level 1, Lesson 2
    Under discussion
    HelpWhere is the error?
    • 12/12/23
    • 320views
    • 1comment
    0
  • Ramen
    Level 23
    South Lake Tahoe
    Question about the task Toward an RMI server
    Java Collections, Level 2, Lesson 10
    Under discussion
    Can anyone explain this? What does this have to do with the lesson?public class Solution { public static final String UNIC_BINDING_NAME = "double.string"; public static Registry registry; //pretend we start rmi client as CLIENT_THREAD thread public static Thread CLIENT_THREAD = new Thread(new Runnable() { @Override public void run(
    • 1/2/24
    • 350views
    • 0comments
    0
  • Rajesh Yadav
    Level 17
    Delhi
    Question about the task Reverse
    Java Syntax, Level 5, Lesson 2
    Under discussion
    way to salved the problem is straight forward read the first integer value stored in N(size of array) create an array of size N and stored all next value into array now check the size of array that N is even or odd if even then reverse the array and print else print same as it is.... hope you try first yourself...
    • 12/31/23
    • 349views
    • 0comments
    0
  • Bashka
    Level 4
    Russia
    Question about the task Conscription
    Java Syntax, Level 3, Lesson 3
    Under discussion
    WTF, paty two.. My answer: ......................... P Scanner scanner = new Scanner (System.in) ; String name = scanner. NextLine ( ) ; int age = scanner. NextInt ( ) ; if( age >= 18) { System.out.println ( name + militaryCommissar) ; } ; ................. And what you think? It write : wrong. WTF,
    • 12/31/23
    • 339views
    • 1comment
    0
  • Anonymous #11439288
    Level 22
    Question about the task Chess board
    Java Syntax, Level 6, Lesson 5
    Under discussion
    seems im printing the right output but its not validated , any clue ? package en.codegym.task.jdk13.task06.task0634; import java.util.Scanner; /* Chess board */ public class Solution { public static char[][] array; public static void main(String[] args) { //write your code here Scanner scanner = new Scanner(System.in); //System.ou
    • 12/29/23
    • 312views
    • 1comment
    0
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Even numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Very confused...I can't test this code because it says I'm missing a ")" on line 20, but I don't see anywhere I could put one. en/codegym/task/pro/task04/task0411/Solution.java:20: error: ')' expected for (int x = 1; x % 2 == 0; x++;) { ^ Is the error something else
    • 12/21/23
    • 670views
    • 7comments
    0
  • Khongpak Phupkdee
    Level 15
    Chiangrai
    Question about the task MovieFactory
    Java Core, Level 4, Lesson 8
    Resolved
    Why I passed this sixth requirement when I move code? Please ExplantFrom 6. For each string entered (including the invalid string), you must call the MovieFactory.getMovie method. public class Solution { public static void main(String[] args) throws Exception { // Read several keys (strings) from the console. Item 7 BufferedReader reader = new
    • 8/29/21
    • 1192views
    • 4comments
    1
  • Aleksander
    Level 41
    Question about the task Tetris (part 15)
    Java Collections, Level 2, Lesson 15
    Under discussion
    Hi, what is wrong with the createRandomGamePiece method?Hi, Despite the fact I had to manually write the whole GamePieceFactory method (where the task said at level 12 that it will complete it by its own), I don't know why it does not validate now. Can you help? Thanks
    • 3/16/20
    • 1355views
    • 10comments
    1
  • Andrei
    Level 41
    Question about the task Tetris (part 14)
    Java Collections, Level 2, Lesson 15
    Resolved
    Confusing redrawing of the linesThe logic of the algorithm is that it takes all of the non full lines and add them to an array. It leaves the full lines in the old array because the old array will be overwritten. Now, in line 25 it says add incomplete lines to the beginning of the list. This line of code doesn't make sense to me.
    • 6/25/21
    • 1024views
    • 4comments
    1
  • Anonymous #11439288
    Level 22
    Question about the task Day of the week
    Java Syntax, Level 3, Lesson 7
    Under discussion
    i think im printing the right outputcan somebody please give a hint what's wrong here ? It's failing on check for "If you enter a number from 1 to 7, you need to display the name of the day of the week" yet when I run the code i see correct output. package en.codegym.task.jdk13.task04.task0413; import java.io.BufferedReader; import
    • 12/22/23
    • 334views
    • 1comment
    0
  • Jerome Antoine
    Level 2
    Montreal
    Question about the task Declare variables
    Java Syntax, Level 0, Lesson 4
    Under discussion
    declaring variablesim supposed to declare some variables but one of the variables is an int age so when i name age as they asked its saying basically that i cant do it the solution here i have tried
    • 3/9/19
    • 1576views
    • 2comments
    0
  • Khrysus
    Level 3
    Denver
    Question about the task Count the number of cats
    Java Syntax, Level 3, Lesson 5
    Under discussion
    Only one count variable?Not sure what I'm doing wrong here. Can someone help me figure out why it's saying it has more than one count variable?
    • 12/17/23
    • 471views
    • 2comments
    1
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Second smallest number entered
    Java Syntax, Level 4, Lesson 5
    Under discussion
    It technically works, but not really... I almost have it, but not quite. With the example input it works, printing 4 as the lowest and 5 as the next smallest (I have it printing both for testing) but when I added a 3 at the end of the list of numbers (but before the enter breaks the loop) and it correctly updates the lowest number to 3, b
    • 12/20/23
    • 691views
    • 3comments
    0
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Minimum of entered numbers
    Java Syntax, Level 4, Lesson 5
    Under discussion
    What is happening???I don't understand what's happening, I run the code, it outputs 4, the lowest entered number. But it doesn't meet the requirements to pass, it fails the 'print the lowest entered number' and somehow it also fails 'take input from keyboard.' How is that possible if it is successfully taking in number
    • 12/19/23
    • 783views
    • 5comments
    0
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Maximum of entered numbers
    Java Syntax, Level 4, Lesson 5
    Under discussion
    Trying to figure out the math.I'm trying to figure out small parts of the code I'll need for this task. I'm currently working with making sure the number is even. But there's something wrong and I don't know what it is, when I run the code with the example inputs it prints 9 & 4, one is even and one isn't, but it should only
    • 12/19/23
    • 426views
    • 1comment
    0
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Summation
    Java Syntax, Level 4, Lesson 3
    Resolved
    StuckI don't understand why this isn't working. Everything looks right, and when I say everything out loud it makes sense, but something is wrong with it and the wizard has nothing to say about it. Can an actual person tell me what's wrong with it?
    • 12/17/23
    • 815views
    • 5comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task The early bird gets the worm
    Java Core, Level 6, Lesson 13
    Resolved
    Second to last task not passing?Any help would be appreciated. Thanks in advance
    • 9/2/21
    • 542views
    • 2comments
    1
  • Denis
    Level 22
    Kharkiv
    Question about the task Consecutive threads
    Java Core, Level 6, Lesson 13
    Under discussion
    Need helpGive me a code pls
    • 6/27/19
    • 1488views
    • 2comments
    1
  • Youngsan
    Level 41
    Seoul
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Resolved
    Seems to be right solution, but failed to pass. I got "The println method must display the number of cars (result of the getCarsCount method) for the passed WaterBridge object." What should be corrected to pass?
    • 9/6/20
    • 891views
    • 2comments
    2
  • FelixUjo
    Level 35
    Gijón
    Question about the task Overriding serialization in a thread
    Java Core, Level 10, Lesson 10
    Under discussion
    I don't know what's wrong.I don't know what's wrong.
    • 12/17/23
    • 286views
    • 1comment
    1
  • Sarah
    Level 13
    Question about the task Chess board
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Intelli IDE debug and run always failedWhen I use the Intelli IDE to try to solve this chess board problem, I saw this message: Connected to the target VM, address: '127.0.0.1:53542', transport: 'socket' My solution to this task passed the validation on the web, BUT when I try to run it on the Intelli IDE, it cannot print out anything,
    • 12/17/23
    • 273views
    • 1comment
    0
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Comparing strings by reference
    Java Syntax, Level 3, Lesson 9
    New
    Clarification of task?I've gotten two solutions that work but don't satisfy the requirements, so I don't think I fully understand the task prompt. Is it wanting me to compare the contents or address of the strings? And what does 'pairwise' comparison mean? I assume it's a term for one of those comparison type, but this
    • 12/14/23
    • 296views
    • 1comment
    0
  • hidden #10467591
    Level 19
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Resolved
    Where I am doing mistake?Could you help me with this?
    • 8/25/19
    • 1354views
    • 2comments
    1
  • LucGar
    Level 22
    Bilbao
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Resolved
    constans valueHello, when in this requeriment says "The getCarsCount() method must return any constant int value." what is the meaning of "constant? I search, and i found that the meaning of constant is equal a parameter "final" .
    • 3/31/20
    • 1222views
    • 3comments
    1
  • catalin1989
    Level 37
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    I need some clarificationsAfter reading the asked questions about this topic I understand this: 1. The resulting chain mustn't be the longest 2. I assume that the chaining is at the beginning or at the end. I tested my code with the following input: CaaT Okinawa Washington Auckland Kalamazoo zoooZ zooe Norfolk The output
    • 12/14/23
    • 684views
    • 8comments
    0
  • vinxxx0.1
    Level 3
    New
    libGDX Hi just wanna ask if you can use LIBGDX in this app to practice making games
    • 12/14/23
    • 263views
    • 0comments
    0
  • Van Ha
    Level 41
    Bodegraven
    Question about the task Buon Compleanno!
    Java Collections, Level 10, Lesson 10
    Under discussion
    What's wrong?As far as I can tell I'm using the methods correctly, but it won't verify
    • 5/1/20
    • 1112views
    • 2comments
    3
  • catalin1989
    Level 37
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Resolved
    Cant pass the last condition. Could you give me a hint?I can't pass the last condition. Could you give me a hint? I have tested my code with a file that contains: tar rat rat tar tart a a tot tot tot ab ba ab c c d d and the output was this: tar rat a a tot tot ab ba c c d d I think I am missing something.
    • 12/12/23
    • 312views
    • 2comments
    0
  • 1
  • ...
  • 14
  • 15
  • 16
  • 17
  • 18
  • ...
  • 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