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
  • Сергей
    Level 3
    Under discussion
    AccountWhere is the page "Exit my account". A computer is not mine
    • 2/9/21
    • 653views
    • 0comments
    0
  • Nathan
    Level 13
    Below the firmament
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Correct answer, wrong method?Please check my logic, not sure what I've done wrong.
    • 1/27/21
    • 633views
    • 3comments
    0
  • MCantu
    Level 2
    Texas
    Under discussion
    So what is the difference between the following codes in a standard for loop?So what is the difference between the following codes in a standard for loop: list.get(i) //I know this holds the current element in the list. list.get(i+1); list.get(i -1) list.get(i) + 1) //I think this one grabs the next element following the current element???? list.get(i) -1) I am a little conf
    • 2/8/21
    • 1019views
    • 4comments
    0
  • Abdelrahman
    Level 5
    Amman
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    HelpWhy is it giving an error when I run it?
    • 1/31/21
    • 664views
    • 2comments
    0
  • Romain
    Level 26
    Paris
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Resolved
    Problem to return objectI read somewhere, Java send variable containig object by address and thanks to that is possible to modify directly objects I tried to make this and I don't understand but my returns always return "null" and not the object's address With different System.out.println I could see I success to have th
    • 2/8/21
    • 701views
    • 2comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task 10 thousand deletions and insertions
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Set method not working. public static void set10000(List list) { //write your code here for (int i = 0; i < 10000; i++) { list.add(new Object()); } This code should add the object to the end of the List correct? Is there a set method I am not aware of?
    • 2/8/21
    • 943views
    • 3comments
    0
  • Josephine
    Level 1
    Normal
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Resolved
    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
    • 1/26/21
    • 860views
    • 3comments
    0
  • Josephine
    Level 1
    Normal
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Resolved
    Can someone look thrrough....Tested for 3 sets of arrays. First set of array {'f', 'd', 'e', 'r', 'l', 'k'}, {'u', 's', 'a', 'm', 'e', 'o'}, {'l', 'n', 'g', 'r', 'o', 'v'}, {'m', 'l', 'p', 'r', 'r', 'h'}, {'p', 'o', 'e', 'e', 'j', 'j'} home - (5, 3) - (2, 0) same - (1, 1) - (4, 1) =======
    • 2/8/21
    • 485views
    • 2comments
    0
  • Libby
    Level 2
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    Where am I wrong?What's wrong here? when I checked with the correct solution it is basically the same code. did I miss something?
    • 2/7/21
    • 617views
    • 4comments
    0
  • Klemen Horvat-Novak
    Level 4
    Radenci
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Help pls.Correct output result. But the last answer is not completed... Code: package com.codegym.task.task02.task0217;
    • 1/29/21
    • 653views
    • 3comments
    0
  • Mina Nabil
    Level 17
    Sydney
    Question about the task Family census
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Hi, I was wondering whats wrong with my code ? ThanksHi, I was wondering whats wrong with my code ? Thanks
    • 2/6/21
    • 807views
    • 3comments
    0
  • Ahmed
    Level 23
    Amsterdam
    Question about the task Shall we play?
    Java Core, Level 6, Lesson 13
    Resolved
    The player should not display a victory message if the variable isWinnerFound is already set to true (i.e. the winner has already been found).The output is exactly what the exercise expected. But I still get the error The player should not display a victory message if the variable isWinnerFound is already set to true (i.e. the winner has already been found). Anyone knows why is that? Thanks in advance!
    • 6/22/19
    • 2067views
    • 7comments
    1
  • Zach
    Level 22
    Fort Collins
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Under discussion
    While loop is not working??? public class StringEntry { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); // initialize and ArrayList ArrayList stringList = new ArrayList(); while (!
    • 2/7/21
    • 868views
    • 1comment
    0
  • Nathan
    Level 13
    Below the firmament
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Resolved
    I may or may not have broken something.When I run the program in IntelliJ I think I'm satisfying all the criteria. However when I try to validate the answer it keeps timing out?
    • 2/7/21
    • 612views
    • 2comments
    0
  • Adrian
    Level 27
    Spanish Town
    Question about the task Equals and HashCode
    Java Multithreading, Level 1, Lesson 5
    Under discussion
    getClass() and instanceof"The equals method should check whether the passed object is a Solution object." Per the stated condition, why does code that uses getClass() check not pass but the instanceof check does? Strictly speaking the instanceof operator is not checking to see if the passed object is a Solution object, bu
    • 2/6/21
    • 868views
    • 3comments
    0
  • Jordi Claes
    Level 17
    Question about the task Even numbers
    Java Syntax, Level 4, Lesson 13
    Under discussion
    IntelliJ says it requires a boolean for the if statement, what am i doing wrong please?package com.codegym.task.task04.task0435; public class Solution { public static void main(String[] args) throws Exception { int x = 1; for (x =1; x < 101; x++) if (x % 2 = 0) System.out.println(x);//write your code here } }
    • 2/7/21
    • 905views
    • 2comments
    0
  • Mina Nabil
    Level 17
    Sydney
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Resolved
    Hi, whats wrong with my code ?Hi, whats wrong with my code ?
    • 2/5/21
    • 812views
    • 2comments
    0
  • Gus Iwanaga
    Level 18
    Munich
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    Don't get it why 3rd test condition does not passHi everyone. Been working on this exercise for a few hours and I don't understand my the third test condition does not pass. I'm also not really satisfied with the code structure (additional hints on how to make it cleaner are highly appreciated) but for now a bit of help to help me understand what'
    • 2/5/21
    • 712views
    • 4comments
    0
  • Christopher Berg
    Level 7
    Under discussion
    Abo monatlich kündbar?Überlege das Abo zu nehmen , würde aber gerne wissen ob es montlich kündbar ist, da ich es nur 3 Monate nutzen möchte. LG Chris
    • 2/6/21
    • 729views
    • 0comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Phone number verification
    Java Multithreading, Level 2, Lesson 13
    Under discussion
    Please helpSorry the code is a bit messy; not sure why it isn't working
    • 2/6/21
    • 550views
    • 1comment
    0
  • Mina Nabil
    Level 17
    Sydney
    Question about the task Animal set
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Hi, I was wondering why the remove Cats method is not working ? ThanksHi, I was wondering why the remove Cats method is not working ? Thanks
    • 2/6/21
    • 586views
    • 3comments
    0
  • Jordan
    Level 7
    Martinsburg
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    I've tested so many numbers, and it seems right. What's wrong? package com.codegym.task.task04.task0416; import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String input1 = reader.readLine(); d
    • 2/6/21
    • 664views
    • 1comment
    0
  • Tamas Horcsak
    Level 18
    Leeds
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Under discussion
    finally I got the right result but not accepted :(finally I got the right result but not accepted :( public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ArrayList list = new ArrayList();
    • 2/3/21
    • 616views
    • 2comments
    0
  • AlfredW
    Level 23
    Denver
    Question about the task Fixing bugs
    Java Core, Level 4, Lesson 8
    Under discussion
    Got it verified but have no idea what is happening.Once again a task where I have had to basically copy strings of code from other answers given in questions to get it right. I am totally missing a whole lot here. Yet when I go back and read through the lessons I do not see the answers. Lost lost lost. But I guess I will just keep plugging away at
    • 8/16/20
    • 767views
    • 4comments
    2
  • Romain
    Level 26
    Paris
    Question about the task Overriding serialization in a thread
    Java Core, Level 10, Lesson 10
    Resolved
    Bad understandingUntil now I thought we had to re-declare our fields one by one in the readObject method's, like this : private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { fileName = (String) in.readObject(); in.defaultReadObject(); stream = new FileO
    • 2/3/21
    • 725views
    • 6comments
    0
  • An Gelo
    Level 18
    Cebu
    Question about the task Set of cats
    Java Syntax, Level 8, Lesson 11
    Resolved
    remove 1 one catHI i have problem in removing cat can you guys help me. how do i remove 1 cat.
    • 8/23/18
    • 3560views
    • 17comments
    0
  • Ryan Palmer
    Level 20
    Philadelphia
    Question about the task Maximum in an array
    Java Syntax, Level 7, Lesson 4
    Resolved
    Comprehension checkPerhaps this is basic, but I am not quite sure I understand what is happening here: public static void main(String[] args) throws Exception { int[] array = initializeArray(); int max = max(array); System.out.println(max); Is this instantiating an array object and immediate
    • 2/4/21
    • 614views
    • 2comments
    0
  • sgubow
    Level 10
    Forest Grove
    Question about the task Pets need people
    Java Syntax, Level 2, Lesson 5
    Resolved
    Does order matter?So during this task I struggled for awhile and this is what was wrong: I assigned the animals an owner and had this as the code: woman = cat.owner; woman = dog.owner; woman = fish.owner; then I downloaded the correct solution and it was changed to this: cat.owner = woman; dog.owner = woman; fish.
    • 2/3/21
    • 700views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Resolved
    Very strange output. Please help.I get the output 13, 13, 45 for the input suggested in the exercise. What am I doing wrong? I feel it's from the fileinputstream but I can't put my finger on it. Please advise. This is the current form, I don't know why it isn't updated. public class Solution { public static void main(String[
    • 11/27/20
    • 894views
    • 6comments
    1
  • Noob_Coder
    Level 22
    Springfield
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    dk how to doI think it is not a hard question which just add to different list by cases,but idk what's wrong with my code,need clear explanation.
    • 11/1/20
    • 537views
    • 3comments
    0
  • 1
  • ...
  • 90
  • 91
  • 92
  • 93
  • 94
  • ...
  • 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