CodeGym
Promotion
CodeGym University
Learning
Course
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
All quests Java Syntax Java Core Java Multithreading Java Collections JSP & Servlets Java Syntax Pro Games
All levels Level 0 Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8 Level 9 Level 10 Level 11 Level 12 Level 13 Level 14 Level 15 Level 16 Level 17 Level 18 Level 19 Level 20 Level 21 Level 22 Level 23 Level 24 Level 25 Level 26 Level 27 Level 28
Any status New Discussed Resolved Archived Duplicates
Hot Popular New Old
  • Sansho
    Level 19
    Bordeaux
    Question about the task Snake (Part 14/20)
    Games, Level 0, Lesson 1
    Under discussion

    I don't understand why 4 and 5 are wrongs

    For me, this bloc of code fullfill the conditions number 4 and 5: if (checkCollision(newHead)) isAlive = false; else { snakeParts.add(0, newHead); if (checkCollision(apple)) apple.isAlive = false; else
    • 06.06.2022
    • 43views
    • 1comment
    0
  • aljebra school
    Level 6
    Under discussion

    emulator: Trying to vcpu execute at elp:8d684f"

    I'm trying to create a virtual device in android studio 1.5 after creating the device then launching it the device just don't come up (i.e it's state is offline) always a black device then I tried creating another using the same API 23 Nexus 5 it turns out to be the same. But at the log tab it's ke
    • 04.06.2022
    • 33views
    • 1comment
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Debug everything under the sun
    Java Core, Level 6, Lesson 13
    Resolved

    I print the two lines but I don't use uncaughtEx() !?

    How can i print the message of a method if that method is not used: "The program must use OurUncaughtExceptionHandler's uncaughtException method to display 2 messages."??? If i don't use this method() how i print to the console?
    • 31.01.2022
    • 106views
    • 5comments
    0
  • JD Obar
    Level 7
    Las Vegas
    Under discussion

    Why does my code results to NullPointerException

    public class Solution { public static String[] strings; public static void main(String[] args) { //write your code here strings = new String[6]; String temp = "Somethig"; Scanner console = new Scanner(System.in); for (int x = 0; x < 6; x++) {
    • 04.06.2022
    • 27views
    • 1comment
    0
  • Anonymous #10987379
    Level 12
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 9, Lesson 2
    Resolved

    What is going wrong in my toBinary(String) method?

    I have tested it with various online calculators, and it seems to output the correct solution. Additionally, I looked through the other questions pertaining to this task, but I must be missing something because I cannot figure out where I am going wrong. Any help, even if it is just an input that do
    • 04.06.2022
    • 56views
    • 2comments
    0
  • Tanja
    Level 3
    Question about the task Snake (Part 20/20)
    Games, Level 0, Lesson 1
    Resolved

    Aufgabe 17 gelöst, trotzdem fehlerhaft

    Ich stelle meine Frage mal am Ende, damit ich nicht spoilere. Die Aufgabe 17 wurde als richtig erkannt (Apfel darf nicht innerhalb der Schlange existieren) und habe das Spiel auch zu Ende programmiert. Aber habe beim Testen festgestellt, dass der Apfel trotzdem innerhalb meiner Schlange erscheinen
    • 02.06.2022
    • 80views
    • 10comments
    0
  • Tasmoda
    Level 22
    Midrand
    Question about the task Minesweeper (Part 6/16)
    Games, Level 0, Lesson 0
    Under discussion

    IntelliJ error for games tasks

    Good day. Are the Games tasks not designed to work with IntelliJ? I get the error below.
    • 01.06.2022
    • 45views
    • 0comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Clew
    Java Core, Level 6, Lesson 13
    Under discussion

    What is wrong in my code?

    need hint
    • 28.02.2019
    • 945views
    • 9comments
    1
  • crispr_cast9
    Level 9
    Saint Petersburg
    Question about the task Logging stack traces
    Java Syntax, Level 9, Lesson 2
    Under discussion

    Why is the strange result in validation?

    My output: com.codegym.task.task09.task0906.Solution: main: In main method
    • 01.06.2022
    • 88views
    • 11comments
    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
    • 01.06.2022
    • 48views
    • 3comments
    0
  • slyyx
    Level 14
    New York City
    Question about the task Correct class
    Java Syntax, Level 11, Lesson 5
    Under discussion

    Both creating a nested class and creating a class in a separate file did not work

    Creating a nested class fails the 3rd task condition with the error: "Be sure that the program has a Cat class." Creating the Cat class in its own Cat.java file fails the 3rd task condition with the error: "Be sure the Cat class is public."
    • 30.05.2022
    • 45views
    • 1comment
    0
  • crispr_cast9
    Level 9
    Saint Petersburg
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Under discussion

    Where is the problem here?

    I had being trying to add one more static method and one and two instance methods.
    • 30.05.2022
    • 55views
    • 2comments
    0
  • slyyx
    Level 14
    New York City
    Question about the task Cat carnage (3)
    Java Syntax, Level 10, Lesson 2
    Under discussion

    Task conditions are too vague to know why my solution doesn't work

    The task conditions are too vague to understand why my solution doesn't work =\
    • 29.05.2022
    • 71views
    • 2comments
    0
  • Ajani
    Level 16
    Jacksonville
    Question about the task A list and some threads
    Java Core, Level 6, Lesson 3
    Under discussion

    Question about why it doesn't work.

    So I know it's wrong but curious about exactly why please explain. I know we're supposed to create a new Thread object which then passes the new SpecialThread as an argument but I don't understand why we break from our standard initializing procedure of ObjectType variableName = new ObjectOfObject
    • 29.05.2022
    • 96views
    • 1comment
    0
  • Jürg Meyer
    Level 9
    most beautiful town
    Resolved

    how to add bookmarks?

    How can I add bookmarks? Thanks for help.
    • 04.04.2021
    • 258views
    • 2comments
    1
  • fffff
    Level 1
    Question about the task It's cool to be a programmer!
    Java Syntax, Level 1, Lesson 3
    Under discussion

    help

    dhdhd
    • 18.05.2022
    • 79views
    • 3comments
    2
  • Albert ENG
    Level 3
    Question about the task What's the cat's name?
    Java Syntax, Level 3, Lesson 5
    Under discussion

    please can someone help me to understand what exactly each line does and the sequence of the lines, i want to understand when we run the code which line works first and what does it do. If possible comment before each line like i did

    package en.codegym.task.jdk13.task04.task0403; /* What's the cat's name? */ public class Cat { //this is an instance variable private String name = "nameless cat"; public void setName(String name) { this.name = name; //dont understand how is // name variable go
    • 23.05.2022
    • 93views
    • 5comments
    0
  • 김영온
    Level 0
    Kwangmyong
    Under discussion

    How to log in my account

    Hi! I'd like to log in my account? I tried to log in my account and failed. Please let me know where and how I can set up my password. Thanks. My mail-id is "yokim31@daum.net".
    • 09.01.2021
    • 353views
    • 1comment
    0
  • Tasmoda
    Level 22
    Midrand
    Question about the task Somewhere in the middle
    Java Syntax, Level 4, Lesson 10
    Under discussion

    Grading system faulty

    Good day. The grading system is incorrectly grading my solution. It says if I enter the numbers 2, 3 and 1 I should get 2. Which is incorrect. Thanks.
    • 27.05.2022
    • 60views
    • 1comment
    0
  • slyyx
    Level 14
    New York City
    Question about the task Space Invaders (Part 4/34)
    Games, Level 0, Lesson 6
    Resolved

    Is the use of Random causing the conditions not to be met?

    The program works as expected, but does not meet the 6th and 7th requirements somehow. Is this because I used a Random object for the new Star(x, y) parameters?
    • 25.05.2022
    • 48views
    • 1comment
    0
  • Brenna Crivello
    Level 6
    Waller
    Question about the task There's never too much of a good thing
    Java Syntax, Level 4, Lesson 8
    Resolved

    I need a little help...

    I feel a little embarrassed to ask, due to the simplicity of the problem, yet my code isn't working and I can't figure out why. It's printing the opposite of what I want it to print. I ask it to print a string 4 times, it prints it 2 times, and vice-versa. Can anyone help me. Thank you!
    • 23.05.2022
    • 75views
    • 4comments
    0
  • imran khan
    Level 6
    islamabad
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived

    code is working fine except the last condition number does not fall in the range 1-999

    help
    • 24.10.2018
    • 1034views
    • 5comments
    0
  • barbara waltz
    Level 0
    Under discussion

    credit score repairs .

    I used to Have some bad debts, Unpaid student loans and even a criminal record probably as a result of past mistakes or the bad choices made, All of these negative records in one way or the other cause serious damage to my credit-worthiness on my credit reports , thus deflecting my score. Thanks
    • 23.05.2022
    • 47views
    • 0comments
    0
  • LuisRC
    Level 33
    Gijón
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Under discussion

    Not validated

    Hi there, I'm not able to get this task validated. According to it "The list returned by detectAllWords is not the right size!" however when I test it, the size is the right one. Some help please?
    • 21.05.2022
    • 50views
    • 2comments
    0
  • Albert ENG
    Level 3
    Question about the task What's the cat's name?
    Java Syntax, Level 3, Lesson 5
    Under discussion

    What does each line do in this basic code

    please can someone help me to understand what exactly each line does and the sequence of the lines, i want to understand when we run the code which line works first and what does it do. If possible comment before each line like i did for two of them.
    • 21.05.2022
    • 63views
    • 2comments
    0
  • haayden
    Level 18
    United States of America
    Question about the task Space Odyssey Part 3
    Java Syntax, Level 18, Lesson 4
    Archived

    what's wrong?

    i don't know what else to say here. everything works.
    • 20.05.2022
    • 54views
    • 3comments
    0
  • labib mahir
    Level 0
    Under discussion

    how to change language??

    i can't find any language option.. where to change language..
    • 16.11.2019
    • 1679views
    • 3comments
    0
  • Brenna Crivello
    Level 6
    Waller
    Question about the task Sum of even numbers
    Java Syntax, Level 4, Lesson 6
    Resolved

    I am stuck on this question and I am in need of assistance

    I am confused on how I should write this code for some reason. I understand what the code is asking me, yet I don't know what I am doing. I must be overthinking this. Can anyone help me? Thank you and have a great rest of your day!
    • 16.05.2022
    • 88views
    • 5comments
    0
  • haayden
    Level 18
    United States of America
    Question about the task A simple pattern
    Java Syntax, Level 17, Lesson 8
    Resolved

    answer

    why isn't this correct?
    • 17.05.2022
    • 104views
    • 13comments
    0
  • T S
    Level 18
    United States of America
    Question about the task Street and houses
    Java Syntax, Level 6, Lesson 4
    Under discussion

    Code not accepted despite being almost exactly like correct solution

    The verification didn't like my solution here, even though it is almost line-for-line the exact same code as the solution code. Anyone have any ideas? package en.codegym.task.jdk13.task07.task0706; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /*
    • 30.09.2021
    • 190views
    • 3comments
    0
  • 1
  • 2
  • 3
  • 4
  • ...
  • 346
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
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 Java developer’s career.
Follow us
Interface language
Programmers Are Made, Not Born © 2022 CodeGym
Download App
  • Google Play
  • Huawei AppGallery
  • App Store
MastercardVisa
Programmers Are Made, Not Born © 2022 CodeGym
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.