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
  • Fabian Andiel
    Level 9
    Vienna
    Question about the task Rarest bytes
    Java Core, Level 8, Lesson 3
    Resolved
    Dont hava any idea?Guys can you help me? I dont have any idea what is going wrong. best regards Fabian
    • 2/1/20
    • 2061views
    • 5comments
    0
  • Aswin Anand
    Level 4
    Under discussion
    how to get dark matter without subscriptionansr
    • 8/25/21
    • 451views
    • 0comments
    0
  • Edward Rickers
    Level 15
    Washington
    Question about the task 10 thousand deletions and insertions
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Why is the remove function not working?Does "b" not count as an item? Insert passed though...
    • 8/24/21
    • 591views
    • 2comments
    0
  • Ryan Palmer
    Level 20
    Philadelphia
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Under discussion
    ClaritySorry for my newb question but I am here to learn! I don't understand the set up of the task. Why are we reading a file from the console but also checking args? It says that the program is started with an argument - does that mean we are to assume that there will be data within the args array and
    • 8/24/21
    • 911views
    • 10comments
    0
  • Victor Omoha
    Level 8
    Raleigh
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Resolved
    i'm stuckpackage com.codegym.task.task07.task0705; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; /* One large array and two small ones */ public class Solution { public static void main(String[] args) throws Exception { //write your code here in
    • 8/24/21
    • 767views
    • 4comments
    0
  • Jyothi
    Level 20
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Resolved
    overriding parent class getDescription validation failure. How can I correct this? task14.task1408 - Chicken factory Overriding parent class getDescription validation failure. How can I correct this?
    • 12/20/18
    • 2234views
    • 4comments
    0
  • scriptKing
    Level 7
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    ok mine works but didnt use abs not sure why -a would achieve anything? public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { // write your code here int ac = a - 10; int bc = b-10; if(a
    • 8/22/21
    • 938views
    • 6comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task File in a static block
    Java Core, Level 5, Lesson 12
    Under discussion
    File not found exceptionMy source file for the lines read is located in the same folder as the rest of the files for the project (as you can see, it is included in the files with my attached solution code). I don't understand why it's not finding it. I should be able to access it with a relative path (just the filename). I
    • 8/20/21
    • 551views
    • 1comment
    0
  • Dawid Bujnicki
    Level 1
    Warsaw
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Resolved
    Stuck - "The list returned by detectAllWords is not the right size!"Hello! I'm completely stuck on this one. Usually hints in help section helped me get correct solution, but this time even tho code seems to work correctly, validator still doesn't let me in. I've tried with single word entry, multiple word entries, palindromes, single and multiple, and it still doe
    • 8/18/21
    • 586views
    • 14comments
    0
  • Bill Wu
    Level 29
    Wellington
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Resolved
    Why cannot be verified? correct outputHi guys, I've tested with the two example url and I get the correct result. But it cannot be verified. Any one knows why? Thanks.
    • 2/17/19
    • 2599views
    • 14comments
    3
  • Randall John
    Level 19
    San Jose
    Question about the task File in a static block
    Java Core, Level 5, Lesson 12
    Under discussion
    I keep getting a FileNotFound Exception please helpWhat am i doing wrong :(
    • 6/28/20
    • 1197views
    • 4comments
    0
  • 0wis
    Level 6
    Paris
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    I can't find what is wrong with my testsHello, I don't understand why it is not verified. If any length is strictly superior to the length of the other , then the condition is true, and "The triangle is not possible". Otherwise, "The triangle is possible". I have tested with isosceles and equilateral triangle, and it works. I tested with
    • 8/20/21
    • 745views
    • 2comments
    0
  • Raymond Steenvoorden
    Level 4
    Almere Stad
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Under discussion
    How bad is my solution? Im getting an error but I do have the correct answer, It feels a bit like a bummer that the correct solution is a switch. But this works also fine. package com.codegym.task.task04.task0411; public class Solution { public static void main(String[] args) { checkSeason(12); ch
    • 1/16/21
    • 1138views
    • 4comments
    0
  • Ryan Palmer
    Level 20
    Philadelphia
    Question about the task Threads and bytes
    Java Core, Level 8, Lesson 11
    Under discussion
    Passing filename to threadSo looking over the lessons on Threads, and trying to implement it here, I realized I didn't understand something. When we start the thread in the main method we may have something like new ReadThread(string).start(); then in the RunThread method we create something like Private String fileName
    • 8/19/21
    • 592views
    • 2comments
    0
  • Nashid Kp
    Level 2
    Manjeri
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Pls verify my code & help what's wrong in my code? and, I didn't understand below mentioned part from the question: VariableType variableName = new TypeOfObjectBeingCreated();
    • 8/19/21
    • 1113views
    • 4comments
    0
  • Gytis Laukaitis
    Level 6
    Marijampole
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    What's wrong ?Display numbers in descending order. Console input 5 4 7. Console output 7 5 4.
    • 8/13/21
    • 520views
    • 2comments
    0
  • Alhoussein Camara
    Level 7
    United States of America
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    How am I failing this task?I do not understand why I am failing this task. I did read in the names of 6 cats in the specified order. String catGrandFatherName = reader.readLine(); Cat catGrandfather = new Cat(catGrandFatherName); String catGrandMotherName = reader.readLine(); Cat cat
    • 8/19/21
    • 947views
    • 2comments
    0
  • jerry
    Level 16
    Earth C-137
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Resolved
    fail with correct outputeven first requirement is failed however i get the right output aka longest string aka "grandma" any idea why lol ~i can understand last requirement not matching-i didnt write it yet
    • 8/18/21
    • 825views
    • 7comments
    0
  • jerry
    Level 16
    Earth C-137
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    grand pa/ma23, 26 How to correctly put grandfather and grandmother 👊🧠 ? and WHYYYYYY tried 214674752 different ways: with or without 'cat" big, small letters.. still same error thank you
    • 8/14/21
    • 652views
    • 4comments
    0
  • Edward Rickers
    Level 15
    Washington
    Question about the task Player and Dancer
    Java Core, Level 4, Lesson 4
    Under discussion
    What am I missing that calling the play() and dance() are not working?Putting void in front says start of illegal expression which I also don't fully understand
    • 8/13/21
    • 814views
    • 2comments
    0
  • Anitamalina
    Level 18
    København
    Under discussion
    Object call versus class-calls ?I try to understand the difference between example 1 and example 2 below, and why it matters, what to call. I think, I understand that, Example 1 I call the class Idea and Example 2 I call the object of Idea-class. But why does it matter, and when to prefer the example 1 over example 2, and the othe
    • 8/16/21
    • 507views
    • 2comments
    0
  • Nami
    Level 10
    Burwood
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    My code works and conditions satisfied , but why we do not need return statement ? public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int[] array = new int[20]; for (int i = 0; i < 20; i++) { array[i] = Integer.parseInt(reader.read
    • 8/17/21
    • 580views
    • 2comments
    0
  • Dominik
    Level 27
    Warsaw
    Question about the task MVC (part 2)
    Java Multithreading, Level 4, Lesson 14
    Resolved
    Package does not existI have a problem, compilator is saying that my package does not exist: Error in com/codegym/task/task36/task3608/view/View.java on line 3 package com.codegym.task.task36.task3608.controller does not exist. But it's definitely there. I don't know what is the problem. It's strange that I see no other
    • 8/17/21
    • 1186views
    • 12comments
    0
  • Shashikant Sharma
    Level 8
    Surat
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Resolved
    😭 Can Anybody Explain Me This..........?I Am Not Able To UnderStand What This Task Actually Want Me To Do???? I Have No Idea Where To Begin With????? Please Assist, No Direct Answers. OK.
    • 8/15/21
    • 1003views
    • 10comments
    0
  • wasnt me
    Level 4
    United Kingdom
    Question about the task Come on, lucky seven!
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What's wrong with my solution? public class Solution { public static void main(String[] args) { checkInterval(60); checkInterval(112); checkInterval(10); } public static void checkInterval(int a) { if(a < 50 || a > 100){ System.out.println("The number a is n
    • 8/12/21
    • 815views
    • 3comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Factory method pattern
    Java Core, Level 6, Lesson 13
    Under discussion
    Any help is appreciated.Not sure where to put the Factory to allow it to access the enum...
    • 8/17/21
    • 511views
    • 1comment
    0
  • Harrison Tran
    Level 14
    Anaheim
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Resolved
    I don't understand what this method : @Override public String toString() role in this code, don't see it getting call anywhere @Override public String toString() { return "Cat's name: " + name + ", age: " + age + ", weight: " + weight + ", tail: " + tailLength; package com.codegym.task.task07.task0726; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; imp
    • 4/1/20
    • 1577views
    • 3comments
    1
  • Vlad
    Level 29
    Khon Kaen
    Question about the task MVC (part 3)
    Java Multithreading, Level 4, Lesson 14
    Resolved
    please help my code seems to be working fine and i get the right output
    • 8/15/21
    • 644views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task Encryption
    Java Core, Level 8, Lesson 11
    Under discussion
    Here is a simple version of how you can achieve a basic Caesar Cypher - you can study it to understand the algorithm but I recommend to write the program from your memory! package com.codegym.task.task18.task1826; /* Encryption */ import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class Solution { public static void main(String[] args) throws IOException { FileInp
    • 1/28/21
    • 612views
    • 2comments
    0
  • Rex
    Level 3
    Columbus
    Under discussion
    Is Apple Silicon Compatible with This Program?I already purchased a $50 membership, and immediately afterwards the site has me download Intellij IDEA, a software for coding in Java. Although there is a download option for Apple Silicon, it does not look like the codegym plugin works at all. HELP!!
    • 8/16/21
    • 579views
    • 1comment
    1
  • 1
  • ...
  • 63
  • 64
  • 65
  • 66
  • 67
  • ...
  • 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