CodeGym
Promotion
CodeGym University
Java FullStack
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
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Calling a static method
    Java Collections, Level 5, Lesson 4
    Under discussion
    I don't understand the solutionIn the previous lesson: https://codegym.cc/quests/lectures/questcollections.level05.lecture03 They use the following block of example code: class Zoo<T> { ArrayList<T> pets = new ArrayList<T>(); public T createAnimal() { T animal = new T(); pets.add(animal) return anima
    • 11/18/22
    • 758views
    • 5comments
    0
  • Abe
    Level 41
    Salt Lake City
    Question about the task Wildcards
    Java Collections, Level 5, Lesson 8
    Resolved
    Help!! Another one I just can't figure out. I believe this task is looking for something very specific and I cannot figure out what that is (or there is a bug). Has anyone else passed this task? If so, could you give me a little push to help me understand what exactly the 3rd requirement is looking for?
    • 11/19/19
    • 1659views
    • 3comments
    1
  • Andrei
    Level 41
    Question about the task Collections & Generics
    Java Collections, Level 5, Lesson 6
    Resolved
    Can someone please explain why I need 2 < T > before and after ArrayList?So in line 16 I have the method declaration for newArrayList. For it to be accepted, it needs < T > before and after ArrayList. Please let me know if I have understood this correctly. The second < T > is the return type of the ArrayList. So this method will return an ArrayList that con
    • 7/13/21
    • 1083views
    • 7comments
    0
  • Justin Johnson
    Level 31
    Clearwater
    Question about the task Threads of a string or stringy threads? That's the question
    Java Multithreading, Level 2, Lesson 5
    Resolved
    Can someone help me please and thank you?In my code,under the OurUncaughtExceptionHandler class, I have literal strings in place for the StringIndexOutOfBounds info. I need help getting this string from the parameters. If anyone has a solution I could look at, I would appreciate it. Thanks.
    • 3/21/20
    • 1806views
    • 5comments
    2
  • Bertalan
    Level 10
    Question about the task Giant cities
    Java Syntax, Level 7, Lesson 5
    Under discussion
    the answer to this problem is explained in the next lessonThe answer provided by the correct solution is explained in the next lesson, from what I can see..
    • 10/7/23
    • 373views
    • 0comments
    0
  • Deniz Karadal
    Level 1
    Freinsheim
    Question about the task Bug in equals/hashCode
    Java Multithreading, Level 1, Lesson 5
    Under discussion
    Any hint which I miss on this?I need an another eye which needs to put me in the right direction. I simply miss a simple point but have not yet found it.
    • 9/24/20
    • 831views
    • 1comment
    1
  • FelixUjo
    Level 35
    Gijón
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Resolved
    I can't find a solutions. I have tried all methods to check if the thread has started.I can't find a solutions. I have tried all methods to check if the thread has started.
    • 10/8/23
    • 377views
    • 1comment
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Adding logging to a class
    Java Collections, Level 4, Lesson 10
    Resolved
    No idea how to log itI solved task but still I don't know how to physically log information to the file? I had this error: Maybe someone know what to do because like couple times before 0 information about proper and actual library to download.........
    • 10/7/23
    • 627views
    • 3comments
    0
  • Franek
    Level 29
    Torun
    Question about the task AmigoSet (part 2)
    Java Collections, Level 4, Lesson 15
    Archived
    To initialize the map field, use a constructor that lets you pass the initial capacity.Can someone explain what shoud I do here? What initial capacity ?
    • 7/11/19
    • 1871views
    • 2comments
    0
  • Sornam Ravi
    Level 5
    Bangalore
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Under discussion
    where to learn about bufferedReader in the courseCould you please let me know where to learn about bufferedReader in the course
    • 10/7/23
    • 388views
    • 1comment
    0
  • Inferno
    Level 5
    Rewa
    Question about the task To work or not to work? That is the question
    Java Syntax, Level 3, Lesson 6
    Under discussion
    Requirements errorI did the same thing.Why is requirment not complete
    • 10/2/23
    • 432views
    • 3comments
    0
  • Bhargav
    Level 7
    Mountain View
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    What is wrong with this code? Triangle without specified sides code isn't working!I don't understand what is wrong with the code listed below, help would be appreciated! The last requirement for the code is not passing, and I do not see what is wrong with my code. It should have come up with some sort of compiler error if it was purely syntax related, right? Not too sure, and I d
    • 12/29/20
    • 1016views
    • 5comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Exception invasion
    Java Core, Level 4, Lesson 8
    Under discussion
    I do not know which exceptions are the sameI do not know which exceptions are the same
    • 9/18/23
    • 403views
    • 6comments
    0
  • jamuna
    Level 18
    tirunelveli
    Question about the task Different methods for different types
    Java Core, Level 5, Lesson 12
    Resolved
    i dont know why im getting exceptions after handling itany one can explain please
    • 9/6/23
    • 420views
    • 4comments
    0
  • Shraddha Lambat
    Level 20
    Mumbai
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 11, Lesson 1
    Resolved
    for converting hex to binary, to check the digits and letters which one is better switch or regular exp as regular exp not coverthe toBinary(String) method contains any character other than digits from 0 to 9 or lowercase Latin letters from a to f, then the method returns an empty string.
    • 9/7/23
    • 424views
    • 2comments
    0
  • Shraddha Lambat
    Level 20
    Mumbai
    Question about the task Correct order
    Java Syntax, Level 9, Lesson 1
    Resolved
    how to change the value of array public static void reverseArray(int[] array) { //write your code here int[] ar=new int[array.length]; for (int i=array.length-1;i>=0;i--) { ar[(array.length-1)-i]=array[i] ; } printArray(ar); }
    • 9/8/23
    • 736views
    • 4comments
    0
  • Shraddha Lambat
    Level 20
    Mumbai
    Question about the task Two iPhones
    Java Syntax, Level 13, Lesson 4
    Resolved
    Why its fail, output is currect if (!(this.model.equals(iphone.model)) && !(this.color.equals(iphone.color)) && !(this.price==(iphone.price))) { b=false; }
    • 9/14/23
    • 429views
    • 2comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Horse racing
    Java Core, Level 6, Lesson 5
    Resolved
    I do not understand why it does not validate it. The result seems correct.I do not understand why it does not validate it. The result seems correct.
    • 9/30/23
    • 431views
    • 3comments
    0
  • Aditya Sinha
    Level 17
    Bangalore
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Under discussion
    Not able to fix thispackage com.codegym.task.task14.task1409; public class Solution { public static void main(String[] args) { println(new WaterBridge()); println(new SuspensionBridge()); //println(new SuspensionBridge()); //println(new SuspensionBridge()); } public static v
    • 2/16/19
    • 2036views
    • 6comments
    1
  • Bogdan Codreanu
    Level 23
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Resolved
    can someone help pleasei
    • 7/15/19
    • 2167views
    • 5comments
    1
  • Denis
    Level 22
    Kharkiv
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Under discussion
    Lat condition. What i must be change?help me pls with solution
    • 6/26/19
    • 1463views
    • 2comments
    1
  • shovan
    Level 22
    Kolkata
    Question about the task Useless abstractions
    Java Core, Level 2, Lesson 12
    Resolved
    cant understandfailing condition ::::::You should be able to create a Horse object
    • 6/10/19
    • 1719views
    • 3comments
    1
  • Dương Tiến Đạt
    Level 41
    Ha Noi City
    Question about the task Aggregator (part 8)
    Java Collections, Level 8, Lesson 15
    Under discussion
    Cached version does not workCached version The cached version in the link above does not contain any element with the "jobs-search-result-item" class. Can anyone help me with this?
    • 4/25/23
    • 438views
    • 3comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Under discussion
    I don't know what to do.I do not understand the example outputs. They show different things.
    • 9/24/23
    • 330views
    • 1comment
    0
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Refactoring (part 13)
    Java Multithreading, Level 5, Lesson 16
    Resolved
    HelpPlease Help
    • 11/4/19
    • 1118views
    • 4comments
    0
  • baked_turkey
    Level 6
    Question about the task Three numbers
    Java Syntax, Level 3, Lesson 5
    Under discussion
    Problem with outputFor some reason it is not printing the right solution, but I think my logic is correct? What did I do wrong?
    • 9/24/23
    • 370views
    • 1comment
    0
  • Dipankar Sinha
    Level 22
    United States of America
    New
    method lesson quizmethod lesson quiz answers please. some answer that i chose was wrong. from where the correct answer could be referred.
    • 9/23/23
    • 309views
    • 0comments
    0
  • Cristian
    Level 13
    Ploiesti
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Resolved
    What is wrong here? Thank you so much! package com.codegym.task.task08.task0824; import java.util.ArrayList; /* Make a family */ public class Solution { public static void main(String[] args) { Human grandf1 = new Human(true, 78, "Gheorghe", new ArrayList()); Human grandf2 = new Human(true, 66, "Marin", new ArrayL
    • 12/22/20
    • 1406views
    • 4comments
    1
  • Ramen
    Level 23
    South Lake Tahoe
    Question about the task What's in the folder?
    Java Collections, Level 1, Lesson 4
    Under discussion
    Files.walk(path)How do I solve this problem using Files.walk(path) instead of Files.walkFileTree()? Why isn't this working?
    • 9/14/23
    • 324views
    • 1comment
    1
  • catalin1989
    Level 37
    Question about the task Longest sequence
    Java Syntax, Level 14, Lesson 5
    Under discussion
    Why I can't use "==" operator with ArrayList with list elements larger that 127 and have to use Object.equals(list.get(j), list.get(j+1))?Create a list of numbers. Use the keyboard to add 10 numbers to the list. Display the length of the longest sequence of repeating numbers in the list. This are the required conditions. This is my code. It works, but I don't understand something. In the while loop, first I tried to compare directly t
    • 9/21/23
    • 330views
    • 2comments
    0
  • 1
  • ...
  • 19
  • 20
  • 21
  • 22
  • 23
  • ...
  • 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