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 Module 3. Java Professional Module 4. SQL & Hibernate Module 5. Spring 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
  • Riccardo
    Level 29
    Question about the task Rectangle algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    Can someone explain to me what my mistake is.The output completely matches conditions.
    • 04.06.2023
    • 27views
    • 3comments
    0
  • Alex Tor
    Level 27
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    Please, some hint(s).Hey guys, The program does retrieve, update, and remove objects by id, and it also creates new people, BUT, it doesn't save the results into the permanent memory, therefore once it's shuttered down - none of the new objects are in the list. How to fix it? TYIA !
    • 04.06.2023
    • 18views
    • 2comments
    0
  • prince
    Level 2
    prothercourt oyigbo RiversState
    Question about the task Amigo is very smart
    Java Syntax, Level 1, Lesson 1
    Under discussion
    how to start java coding hi Am new here were can I start from
    • 03.06.2023
    • 14views
    • 1comment
    0
  • Anonymous #11260945
    Level 4
    United States of America
    Question about the task Maximum of entered numbers
    Java Syntax, Level 4, Lesson 2
    Under discussion
    program meets criteria but won't pass?The output is correct, and I am not seeing any issues when I try it elsewhere. What am I missing? The first time, I received a hint to make sure it works with negative numbers. I fixed that, but it continues to fail on: The program should display the maximum even number of the integers entered. &
    • 30.05.2023
    • 32views
    • 3comments
    0
  • Enderguyz85
    Level 4
    Question about the task Positive and negative numbers
    Java Syntax, Level 3, Lesson 7
    Under discussion
    cannot find symbol errori'm just trying to declare a variable Number and it keeps doing that error |int Number = number| what's the problem there ? (error is pointed at n) please help
    • 30.05.2023
    • 35views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task CountDownLatch
    Java Multithreading, Level 7, Lesson 9
    Resolved
    How is this supposed to make sense?await() - "Causes the current thread to wait until the latch has counted down to zero, unless the thread is interrupted. If the current count is zero then this method returns immediately. If the current count is greater than zero then the current thread becomes disabled for thread scheduling purpose
    • 10.05.2021
    • 278views
    • 7comments
    0
  • Lawson
    Level 29
    Lagos
    Question about the task Cloning plants
    Java Multithreading, Level 1, Lesson 8
    Under discussion
    Pls help I can't solve this... I keep getting " tree.clone can't be overridden"
    • 09.09.2020
    • 467views
    • 4comments
    0
  • Ana
    Level 1
    Under discussion
    Lowest valueHow to find the lowest value in primitive integer array using loop?(java)
    • 14.02.2023
    • 75views
    • 2comments
    0
  • matemate123
    Level 37
    Kraków
    Question about the task Arrange wait and notify methods
    Java Multithreading, Level 7, Lesson 9
    Under discussion
    The program ran too long and was closed!I have question. Is there something wrong in this code or are my general assumptions correct? Program print good result and finished with exit code 0. EDIT: I added "mail.notifyAll();" in last line in run method in MailServer but still "Too long" info.
    • 02.06.2023
    • 26views
    • 3comments
    0
  • Khamdam
    Level 35
    Question about the task OOP: Cars
    Java Core, Level 5, Lesson 2
    Under discussion
    Is it allowed to inherit private methods?"public static class CheapCar { private void printlnDesire()" "public static class GeoMetro extends CheapCar { public void printlnDesire()" I thought that private methods can not be inherited. Why it is written this way?
    • 27.05.2023
    • 34views
    • 2comments
    0
  • Kasia
    Level 22
    Zabrze
    Question about the task Iterating through a file tree
    Java Collections, Level 1, Lesson 2
    Archived
    Can't pass the first I just give up(for now anyway). It works on my machine(change the name of the resultFileAbsolutePath.txt to allFilesContent.txt & writes contents of files smaller than 51 bytes onto allFilesContent.txt ). I still can't pass the first validation point: The file passed as the second argument to
    • 29.01.2021
    • 440views
    • 4comments
    1
  • Akshay Y Shirsat
    Level 7
    Mumbai
    Question about the task Don't think about seconds…
    Java Syntax, Level 3, Lesson 8
    Under discussion
    how can i solve this?can anyone help me on this? i dint get the question.
    • 10.09.2018
    • 2997views
    • 19comments
    0
  • Dyrits
    Level 22
    Question about the task Iterating through a file tree
    Java Collections, Level 1, Lesson 2
    Archived
    Impossible to get the first requirement right~ package com.codegym.task.task31.task3101; /* Iterating through a file tree */ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.*; public class Solution { public static void main(Strin
    • 02.11.2020
    • 304views
    • 7comments
    1
  • Ashish RajAnand
    Level 13
    Bhilai
    Resolved
    inside the if how instanceof work hereplease refer link public static void main(String[] args) { //add all robots to a list ArrayList robots = new ArrayList(); robots.add(new WorkerRobot()); robots.add(new GuardRobot()); robots.add(new WateringCan()); //build a wall if you can for (Object robot: robots) { if (robot instanc
    • 14.05.2020
    • 576views
    • 4comments
    1
  • slyyx
    Level 15
    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 workCreating 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
    • 230views
    • 2comments
    0
  • Anonymous #11349817
    Level 0
    Question about the task Minesweeper (Part 1/16)
    Games, Level 0, Lesson 0
    Resolved
    Salut, s'il je ne connais pas l'endroit où on écrit les codes Java. Ça se trouve à quel position du site s'il vous plaît ?import com.codegym.engine.cell.Game; public class MySuperGame extends Game { @Override public void initialize() { // Set the field size to 7 cells x 9 cells setScreenSize(7, 9); ... } }
    • 01.06.2023
    • 12views
    • 0comments
    0
  • Justin Smith
    Level 39
    Greenfield, USA
    Question about the task Determining locking order
    Java Multithreading, Level 7, Lesson 6
    Under discussion
    I don't understand this task at allI looked at the previous task, and the previous lessons. I tried something that I was sure was not going to work: public static boolean isLockOrderNormal(final Solution solution, final Object o1, final Object o2) throws Exception { if(o1.hashCode() > o2.hashCode()) {
    • 31.03.2022
    • 441views
    • 11comments
    0
  • Amo programmare
    Level 31
    Question about the task Prevent cloning
    Java Multithreading, Level 1, Lesson 8
    Under discussion
    In testing work fines, but won't pass the validatorHi Everyone, I came up with this solution here: @Override public Object clone() throws CloneNotSupportedException { if(this instanceof B && !(this instanceof C)) return new CloneNotSupportedException(); return super.clone(); } Duri
    • 31.05.2023
    • 19views
    • 1comment
    0
  • Wayn Adams
    Level 0
    Under discussion
    are you looking for spell caster to help you win the lotto?Hey everyone I bring to you good news.. Have been playing lottery for years now and unable to win I even came to conclusion that I won't play lottery again, last Monday I came online and I saw a post about Dr dominion spell lottery number I doubted but decided to give a last try and I reach out to
    • 05.01.2023
    • 663views
    • 25comments
    25
  • Tomislav Varga
    Level 11
    Berlin
    Question about the task URL validation
    Java Syntax, Level 9, Lesson 5
    Resolved
    Wrong Execution of Solution ClassHi all, since today, every time I want to run a solution in IntelliJ, it runs a different solution class from another task that contains error. What I mean: I choose a task, write my code, want to run the code to check if it fulfills the requirement before I send the solution, then it always wants
    • 22.04.2022
    • 386views
    • 3comments
    0
  • althea
    Level 1
    Under discussion
    hello! can you help me this one? I'm new to this Problem: One of the common computer-aided tool used during elementary days is the Roman Numerals. Roman numerals use letters instead of numbers. There are seven letters you need to know: • I = 1 • V = 5 • X = 10 • L = 50 • C = 100 • D = 500 here's the sample run SAMPLE RUN 1: --------------------------WELCOME TO THE ROMAN NUMERAL COMPUTATION------------------------------- [1] Number to Roman Numeral [2] Roman Numeral Addition [3] Roman Numeral Subtraction [4] Roman Numeral Multiplication [5] Exit Enter choice: 1 Enter a number:
    • 07.01.2023
    • 182views
    • 2comments
    7
  • LuisRC
    Level 39
    Gijón
    Question about the task Modifiers and deadlock
    Java Multithreading, Level 7, Lesson 4
    Under discussion
    Why sout2 must be synchronized?Hi there, I don't get why sout2 must be synchronized if it's called by sout which is already synchronized. If sout it's synchronized it means, according to my very limited knowledge, that if sout is taken it cannot be taken again because of MUTEX so sout2 neither. Thanks package com.codegym.task.ta
    • 04.08.2022
    • 171views
    • 4comments
    0
  • Anonymous #11345952
    Level 14
    United States of America
    Under discussion
    I know java very well. I only want to concentrate on classes. The previous concepts are wasting my time. Can you please change my level.I know java very well. I only want to concentrate on classes. The previous concepts are wasting my time. Can you please change my level.
    • 25.05.2023
    • 28views
    • 1comment
    0
  • Enderguyz85
    Level 4
    Question about the task Declare variables
    Java Syntax, Level 1, Lesson 4
    Under discussion
    Stringwhy isn't String turning orange like int ? (the command is String (name + city); is there a problem with it ?)
    • 25.05.2023
    • 14views
    • 1comment
    0
  • Dawn( #11020889)
    Level 37
    Toronto
    Question about the task Restaurant (part 21)
    Java Multithreading, Level 9, Lesson 15
    New
    what's wrong?I think I did very well, but I can't go through the validation. Someone help please!
    • 24.05.2023
    • 26views
    • 0comments
    0
  • matemate123
    Level 37
    Kraków
    Question about the task Maximum of entered numbers
    Java Syntax, Level 4, Lesson 5
    Resolved
    Not even numbersIt's very hard for me. I don't know how make that option when user don't write any even numbers. How to tell program if any x don't have x % 2 != 0 ?
    • 14.10.2022
    • 293views
    • 4comments
    0
  • Abdulaziz alshaikh
    Level 0
    Question about the task Triangle
    Java Syntax, Level 3, Lesson 6
    Under discussion
    I don't see what's wrongi tried more than 2 solution the code works but requirements are not met
    • 04.02.2023
    • 178views
    • 5comments
    2
  • Micheline Peric
    Level 0
    Question about the task Moon Lander (Part 1/23)
    Games, Level 0, Lesson 4
    Under discussion
    I Need A Real Spell Caster To Help Me Bring Back My Ex Lover Urgently 2023, WhatsApp +2348124644470 He Is The Best Spell Caster Online And His Result Is 100% Guaranteed.URGENT AND EFFECTIVE LOVE SPELL CASTER TO HELP YOU GET BACK YOUR EX LOVER VERY FAST WHATSAPP +2348124644470 My Name is Micheline Peric from Ireland, I want to say thank you to PRIEST WISDOM for the good thing he has done for me,Though am not sure if this is the best forum to show my joy and happin
    • 09.02.2023
    • 744views
    • 2comments
    22
  • Lionel Messiah
    Level 1
    Under discussion
    Recovery Bitcoin is RealLoosing ones Crypto currency can be a devastating thing to experience, the fact that it is almost impossible to recover a Stolen or lost Crypto coin hurt more than anything. When a person get scammed of their money while investing in a crypto currency platform the only thing they can think of is how
    • 19.02.2023
    • 261views
    • 3comments
    12
  • Untitled by Anon
    Level 34
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Resolved
    Pardon the poetry. But the validator does not let me pass still.My strategy was to create copy arraylists and then insert the word "empty" to the list where an item got added or removed. The examples worked perfectly but it didn't pass the validator.
    • 21.05.2023
    • 64views
    • 4comments
    0
  • 1
  • 2
  • 3
  • ...
  • 362
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • 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 Java developer’s career.
Follow us
Interface language
Programmers Are Made, Not Born © 2023 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2023 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.