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
  • Emre Erkaslan
    Level 0
    Istanbul
    Question about the task Space Invaders (Part 4/34)
    Games, Level 0, Lesson 6
    Under discussion
    Help please.I don't really know what's wrong here.
    • 13.11.2020
    • 463views
    • 1comment
    0
  • Шарох
    Level 12
    Under discussion
    Hi Coders!Somethings are strange in this code. What are these ? :/ 1. (public Color color;) : Why it hasn't object? 2. Why in default constructor we use that! :(
    • 11.11.2020
    • 384views
    • 4comments
    0
  • bamughamye patrick
    Level 8
    Paris
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    Got task right but code i used i lengthy. Can someone show me how a for loop would have been used here? Thanksimport java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader;
    • 26.08.2020
    • 665views
    • 3comments
    0
  • Kasia
    Level 22
    Zabrze
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Resolved
    Works here but doesn't pass the validator I can create a file and save it (i.e as file.txt) and it shows the text on separated lines(including exit) but the program doesn't pass the validation. Additionally, I also got the message from: The program must write absolutely all of the entered lines (including "exit") to the file, each on a ne
    • 12.11.2020
    • 569views
    • 2comments
    0
  • The Chief
    Level 18
    Question about the task Cat and Dog objects: 50,000 each
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Why is this code wrong?I don't know why it keeps rejecting my code. Can anyone please tell me how to fix this?
    • 11.11.2020
    • 598views
    • 6comments
    0
  • Mariam
    Level 9
    Columbus
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Resolved
    IT WORKS but compiler does not excepts. Please helpIT WORKS but compiler does not excepts. Please help
    • 09.09.2020
    • 540views
    • 3comments
    0
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Under discussion
    where i done mistake??pls tell me
    • 13.09.2018
    • 1894views
    • 5comments
    0
  • Maria
    Level 22
    Moscow
    Question about the task Notepad for new ideas
    Java Syntax, Level 6, Lesson 11
    Resolved
    The output is NULL...The task requirements sounds strange.. could please get some hints? Thanks in advance!
    • 28.10.2020
    • 683views
    • 2comments
    0
  • Onome Brownly-Otiede
    Level 9
    Galway
    Question about the task The whole duck isn't enough
    Java Syntax, Level 5, Lesson 12
    Under discussion
    do not understandi do not understand why this is happening pls help
    • 14.10.2020
    • 629views
    • 2comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Human class constructors
    Java Syntax, Level 10, Lesson 11
    Under discussion
    HELP PLS!Guys, i am very tired with this. I am worked with this code in IDEA and dont understand anything/ Give me full code pls!
    • 21.06.2019
    • 1372views
    • 3comments
    0
  • Dmitri
    Level 22
    Seversk
    Question about the task List of number arrays
    Java Syntax, Level 9, Lesson 11
    Under discussion
    I've got a strange messageI've got a strange message: The task does not compile on the server! Though it is working as intended in IJ.
    • 11.11.2020
    • 458views
    • 4comments
    0
  • Rajni Agrawal
    Level 12
    Bangalore
    Question about the task Catching a group of exceptions
    Java Syntax, Level 9, Lesson 8
    Under discussion
    Please help to find the problem I feel the code the working fine. All exceptions are caught but the validation is not going through. Please help.
    • 12.11.2020
    • 545views
    • 2comments
    0
  • Anitamalina
    Level 18
    København
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    Maximum of N numbersNegative numbers - what should happen? I make a break from the loop, but should it ignore ? Maybe something else is wrong? import java.util.Scanner; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(Sy
    • 11.11.2020
    • 949views
    • 7comments
    0
  • antoinefleury2416
    Level 3
    Poitiers
    Under discussion
    I am blockedI am blocked, I have no more black matter c I am not paying. what do I do ?
    • 11.11.2020
    • 405views
    • 1comment
    0
  • Roman Grygorczuk
    Level 19
    Cracow
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Resolved
    What is wrong with the last check?Hi all, I cannot understand why I cannot pass last requirement. Results seems to be correct. Thanks in advance for any clue! Best, Roman
    • 02.11.2020
    • 474views
    • 4comments
    0
  • gabe
    Level 6
    Greenville
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Under discussion
    0 not positivei dunno, but i got the same question as another guy, and his code is needlessly complicated
    • 08.10.2020
    • 561views
    • 10comments
    0
  • Noob_Coder
    Level 22
    Springfield
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    details errorI don't know if there's something wrong with it,if it has,plz help me thx.need specific details very appreciate
    • 11.11.2020
    • 439views
    • 5comments
    0
  • Kaiyr Shayakhmetov
    Level 22
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Resolved
    Could you plz help me with this task!!! Code produces correct results, however can't pass validationCould you plz help me with this task!!! Code produces correct results, however can't pass validation. Have no idea what is wrong with the code.
    • 28.08.2020
    • 669views
    • 1comment
    0
  • yehuda b
    Level 23
    Beersheba
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Archived
    After trying many different solutions it still failsworks well with conditions example, any tips??? disregard isNumber method, it is from one of my previous attempts...
    • 09.11.2020
    • 556views
    • 5comments
    0
  • Albert
    Level 6
    Hong Kong
    Question about the task Cat register
    Java Syntax, Level 4, Lesson 2
    Under discussion
    Sth is wrong// Result is 0, but the system reads it as passed, weird package com.codegym.task.task04.task0404; /* Cat register */ public class Cat { private static int catCount = 0; public static void addNewCat() { //write your code here Cat cat = new Cat(); Cat.catCount =
    • 09.11.2020
    • 522views
    • 2comments
    0
  • Dyrits
    Level 1
    Question about the task Adding a file to an archive
    Java Collections, Level 1, Lesson 6
    Under discussion
    Why this is not working?I don't get it. I look to some other solutions. It is more or less doing the same thing, but just saving the content somewhere else first, but it is kind of the same at the end, no? Also, why don't we simply skip the entries to add the new one?
    • 11.11.2020
    • 556views
    • 1comment
    0
  • WhiteColloid
    Level 7
    San Francisco
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    I don't know why the third condition is not satisfiedI don't see a problem here.
    • 11.11.2020
    • 528views
    • 1comment
    0
  • Philip Butler
    Level 32
    United Kingdom
    Question about the task Adding a file to an archive
    Java Collections, Level 1, Lesson 6
    Under discussion
    Finally got this to verify.Thanks to others for posting their questions and answers. I ended up struggling with this one and doing a fair amount of Googlig to get a solution that verified. The tricky bit was not using the File System, so as others have pointed out creating a temporary file won't verify. For others that are
    • 06.11.2019
    • 1434views
    • 6comments
    12
  • Nicolas Huet
    Level 41
    Provins
    Question about the task Working with Java 8's DateTime API
    Java Collections, Level 10, Lesson 10
    Resolved
    I don't find the issue hereI tried a bunch of different methods but I always the same two conditions that doesn't validates and I really don't find the problem. I was sur it was it was a stupid typo but I don't find it (it's possible I still missed it, dyslexia...). Anyway, if someone can show me the problem that would be aws
    • 27.11.2019
    • 1082views
    • 3comments
    3
  • Anitamalina
    Level 18
    København
    Question about the task ConsoleReader class
    Java Syntax, Level 6, Lesson 8
    Resolved
    Boolean methodWhy doesn't this work?
    • 09.11.2020
    • 596views
    • 3comments
    0
  • Dinesh
    Level 7
    Delhi
    Under discussion
    What is wrong with my code? public class SolUsDollar { public static void main(String[] args) { //write your code here convertEurToUsd(123, 1.18); convertEurToUsd(111, 1.68); System.out.println(US_dollars); } public static double convertEurToUsd(int eur, double exchangeRate) {
    • 10.11.2020
    • 467views
    • 6comments
    0
  • Roman Grygorczuk
    Level 19
    Cracow
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    NullPointerExceptionHi all, I cannot display last two lines and get NullPointerException. Any clue please? Thanks, Roman
    • 08.11.2020
    • 460views
    • 3comments
    0
  • Dinesh
    Level 7
    Delhi
    Under discussion
    Why out put as 0.0 ? public class TenPerIncrease { public static double addTenPercent(int i) { //write your code here double incInPer = (10/100)*i; return incInPer; } public static void main(String[] args) { System.out.println(addTenPercent(9)); } }
    • 10.11.2020
    • 371views
    • 2comments
    0
  • AlfredW
    Level 23
    Denver
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    STILL Wont Verify.I got the time out fixed and my results numbers are good. Still won't verify....? Keeps saying: "The getNumbers method must return the array of numbers that satisfy the task conditions." Here are the results I get with 1000 and 1000000. But I have also run a couple of bigger numbers as well. So I
    • 08.11.2020
    • 704views
    • 17comments
    0
  • AlfredW
    Level 23
    Denver
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    Still keeps timing out...I have gotten the right results but I get timed out. I tried using an array to hold the factored values to speed up calculating the bigger numbers. but it still times out. ??
    • 08.11.2020
    • 558views
    • 1comment
    0
  • 1
  • ...
  • 114
  • 115
  • 116
  • 117
  • 118
  • ...
  • 372
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