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
  • Yuvavimal
    Level 12
    coimbatore
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    please check my code. it's print output is correct. but task not to meet ,what is a wrongpackage com.codegym.task.task05.task0532; import java.io.*; import java.util.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); // Scanner
    • 21.07.2020
    • 447views
    • 1comment
    0
  • Dyrits
    Level 1
    Question about the task Snake (Part 14/20)
    Games, Level 0, Lesson 1
    Resolved
    I don't know what I'm doing wrong...The move(Apple) method must call the checkCollision(GameObject) method with the new head as the argument before the new snake segment is added to the snakeParts list. Isn't it what I'm doing ? public void move(Apple apple) { GameObject newHead = createNewHead(); boolean outOfA
    • 17.07.2020
    • 628views
    • 2comments
    0
  • Jaxsen Chew
    Level 29
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Can't seem to figure out where the copying goes wrongTried looking at the other questions on this task but to no avail. Someone recommended using a for loop with the try-catch inside but it seems redundant to me. Anyone has any ideas on what to change to get my code working?
    • 06.05.2020
    • 749views
    • 2comments
    0
  • Iasu
    Level 18
    Question about the task Time conversion
    Java Syntax, Level 3, Lesson 5
    Resolved
    Do i have to convert to double datatype to pass requirement 2?I don't understand why I'm getting an error on req.2? I have tried "hour = hour/36000", I get the same error.
    • 30.11.2018
    • 1981views
    • 3comments
    0
  • jake taylor
    Level 17
    Lisbon
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Under discussion
    what is wrongggggtask 2 is very poorly written please can somebody assist?
    • 02.07.2020
    • 420views
    • 3comments
    0
  • Ryan
    Level 16
    Ashburn
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Resolved
    Everything Works but 2nd Condition Still FailsI'm not sure why this is not passing. I meet all of the conditions except #2 and I meet that one I as through an exception if the numbers are not positive after attempting to convert them to positive. Any advice is appreciated.
    • 20.07.2020
    • 478views
    • 1comment
    0
  • Joel Pearce
    Level 22
    Birmingham, UK
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Resolved
    Programme works, but can't meet third conditionHello all, My programme meets the task requirements in that it capitalises the first letter of every string, but for some reason it can't pass the 3rd condition. I have inputted a bunch of difference sentences to see if it would work and it's perfect every time. Could anyone let me know why my code
    • 16.07.2020
    • 705views
    • 2comments
    1
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task We're all friends here, even the exceptions
    Java Syntax, Level 9, Lesson 8
    Under discussion
    I'm so lost. How do I throw and exception that's in an extends classI have no clue what to do now. I tried throwing an exception right after the extends code and that ended in an error. I also tried to throw the error in the body of the method and had errors. Please help. Thank you for your assistance.
    • 20.07.2020
    • 597views
    • 3comments
    0
  • Raj Mishra
    Level 15
    India
    Question about the task Minimum of N numbers
    Java Syntax, Level 8, Lesson 11
    Resolved
    I dont understand why its failing.Here, my 2 validations are failing. Even though I have entered all the values from the keyboard and I am returning the minimum. Could you please help, why it's failing?
    • 10.05.2020
    • 684views
    • 2comments
    1
  • Bill Wu
    Level 29
    Wellington
    Question about the task Snake (part 14)
    Java Multithreading, Level 2, Lesson 18
    Resolved
    Verification fails The code seems to work as required, but fails all of them. Am I missing something?
    • 09.04.2019
    • 1853views
    • 10comments
    3
  • Shadow
    Level 7
    Hogsmead
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    whats wrong in this What should I do
    • 20.07.2020
    • 417views
    • 2comments
    0
  • Khairul
    Level 11
    Question about the task In the blue depths of the stack trace…
    Java Syntax, Level 9, Lesson 2
    Resolved
    Why the output value is 12?I don't understand why the stack depth is 12. public static int getStackTraceDepth() { // write your code here StackTraceElement[] element = Thread.currentThread().getStackTrace(); System.out.println(element.length); return element.length; } }
    • 15.05.2019
    • 2281views
    • 5comments
    2
  • Talha Javed
    Level 4
    sialkot
    Question about the task Cats in the Universe
    Java Syntax, Level 4, Lesson 2
    Under discussion
    plz let me know about this errorplz let me know about this error
    • 02.11.2018
    • 1789views
    • 9comments
    0
  • David Haines
    Level 13
    La Crosse
    Question about the task Display numbers in reverse order
    Java Syntax, Level 7, Lesson 12
    Resolved
    Could somebody please explain what I am missing? Getting error: Be sure that you just display the array in reverse order. You don't need to reverse the order of the elements in the list.'Doesn't appear this question posted on the first try, so I am trying again. Could somebody please tell me what is wrong with my code? I am getting this error when I try to verify: Be sure that you just display the array in reverse order. You don't need to reverse the order of the elements in the
    • 19.07.2020
    • 547views
    • 2comments
    0
  • hidden #10625598
    Level 23
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Under discussion
    why exactly does this task fail?i dont get it?
    • 18.07.2020
    • 407views
    • 2comments
    0
  • Angelo Spampinato
    Level 18
    Boston
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    Not Sure Why This is FailingCould anyone help me with understanding why the 4th requirement is failing? I think I'm checking for it and should be good.
    • 27.05.2020
    • 961views
    • 9comments
    2
  • Raj Mishra
    Level 15
    India
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Dont understand why its failing . My 2 validations are failing.Dont understand why its failing . My 2 validations are failing.
    • 18.07.2020
    • 477views
    • 2comments
    0
  • Tahsin Anam
    Level 12
    Helsinki
    Question about the task Task about algorithms
    Java Syntax, Level 8, Lesson 11
    Under discussion
    The last requirement is not correct, why?I capitalized and trimmed all words, but still not correct! where is the mistake here?
    • 18.07.2020
    • 526views
    • 2comments
    0
  • Wei Cui
    Level 39
    Newark
    Question about the task HTML Editor (part 11)
    Java Multithreading, Level 8, Lesson 15
    Resolved
    keep
    • 09.04.2020
    • 902views
    • 3comments
    0
  • Riya
    Level 15
    Indore
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Under discussion
    not satisfies 3rd and 4th conditionmy code gives output correct
    • 18.07.2020
    • 367views
    • 2comments
    0
  • Aashita Saxena
    Level 4
    Bhopal
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Under discussion
    Why Apple.addPrice needed in addPrice method?According to the lesson, static method can not access non-static variables. However, addPrice is a static method and applePrice variable of Apple class is also static. Why then we needed to use Apple.applePrice to access the variable in addPrice method?
    • 17.07.2020
    • 590views
    • 2comments
    0
  • Shaik Azharuddin
    Level 2
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Under discussion
    what is the issue with my code? what is the issue with my code
    • 18.07.2020
    • 452views
    • 1comment
    0
  • Comific
    Level 3
    Plymouth
    Under discussion
    Cant disable my subscriptionNo disable button????
    • 18.07.2020
    • 460views
    • 1comment
    0
  • Seferi
    Level 22
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    This works fine but doesn't pass..I tested it and it works fine but for some reason last step fails...
    • 07.07.2020
    • 555views
    • 3comments
    1
  • Riya
    Level 15
    Indore
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    What I did wrong don't knowit prints nothing
    • 18.07.2020
    • 483views
    • 2comments
    0
  • Shaik Azharuddin
    Level 2
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    why am I getting out of memory error on java heap I am getting out of memory error on java heap help me resolving the issue
    • 13.07.2020
    • 513views
    • 4comments
    0
  • hidden #10625598
    Level 23
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    why do i get a Nullpointer here?
    • 18.07.2020
    • 549views
    • 0comments
    0
  • hidden #10625598
    Level 23
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Under discussion
    how do i make this uppercase?java:22: error: char cannot be dereferenced \\ << because of toUpperCase() why does that happen and how can i solve this?
    • 18.07.2020
    • 718views
    • 1comment
    0
  • Anonymous #10410173
    Level 22
    Delhi
    Question about the task A scary fairy tale
    Java Syntax, Level 9, Lesson 11
    Resolved
    Help Please !!i can't find the actual solution of this story
    • 14.01.2020
    • 1629views
    • 5comments
    0
  • Lazyman
    Level 7
    Omaha
    Question about the task Minimum of two numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    use of bracketsHey, i have done a few other java courses before and previously in those courses we had a bunch more of these "{ }" we used them in such places as: if(2<1) { System.out.println("what is this shit?"); else { System.out.println("this is weird"); } } When now in t
    • 08.07.2020
    • 664views
    • 4comments
    0
  • 1
  • ...
  • 164
  • 165
  • 166
  • 167
  • 168
  • ...
  • 371
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 © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym