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
  • ddi
    Level 18
    Dortmund
    Question about the task Wine tasting
    Java Core, Level 4, Lesson 8
    Archived
    How to recognize taste interface?How to recognize taste interface? How should i recognie the taste interface?
    • 8/29/19
    • 1322views
    • 2comments
    0
  • Jason Macias
    Level 16
    New Jersey
    Question about the task Minesweeper (Part 6/16)
    Games, Level 0, Lesson 0
    Under discussion
    code failing last three requirements, can you see why this might be?This code results in failed tests telling me that the countMineNeighbors() method is setting neighbor the countMineNeighbors for objects that are flagged as mines, but I don't see why this would be happening. On line 37 I have an if statement that should only do that if the object is not flagged as
    • 9/22/19
    • 1193views
    • 1comment
    0
  • Rahul Davuluri
    Level 11
    Hyderabad
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    How to handle when there is multiple spaces between the linepublic static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String s = reader.readLine(); String result = ""; //write your code here String[] a = s.split(" "); for(int i=0; i
    • 9/22/19
    • 1549views
    • 1comment
    0
  • Jon Hjerting
    Level 1
    Oslo
    Question about the task The early bird gets the worm
    Java Core, Level 6, Lesson 13
    Under discussion
    Is this a race condition problem?Is this a race condition problem? Each threads increment the readStringCount. Once the while loop detects that count is no longer greater than readStringCount, and exits it the sends an interrupt to the 3 threads but in the meantime they may have already entered a new loop. In my program the readSt
    • 9/24/19
    • 1636views
    • 1comment
    0
  • pteo
    Level 5
    Bucharest
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    can anyone help?I have no idea what might be wrong
    • 10/7/19
    • 1304views
    • 2comments
    0
  • Wei Cui
    Level 39
    Newark
    Question about the task Cats in the Universe
    Java Syntax, Level 4, Lesson 2
    Under discussion
    One Part not clear underestedWhy solution class could include another class Cat and this class is public class?
    • 9/27/19
    • 2084views
    • 3comments
    0
  • James Mackenzie
    Level 7
    Victoria
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    The program should display the maximum of the N entered numbers.Hi Guys, Is there some hidden criteria i'm missing, i've made code that outputs the maximum number yet still throws the above error in the subject.
    • 10/10/19
    • 1240views
    • 3comments
    0
  • Laurence Chadwell
    Level 4
    San Antonio
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    Help pretty pleaseSo I found a different method of doing this but is not friendly. I was able to split the array with 10 each because I tested them with a toString method to make sure. Well codegym is not accepting that and I been unable to do a b[i] vertically because it does not accept that argument. What to do....
    • 10/9/19
    • 1314views
    • 3comments
    0
  • Au Ivan
    Level 17
    Hong Kong
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Resolved
    That is really frustrating...What is the problem...Please help..... Have tried numerous time, but still cant get it
    • 10/1/19
    • 1510views
    • 9comments
    0
  • nan
    Level 9
    Lorient
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Resolved
    position of sc.nextInt() I put the insttruction: int i = sc.nextInt(); before the block while, the programme took too long time to run. However, when I put this instruction inside the block while, it works. Can someone explain to me why please?
    • 9/4/19
    • 2186views
    • 5comments
    0
  • Jen P
    Level 26
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    Please help to check the logic on my line 29 -39. I tried so many different ways to check readByte is odd or even.I constantly got errors when submission : The first half of the bytes in the first file must be written to the second file. - When there is an odd number of bytes in the first file, your program writes the smaller half of the bytes. It should write the larger half. The second half of the bytes in t
    • 8/5/19
    • 1369views
    • 3comments
    4
  • Emanuele Gurini
    Level 18
    Porto Recanati
    Question about the task Wine tasting
    Java Core, Level 4, Lesson 8
    Archived
    I didn't understand the last part of the exerciseOk guys, i'm am in front of the problem, but i didn't understand what i have to do: someone could explain me what is answering me the exercise in the last part? love ya all
    • 9/7/19
    • 1304views
    • 4comments
    0
  • Joseph
    Level 22
    Question about the task Minesweeper (Part 7/16)
    Games, Level 0, Lesson 0
    Resolved
    Quick question on overriding methodsIn this task we are asked to override the method onMouseLeftClick which I did and passed verification. Maybe this is a simple thing but it is still confusing to me. I didn't include any logic for mouse clicking when I overrode the method. Yet it still works. Anyone know why this is the case?
    • 10/5/19
    • 1085views
    • 2comments
    0
  • Sid Sanghavi
    Level 7
    Dearborn
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    What's wrong with this?I am getting the right outputs, but it fails me in every task. Output is: grandfather grandmother
    • 10/9/19
    • 1245views
    • 7comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Resolved
    What am i missing? last condition Can someone help me with the last requirement?
    • 10/10/19
    • 1257views
    • 1comment
    0
  • Boris the Llama
    Level 20
    Maidstone
    Question about the task Clew
    Java Core, Level 6, Lesson 13
    Under discussion
    Thread 4 will not verify - tried 29 timesDoes anyone know anyway to pass the requirement relating to thread 4? I have tried the other solutions mentioned on other answers and haven't been able to pass.
    • 8/19/19
    • 1634views
    • 12comments
    0
  • mohammed azeem
    Level 5
    hyderabad
    Under discussion
    positive or negative numberwhat is this error zero is not a positive or negative number package com.codegym.task.task04.task0429;
    • 10/10/19
    • 1038views
    • 2comments
    0
  • Joshua Griebling
    Level 8
    Houston
    Question about the task You can't buy friends
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Help pleaseI keep on getting this error and I am wondering how to fix it. Can someone help, please?
    • 5/22/19
    • 1786views
    • 4comments
    0
  • jack reacher
    Level 4
    a man from nowhere
    Question about the task The humble programmer
    Java Syntax, Level 3, Lesson 8
    Under discussion
    what is the problem in it? why i couldn't verify ?
    • 10/11/18
    • 1535views
    • 6comments
    0
  • Connor Cable
    Level 8
    Folsom
    Question about the task Jen or Jen?
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Task Not Verifying - Condition 3My program works fine if I set the variables manually to identical names. The cond (a==b) will even come up as true, and the statement will print. Nevertheless, it is still failing.
    • 9/19/19
    • 1386views
    • 3comments
    0
  • علي حجار
    Level 18
    Bursa
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Under discussion
    helphelp me
    • 12/4/18
    • 2217views
    • 3comments
    2
  • Henry
    Level 6
    Stuttgart
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    hiMy boolean expression is wrong but i cant fix it.I need help,Thanks.
    • 9/19/19
    • 1059views
    • 2comments
    0
  • John Yarab
    Level 8
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Not sure what I'm doing wrongI've tried this a few different ways and not sure what I'm missing. I'm receiving the longest string(s) each time. One solution I do not have commented in I created a second array list that only contained the longest string(s).
    • 10/9/19
    • 1173views
    • 7comments
    0
  • Lucas
    Level 6
    Parker
    Question about the task People
    Java Syntax, Level 5, Lesson 5
    Resolved
    ERRORWhats wrong with this? I can't figure it out
    • 10/9/19
    • 1302views
    • 2comments
    0
  • JeRiF94
    Level 22
    Baku
    Question about the task Even characters
    Java Core, Level 9, Lesson 5
    Under discussion
    Where did I mistake.The fifth condition require from me using FileWriter , I am using it , but It says that I commit mistake , please help me to understand what wrong in this code;
    • 9/23/19
    • 1401views
    • 3comments
    0
  • Juganaru Stefan Madalin
    Level 20
    Chiajna
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Why ? Can someone explain why this is not passing the tests ?
    • 10/9/19
    • 1474views
    • 1comment
    0
  • Jeremy Hornick
    Level 16
    Question about the task Space Invaders (Part 20/34)
    Games, Level 0, Lesson 6
    Archived
    I am failing the task: "The nextFrame() method must increase the frameIndex field by one." Why?I am failing the task: "The nextFrame() method must increase the frameIndex field by one." Why?
    • 9/26/19
    • 1652views
    • 6comments
    0
  • Jimmy Phan
    Level 7
    Atlanta
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    I've met all requirements via compilerAttached is my solution. I've met all requirements and my outputs are the minimum of the set of these numbers. I've called to the method and still failed the: • The "min(a, b, c, d) method must return the minimum of the numbers a, b, c, and d." task ----------------- package com.codegym.task.ta
    • 10/7/19
    • 1916views
    • 2comments
    0
  • jorge ives murillo paredes
    Level 1
    New York City
    Question about the task Notes
    Java Core, Level 7, Lesson 2
    Under discussion
    Can somebody explain why the code doesnt work when i use "Thread.currentThread.getName()" as a parameter for removeNote methon .package com.codegym.task.task17.task1701; import java.util.ArrayList; import java.util.List; /* Notes */ public class Solution { public static void main(String[] args) { new NoteThread().start(); new NoteThread().start(); } public static class Note { public
    • 10/8/19
    • 1409views
    • 1comment
    0
  • Hossein Shams
    Level 1
    Atlanta
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Under discussion
    This is my 3rd solution, Not passing the validation testIt works on my machine though
    • 9/3/19
    • 1549views
    • 5comments
    0
  • 1
  • ...
  • 273
  • 274
  • 275
  • 276
  • 277
  • ...
  • 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