JavaRush
Course
Tasks
Games
Help
Subscriptions
Success stories
Chat
Forum
Articles
Friends
Activity

Help with tasks

  • Reviews
  • About us
Start
Start learning
  • All questions
All quests
All levels Level 0 Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8 Level 9 Level 10
Any status New Discussed Resolved Archived Duplicates
Hot Popular New Old
  • MoJo
    Level 22
    Cairns
    New

    what does HashCode() do?

    So in given code (find mistakes etc.) there is a function overwritten that's called "HashCode". What is this used for? example public int hashCode() { int result = name != null ? name.hashCode() : 0; result = 31 * result + (assets != null ? assets.hashCode() : 0);
    • 27 January 2021
    • 1view
    • 0comments
    0
  • Liliane Top
    Level 23
    Amsterdam
    Question about the task Reading and writing to a file: Human
    , Level 10, Lesson 2
    Resolved

    A lot of confusion

    I just copied some code from others and from the lesson 1 but I do not understand it. Maybe someone can revert me to another source to understand the concepts behind this task? For now a couple of questions 1) Why do we create a variable to check for instance if it has a name. What does it add? Woul
    • 14 January 2021
    • 39views
    • 3comments
    0
  • I.A
    Level 7
    unknown city
    Question about the task Maximum in an array
    , Level 7, Lesson 4
    Under discussion

    what to do in case of negative number in data.how would it check negative.?

    what to do in case of package com.codegym.task.task07.task0701; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Maximum in an array */ public class Solution { public static void main(String[] args) throws Exception { int[] array = in
    • 30 March 2020
    • 198views
    • 4comments
    0
  • Stephanie
    Level 2
    Rochester
    Question about the task Minimum of four numbers
    , Level 2, Lesson 8
    Under discussion

    Problem with test case 3 - min(-20, -10, -30, -40)

    My code is almost complete, however I am having an issue with the above stated test case. How can I fix it? package com.codegym.task.task02.task0217;
    • 27 January 2021
    • 14views
    • 2comments
    0
  • Abdelrahman
    Level 4
    Amman
    Question about the task 18+
    , Level 4, Lesson 6
    Resolved

    Help

    I don't understand why the third task isn't met I did try to do System.out.println(name); System.out.println(age); but the 4th task also became unchecked but I did what it asked of me.
    • 24 January 2021
    • 21views
    • 2comments
    0
  • Vinay
    Level 8
    Question about the task Kind Emma and the summer holidays
    , Level 8, Lesson 8
    Under discussion

    Please help!

    After struggling for 2 days I could not find the solution. But what I got is that we need to use for (String key : copy.keySet()) I am still not used to enhanced for loop. Can someone please convert the enhanced for loop to longer version of for loop? And, little explanation will also help. Tha
    • 27 January 2021
    • 13views
    • 1comment
    0
  • Isa Musa
    Level 2
    Kano
    Question about the task Implement the print method
    , Level 2, Lesson 1
    Resolved

    Print method

    What is the error in this code please? Whenever I try to run it it's used to show me 👉The print method should display the strings for times. Each time in a new line. Shade me more light on this please.
    • 4 January 2021
    • 30views
    • 1comment
    0
  • Isa Musa
    Level 2
    Kano
    Question about the task Pay raise
    , Level 2, Lesson 2
    Resolved

    Pay raise

    Hey guys can someone come to my help please.? Whenever I run the code it shown me ""
    • 7 January 2021
    • 47views
    • 2comments
    0
  • Josephine
    Level 20
    Normal
    Question about the task Word search
    , Level 10, Lesson 10
    New

    Fixed the diagonal and backward isuue..Still not veryfing.

    Tested with this.(.Words that are diagonal and backwards are being added incorrectly. I tested with an Array such as:)This is fixed.. {'f', 'd', 'e', 'h', 'l', 'k'}, {'u', 's', 'o', 'g', 'e', 'o'}, {'l', 'm', 'g', 'r', 'o', 'v'}, {'e', 'l', 'p', 'r', 'r', 'h'}, {'p', 'o', 'e', 'e', 'j', 'j'} But s
    • 26 January 2021
    • 7views
    • 0comments
    0
  • Josephine
    Level 20
    Normal
    Question about the task Word search
    , Level 10, Lesson 10
    Under discussion

    Someone help me...Getting the right output..

    Someone help me...Getting the right output..What is wrong?
    • 26 January 2021
    • 30views
    • 4comments
    0
  • remote87
    Level 13
    Sofia
    Question about the task Nice weather
    , Level 3, Lesson 11
    Resolved

    This really pisses me offf....

    Ok, I am stupid, I am new to this, I get that....but what the heck?! According to this article ( that I read over and over again ) https://codegym.cc/groups/posts/104-the-difference-between-abstract-classes-and-interfaces " An interface only describes behavior. It has no state." Also: But if we tr
    • 26 January 2021
    • 16views
    • 2comments
    0
  • Maryem Vickers
    Level 7
    HT...
    Question about the task Playing Javarella
    , Level 7, Lesson 9
    Resolved

    Hello-- I need more help on this please!

    I have two things wrong and I cannot figure this out. I have been here for ages trying to work it out, but in vain. Can you please help?! I have two parts wrong! Thank you for your help!
    • 22 January 2021
    • 31views
    • 2comments
    2
  • Ruubgaming
    Level 2
    Almere Stad
    Under discussion

    My language changed

    So I just got to level 2 but for some reason the text is english but everything else is dutch (what I want). My interface language is set tu dutch.
    • 26 January 2021
    • 15views
    • 2comments
    0
  • J H U X
    Level 7
    Alkmaar
    Question about the task Task about algorithms
    , Level 5, Lesson 12
    Resolved

    I am unable to solve this algorithms task...

    The code works. It prints out the correct answer, but clearly I am not doing it the right way or I have an error somewhere. I am taking N from the keyboard and then loop N times. In this loop I set the highest nextN to int maximum. After loops are finished, I print out maximum. If N <= 0 I break
    • 24 January 2021
    • 56views
    • 8comments
    0
  • Daniel Whyte
    Level 7
    Question about the task Even and odd digits
    , Level 6, Lesson 5
    Under discussion

    Won't read

    What's wrong with my code. It won't seem to read.
    • 25 January 2021
    • 18views
    • 3comments
    0
  • Andrei
    Level 19
    Question about the task Horse racing
    , Level 6, Lesson 5
    Resolved

    Dear Lord Jesus, what have I done to deserve this punishment? Why isn't it validating the first requirement?

    Pleeeaseeeeeeeeee
    • 14 December 2020
    • 104views
    • 9comments
    0
  • Josephine
    Level 20
    Normal
    Question about the task Externalizable Person
    , Level 10, Lesson 7
    Under discussion

    what is wrong in the code?second condition not passing.Someone help

    what is wrong in the code? Error says The server is unable to properly test your solution. Be sure you have all the classes you need. Be sure that your solution doesn't have any infinite loops.
    • 13 January 2021
    • 32views
    • 2comments
    0
  • Maxim Raitin
    Level 8
    Tomsk
    Question about the task HashMap of 10 pairs
    , Level 8, Lesson 3
    Under discussion

    My code works..

    My code works.. but this doesn't compile in Codegym. Btw why what is the difference in line 13 between HashMap map = new HashMap(); and Map map = new HashMap(); ?
    • 25 January 2021
    • 20views
    • 2comments
    0
  • WhiteColloid
    Level 7
    San Francisco
    Question about the task Cat and statics
    , Level 6, Lesson 11
    Under discussion

    when to use "this" and when to use Cat.

    When should I use this and when to use Cat. to call the variable in Cat class? public class Solution { public static void main(String[] args) { // Create 10 cats Cat cat1 = new Cat(); Cat cat2 = new Cat(); Cat cat3 = new Cat(); Cat cat4 = new Cat();
    • 9 January 2021
    • 49views
    • 3comments
    0
  • remote87
    Level 13
    Sofia
    Question about the task Who's that smarty?
    , Level 3, Lesson 2
    Resolved

    I missed something

    I am really frustrated and confused with these ineterfaceses... I though that we can use the word extends only for classes inheritance and when using it, we can inherit only one class. But here: interface Boss extends Person, HasManagementPotential { } the interface extends ( inherits ) two ..
    • 25 January 2021
    • 21views
    • 2comments
    0
  • Marco Negus
    Level 6
    Under discussion

    ?????

    hi guys anyone know why on the website im at level 3 lesson 3 available but after download e set intelliJ on my task i can just see till level 0 and 1 task ? how can i open all my new available task if i cannot show inside the IDE task? is a subcription problem?
    • 21 December 2020
    • 48views
    • 3comments
    0
  • Pandurang Patil
    Level 3
    kolhapur
    Under discussion

    level 3

    I am study Mobil use code gym aap the level 3is not open and ideal c jdk 8 not installing and the not open please help me Sir ??
    • 25 January 2021
    • 8views
    • 0comments
    0
  • Peerawas
    Level 18
    Question about the task Robot wars
    , Level 3, Lesson 11
    Under discussion

    I don't understand the logic of this game

    The new body part must be added to the logic for the attack and defend methods in the AbstractRobot class.
    • 30 December 2018
    • 950views
    • 6comments
    0
  • Tamas Horcsak
    Level 12
    Leeds
    Question about the task Minimum and Maximum
    , Level 1, Lesson 11
    Under discussion

    Please guys help me. I could do the iteration but I cant pass it to the given X in the main. :-(

    public class Solution { public static void main(String[] args) throws Exception { int[] data = new int[]{1, 2, 3, 5, -2, -8, 0, 77, 5, 5}; Pair result = getMinimumAndMaximum(data); System.out.println("The minimum is " + result.x); System.out.println("The maximum
    • 22 January 2021
    • 31views
    • 3comments
    0
  • Daniel Whyte
    Level 7
    Question about the task Static methods for cats
    , Level 6, Lesson 8
    Under discussion

    Cat.catCount

    Why can I not use this. catCount on the setter method?
    • 25 January 2021
    • 17views
    • 1comment
    0
  • myqms
    Level 33
    Landshut
    Question about the task Inverted words
    , Level 2, Lesson 9
    Under discussion

    The output seemes to be corret. But why doesn't it pass ?

    The result list must be filled with correct pairs according to the task conditions, but I guess it does. Where is my mistake in thinking. Thank you for your advice, in advance.
    • 24 January 2021
    • 15views
    • 1comment
    0
  • taehee Im
    Level 2
    Kuri
    Under discussion

    Korean language support is not available.

    Korean language support is not available from level 2. What happened?
    • 25 January 2021
    • 8views
    • 0comments
    0
  • Seth Barker
    Level 4
    Eureka Springs
    Question about the task Rule of the triangle
    , Level 4, Lesson 4
    Resolved

    Stopping run & not sure what is wrong with code

    Couple of things going on. When I'm running the Solution in IntelliJ, nothing is showing up in the build for this task. I have to "stop" the build. Also - I'm not sure what's wrong with the code: package com.codegym.task.task04.task0415; /* Rule of the triangle */ import java.io.*; public
    • 23 January 2021
    • 27views
    • 2comments
    0
  • Lightbend
    Level 17
    Milan
    Question about the task MovieFactory
    , Level 4, Lesson 8
    Resolved

    Where am I going wrong?

    Any help is appreciated.
    • 24 January 2021
    • 18views
    • 2comments
    0
  • Anitamalina
    Level 10
    København
    Question about the task Cat counter
    , Level 6, Lesson 5
    Under discussion

    What am I doing wrong here?

    What am I doing wrong here?
    • 22 October 2020
    • 80views
    • 2comments
    0
  • 1
  • 2
  • 3
  • ...
  • 305
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
About
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
Video
  • Top 3 features of CodeGym
  • "Course" section
  • About the "Tasks" section
  • "Games" section
Follow us
Interface language
© 2021 CodeGym Programmers Are Made, Not Born
© 2021 CodeGym Programmers Are Made, Not Born