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
  • Jack Tec
    Level 0
    Question about the task Snake (Part 9/20)
    Games, Level 0, Lesson 1
    Under discussion
    could anybody help please where is the bug in my code ?
    • 6/13/21
    • 856views
    • 2comments
    0
  • Xavier
    Level 17
    Pearland
    Question about the task Food
    Java Core, Level 4, Lesson 4
    Under discussion
    It passed the verification, but I don't understand how.After completing the first two requirements, I just started trying different things. I started going through the description rather than the requirements and added food.onSelect(); food.onEat(); in the foodMethods method to see if the third requirement would pass, and the entire exercise passed. Wh
    • 6/11/21
    • 837views
    • 5comments
    0
  • John
    Level 17
    Mansfield
    Question about the task OOP: Fix inheritance problems
    Java Core, Level 5, Lesson 2
    Resolved
    Bad operand typesWhats wrong with the return statement of my finger's containBones () method?
    • 6/12/21
    • 645views
    • 1comment
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task In the blue depths of the stack trace…
    Java Syntax, Level 9, Lesson 2
    Under discussion
    I printed out each element of the array. What do they all represent?Why is the answer not 12 for each of the things in the array?
    • 6/11/21
    • 485views
    • 1comment
    0
  • John
    Level 17
    Mansfield
    Question about the task Food
    Java Core, Level 4, Lesson 4
    Under discussion
    Confused of what's happeningI just finished the task and review it, I found out that there is a Creation of Selectable interface in the main, how was that even possible? i think you can't create an object of an interface
    • 5/31/21
    • 629views
    • 20comments
    0
  • Dan Shirley
    Level 2
    Zion
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Under discussion
    can i have a refundnot great. cant follow along and code. had a lot of momentum and the teaching style is not for me.
    • 6/10/21
    • 717views
    • 1comment
    0
  • ImDevin
    Level 15
    Old Town
    Under discussion
    benefit of this setup (classes within an interface)?Classes in an Interface (I'm quite sure I haven't seen this before). What is the purpose or benefit of doing it this way vs. having it outside of the interface and implementing the interface?
    • 6/10/21
    • 603views
    • 2comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Find all the files
    Java Collections, Level 1, Lesson 2
    Under discussion
    It seems to be good solutionneed hint
    • 4/16/19
    • 1737views
    • 7comments
    0
  • Andrei
    Level 41
    Question about the task 2048 (part 10)
    Java Multithreading, Level 10, Lesson 15
    Resolved
    Copy-paste solution from mentor and validator does not accept. :| What?... It says I am failing the last condition? What am I failing at that because the methods are called with the game.
    • 6/10/21
    • 676views
    • 3comments
    0
  • Vatsal Patel
    Level 15
    Naperville
    Question about the task OOP: Books
    Java Core, Level 5, Lesson 2
    Under discussion
    GetBook is failingWhat am I doing wrong?
    • 8/18/19
    • 1515views
    • 2comments
    0
  • ImDevin
    Level 15
    Old Town
    Resolved
    Creating ObjectHi all, I'm trying to understand the logic on creating object and would appreciate it if someone can offer a clear explanation on the following example. My question is on line 24 & 25. From what I understand, this is using user-defined data type, BodyPart and assigning the return value of ro
    • 6/4/21
    • 558views
    • 4comments
    0
  • ImDevin
    Level 15
    Old Town
    Resolved
    why is this allowed?this is from Java Core Level 3 Lesson 2, Beer part 2 Recovery. really want to know why this is allowed in Line 10 --> Drink beer = new AlcoholicBeer(); Drink is an interface, but here it's used as a Reference type. How is this possible? Someone did ask this question, but I could not und
    • 5/28/21
    • 547views
    • 2comments
    0
  • ImDevin
    Level 15
    Old Town
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Resolved
    Explanation on Line 37Hi all, I'm trying to understand the solution given by CG. Can someone explain Line 37? why would Index ever be less than 0? Doesn't index starts at 0 and increase after that? Also, why is that needed? (I tried to run it commenting out L37, but it wouldn't). Thanks for the input.
    • 5/18/21
    • 546views
    • 2comments
    0
  • Yusuf el Turki
    Level 5
    Rhein
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    It is the first time that i saw a warning like that. Is there any problem with my codes?
    • 6/9/21
    • 611views
    • 5comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Determine the network address
    Java Multithreading, Level 1, Lesson 2
    Resolved
    Where to get a deeper understanding of what is done here?Basically 2 questions: 1) I do not understand how we compare two byte[]. What does it return. I'm looking for a detailed description of the calculation 2) To display the byte[] as a binary String there are parts in the code that I can't find the meaning of. What exactly are we doing in the print()??
    • 2/1/21
    • 1087views
    • 13comments
    0
  • Ryan Palmer
    Level 20
    Philadelphia
    Question about the task Wine tasting
    Java Core, Level 4, Lesson 8
    Archived
    Calling a method on a method? Hi all, I am curious about this portion of the code: public class Solution { public static void main(String[] args) { getDeliciousDrink().taste(); System.out.println(getWine().getCelebrationName()); System.out.println(getBubblyWine().getCelebrationName()); Sys
    • 5/20/21
    • 521views
    • 5comments
    0
  • David Close
    Level 17
    London
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Under discussion
    method does not override or implement a method from a supertype.I am unsure on why the super.<> will not work, is it to do with not using an IDE instead of codegym? Am i meant to connect the separate chicken classes to the main? any help is appreciated.
    • 1/21/21
    • 628views
    • 2comments
    0
  • ImDevin
    Level 15
    Old Town
    Resolved
    creating separate filesHi all, quick question. task 1408 Chicken Factory has the last condition which says, 9. All the classes you create must be in separate files. I don't actually know how to create a separate file that shows on different tabs. Right now, there are only 2 tabs - Solution & Continent. Can anyone
    • 6/9/21
    • 595views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task Bit operations
    Java Multithreading, Level 10, Lesson 6
    Resolved
    Why 1 2 4 8 16? Can someone please explain the algorithm? number = number | (number >> 1); number = number | (number >> 2); number = number | (number >> 4); number = number | (number >> 8); number = number | (number >> 16); return (number & ~(number >> 1));
    • 6/8/21
    • 759views
    • 8comments
    0
  • Thani
    Level 2
    Kampala
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    Writing the for loopThis is one is a little bit fuzzy,this is how I wrote my for loop, for(String s = 4) {}....can i get light on this one?
    • 6/7/21
    • 496views
    • 1comment
    0
  • Andrei
    Level 41
    Question about the task Smallest possible radix
    Java Multithreading, Level 10, Lesson 2
    Resolved
    Why won't my version verify?Line 20 is not printing invalid when it should be. And I get the "If any exception has occurred, you need to catch it and not display the stack trace." message even though I changed it to Exception and still wouldn't pass that requirement.
    • 6/7/21
    • 892views
    • 11comments
    0
  • Andrei
    Level 41
    Question about the task Smallest possible radix
    Java Multithreading, Level 10, Lesson 2
    Resolved
    Why is the codeline below not printing what I say when the condition is true? if (Pattern.matches("[^a-zA-z0-9]", args[0])) System.out.println("Invalid"); Where args[0] is 12AS08Z/
    • 6/7/21
    • 611views
    • 2comments
    0
  • Daniel
    Level 41
    Rybnik
    Question about the task Adding a file to an archive
    Java Collections, Level 1, Lesson 6
    Under discussion
    Red lights everywhere!It's my second approach - still all I can see is red light! Any sugesstions ?
    • 6/3/21
    • 904views
    • 10comments
    0
  • DarthGizka
    Level 24
    Wittenberg
    Question about the task Shall we play?
    Java Core, Level 6, Lesson 13
    Resolved
    task1627 fails despite correct outputThis problem concerns the fourth requirement: The run methods of all players who did not win (those who were interrupted) should display [getName() + ":lost"]. For example: [Gates:lost] Validation seems to be broken - the requirement is listed as failed even though the output is correct. Here's th
    • 6/5/21
    • 1112views
    • 5comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Under discussion
    Cannot find symbol continentWhy is this error keeps on showing?
    • 6/2/21
    • 841views
    • 8comments
    0
  • Josephine
    Level 1
    Normal
    Question about the task MVC (part 8)
    Java Multithreading, Level 4, Lesson 14
    Under discussion
    Can someone guide meThe error says cannot find symbol symbol: method getAllUsers() location: class com.codegym.task.task36.task3608.big08.model.MainModel. getAllUsers() class is in UserDao class.i have included all packages.
    • 6/2/21
    • 866views
    • 3comments
    0
  • John
    Level 17
    Mansfield
    Question about the task User, loser, coder and programmer
    Java Core, Level 4, Lesson 8
    Under discussion
    My output is correct, what's wrong?failing the last 4 requirements, any suggestions? by the way im having thame right output
    • 6/5/21
    • 483views
    • 1comment
    0
  • Xavier
    Level 17
    Pearland
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Under discussion
    Not passing the 5th condition.Whenever I check the file, all of the input is sent on a new line, including "exit". I don't know what more to do.
    • 5/18/21
    • 525views
    • 5comments
    0
  • Lex Icon
    Level 17
    Sofia
    Question about the task 20 words that start with the letter "L"
    Java Syntax, Level 8, Lesson 8
    Resolved
    Please, help.Please, help.
    • 12/8/20
    • 842views
    • 1comment
    1
  • Gajenthira
    Level 4
    Under discussion
    InteliJ IDEA plugin errorPlugin funktioniert bei mir nicht. Als Fehlermeldung wird "Intellij IDEA version does not match plugin version. Download suitable plugin" angezeigt. Wie kann ich das Problem beheben
    • 4/14/21
    • 640views
    • 3comments
    0
  • 1
  • ...
  • 71
  • 72
  • 73
  • 74
  • 75
  • ...
  • 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