CodeGym
Promotion
CodeGym University
Java FullStack
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
  • Shashank Kumar
    Level 3
    Jakarta
    New
    Problem in startingI am not able to start my task
    • 9/21/22
    • 439views
    • 0comments
    0
  • LuisRC
    Level 39
    Gijón
    Question about the task Derive a specific number
    Java Multithreading, Level 10, Lesson 8
    Under discussion
    I can't pass validation(again)Hi, Why can't I pass validation on this task? It's because I get the pow of 3 as a math calculation?
    • 9/20/22
    • 546views
    • 3comments
    0
  • Vishal Kumar
    Level 2
    Delhi
    Under discussion
    Give the Outputimport java.util.*; public class Number { public static void main(String args []) { Scanner sc = new Scanner (System.in); for(int i = 1; ; i++) { System.out.println(i); } } }
    • 9/20/22
    • 480views
    • 2comments
    0
  • Derek
    Level 14
    An Longfort
    Under discussion
    Dark matter point deducted for opening a task????Dark matter point deducted for opening a task????
    • 9/30/19
    • 1430views
    • 2comments
    1
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Charting our own course
    Java Multithreading, Level 5, Lesson 9
    Resolved
    Not SatisfyingHelp
    • 6/16/19
    • 1823views
    • 3comments
    0
  • Sean McDermott
    Level 5
    Ronan
    Question about the task To work or not to work? That is the question
    Java Syntax, Level 3, Lesson 6
    Under discussion
    The location spacing between my brackets was incorrect possibly? I don't understand.I've already solved it, so I'm unable to post my solution, however the only difference between my code and the given solution code was: After the if statement, the given solution looked like this: if (condition) { callback; } Whereas mine looked like this: if (condition) { callback; } Is there a r
    • 9/12/22
    • 613views
    • 2comments
    0
  • LuisRC
    Level 39
    Gijón
    Question about the task Smallest possible radix
    Java Multithreading, Level 10, Lesson 2
    Under discussion
    Can't pass validationHi there, Where is my mistake? Is my code right?
    • 9/15/22
    • 755views
    • 2comments
    0
  • Aidan Fetz
    Level 2
    United States of America
    Question about the task Amigo is very smart
    Java Syntax, Level 0, Lesson 2
    Under discussion
    helpI don't see what's wrong
    • 8/12/21
    • 780views
    • 1comment
    0
  • Georgică Leu
    Level 6
    Question about the task Is the glass half empty or half full?
    Java Syntax, Level 4, Lesson 10
    Resolved
    Am I formulating the code wrong or is it just that this answer wasn't included as a response to the task?Figured the correct answer (definitely not cheating lol) but wanted to know if this answer applies to the task as well. "The program should display an integer number on the screen according to the task conditions." - it sure is displaying an integer but I am just confused on why it isn't seeing it
    • 6/1/22
    • 865views
    • 4comments
    0
  • Alex Tor
    Level 31
    Question about the task Working with elements of an array
    Java Syntax, Level 6, Lesson 1
    Resolved
    I need more examples of what is being expected as an ouput.Hi guys, I'm pretty sure I can handle this task, but I don't understand what practically they want from me. What does it mean: that it reverses the sign of an element of the array array if the element is even. How it's supposed to look like, really have no idea. Thank you in advance!
    • 7/19/22
    • 674views
    • 5comments
    2
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task A convert can easily convert others
    Java Multithreading, Level 6, Lesson 2
    Resolved
    The compare method doesn't make sense in this contextThe compare method returns a single int (not an array), but I have to iterate through each comparator, each of which has a compare method of its own that returns an int. It can be assumed that for some of the comparators passed, o1 > o2, and for other comparators o2 > o1. So how to I return th
    • 1/29/22
    • 775views
    • 3comments
    1
  • Jagdish
    Level 6
    India
    Question about the task "I'm here about the job..."
    Java Syntax, Level 2, Lesson 3
    Under discussion
    i didn't understand anything Explain me iam unable to understand
    • 9/14/22
    • 547views
    • 0comments
    0
  • Kantipudi Sneha
    Level 5
    Under discussion
    print the series 1Form a number system with only 3 and 4. Find the nth number of the number system Eg.) The numbers are: 3, 4, 33, 34, 43, 44, 333, 334, 343, 344, 433, 434, 443, 444, 3333, 3334, 3343,3344, 3433, 3434, 3443, 3444. Input Format A single number 'n' Constraints 1 <= N <= 100000 Output Format
    • 9/11/22
    • 551views
    • 0comments
    0
  • Kallant 5445
    Level 2
    Under discussion
    where can i find the IDE?where can i find the IDE?
    • 8/28/22
    • 530views
    • 1comment
    0
  • Sirous
    Level 24
    New
    My code after 4 monthsHi to everyone!...I don't know if this is the right place to ask...Is my code deleted after 4 months? Thanks in advance!
    • 9/12/22
    • 575views
    • 0comments
    0
  • Kantipudi Sneha
    Level 5
    Under discussion
    roses 1A Charming Girl Was given Bouquet with Red Flowers and one White Rose. Red Roses are Numbered as follows 2 2 4 8 16 512....... Identify the White Rose of the series for given Red Roses. Input Format First line consists of Q queries. Each of the next Q lines contain a number N which represents the
    • 9/11/22
    • 866views
    • 0comments
    0
  • Andrei
    Level 41
    Question about the task Monitoring thread state
    Java Multithreading, Level 5, Lesson 5
    Under discussion
    Please help me make sense of main solution.I don't understand the logic of lines 14-16 from the Solution class. Why call Thread and not call logginstateThread.sleep? Why when target.start is called the state of loggingStateThread changes ? Is it because loggingStateThread does not create a new thread in its constructor and it uses the targe
    • 4/21/21
    • 651views
    • 1comment
    0
  • Azja
    Level 32
    Krakow
    Question about the task Monitoring thread state
    Java Multithreading, Level 5, Lesson 5
    Resolved
    How to do 4 requirement?Idk how to do that
    • 5/24/19
    • 1793views
    • 7comments
    2
  • Michał Pawłowicz
    Level 18
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Under discussion
    What could have possibly gone wrong?The checkMaschine says, that too many lines are being displayed. I'd be grateful for any help.
    • 4/13/20
    • 1168views
    • 2comments
    0
  • Pablo Souza
    Level 22
    Brisbane
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Under discussion
    "Too Many Lines" (???)Hey folks! I'm getting "The program displays too many lines" error, but I've tested using a real file using all sorts of characters and it shows exactly what it's suppose to show. Any hints? Thanks!
    • 4/10/20
    • 1187views
    • 5comments
    0
  • Verkan
    Level 3
    Kolkata
    Under discussion
    Can we add an if-else statement in a constructor?Can we add an if-else statement in a constructor?
    • 9/9/22
    • 720views
    • 2comments
    0
  • Abdelrahman
    Level 5
    Amman
    Question about the task Calling a constructor from a constructor
    Java Syntax, Level 5, Lesson 9
    Under discussion
    HelpHello everyone, so I know that I forgot to add semicolon to line 21 but I have a small question I don't want to verify it yet why did we add this(x,y,10.0) what's the use of it I did not understand could someone explain what its use to the code is please.
    • 3/25/21
    • 674views
    • 2comments
    0
  • Santosh Kumar
    Level 19
    Gagret
    Question about the task Consecutive threads
    Java Core, Level 6, Lesson 13
    Resolved
    Unknow error during task verificationI am getting an unknown error during task verification what could be the reason.
    • 7/1/19
    • 1554views
    • 1comment
    0
  • Wyatt Wilhelmi
    Level 20
    United States of America
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 13, Lesson 2
    Resolved
    I feel like I am on the right trackI do not understand why } else if ((t.length() == result.get(0).length())) and if ((t.length() < s.length()) && (s.length() != result.get(0).length())) returns as true when it is not. I have tested my code with: grandfather grandmother daughter program car and grandmother daugh
    • 9/7/22
    • 854views
    • 4comments
    0
  • LuisRC
    Level 39
    Gijón
    Question about the task Restaurant (part 2)
    Java Multithreading, Level 9, Lesson 15
    Under discussion
    Exception not thrown.Hi there, I've an error on the Tablet method's createOrder. The error says that the IOException is never thrown. Even in the solution given by CG this error is raised. Is it a problem of the java version? Thanks
    • 9/7/22
    • 486views
    • 2comments
    0
  • Ganganagar S
    Level 1
    Suri
    Resolved
    what is the problem tell me my answer is but not take why sir
    • 9/6/22
    • 511views
    • 0comments
    0
  • Adrian F
    Level 6
    Landover
    Question about the task To work or not to work? That is the question
    Java Syntax, Level 3, Lesson 6
    Under discussion
    In the requirements, what does (inclusive) mean? If the age is in the range from 20 to 60 (inclusive), then don't display anything.
    • 9/4/22
    • 861views
    • 2comments
    0
  • Ian De Bie
    Level 28
    Austin
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    how do you pass the last 2 validations?My output for "Okinawa Washington Auckland Kalamazoo Norfolk" is "Washington Norfolk Kalamazoo Okinawa Auckland"
    • 11/9/20
    • 845views
    • 9comments
    0
  • Anonymous #11077147
    Level 1
    Under discussion
    New to CodeGym - How do I unlock my task?I am new to CodeGym, how do I get started? How do I unlock my task and move forward? Can someone help?
    • 9/1/22
    • 505views
    • 2comments
    0
  • public enum WaysToDie
    Level 23
    Denver
    Question about the task A cubed cube calculator
    Java Syntax, Level 7, Lesson 3
    Resolved
    I'm stumpedIt seems my code performs all the requirements, but it is failing still. It says I need to use cube to implement the ninthDegree method. And I am doing that, yet it does not pass. And my code is correct it does not show but i did: public static long ninthDegree(long a) { long b = cube(a)
    • 12/18/21
    • 593views
    • 1comment
    1
  • 1
  • ...
  • 42
  • 43
  • 44
  • 45
  • 46
  • ...
  • 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