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
  • Robert P
    Level 20
    Nashville
    Question about the task Transactionality
    Java Core, Level 7, Lesson 10
    Resolved
    I don't know what they wantI just need help with the last invalidated condition. "The joinData method must remove from the allLines list all lines in the linesForRemoval list if allLines contains all the lines in the linesForRemoval list." The recommendation from the program: "Be sure that the joinData() method deletes from
    • 14.12.2018
    • 1454views
    • 4comments
    0
  • Au Ivan
    Level 17
    Hong Kong
    Question about the task Display numbers in reverse order
    Java Syntax, Level 7, Lesson 12
    Resolved
    Em...why is that lolplz help...
    • 18.09.2019
    • 1287views
    • 2comments
    0
  • Bartek J.
    Level 13
    Zielona Góra
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    Problem witch changing placesHi I think my program is working fine, but word with letter "r" and "l" is placing to the end of Array. Can sb help ? :)
    • 26.08.2019
    • 1267views
    • 4comments
    0
  • luna Zheng
    Level 18
    Ningbo
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    Please help me!!!! The output result seems that my code is right, but i dont't know why it doesn't match the fourth requirement.finally,Map values : {lao5=zhang, lao3=biao}
    • 21.09.2019
    • 1547views
    • 1comment
    0
  • Yvonne
    Level 7
    Nairobi
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    My Program won't even compile and I don't seem to see the issue. Please Help.My Program won't even compile and I don't seem to see the issue. Please Help. This is the compiler message: Exception in thread "main" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:542) at java.lang.Integer.parseInt(Integer.java:615) at Solution.main(Solution.j
    • 21.09.2019
    • 1337views
    • 2comments
    0
  • ShirAz SiddiQui
    Level 8
    Karachi
    Question about the task Do we have a pair?
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What mistake i'm making in my code?What mistake i'm making in my code?
    • 21.09.2019
    • 1087views
    • 1comment
    0
  • kapil
    Level 12
    delhi
    Question about the task Catching custom exceptions
    Java Syntax, Level 9, Lesson 8
    Resolved
    help me in finding errorplease help me as i am unable to find error in my code
    • 08.02.2019
    • 1892views
    • 5comments
    1
  • Stefan Craia
    Level 15
    Bucharest
    Question about the task HashMap of cats
    Java Syntax, Level 8, Lesson 3
    Resolved
    It works-won't pass validation THE VALIDATIONS that don't pass are: 1. The addCatsToMap() method should add all cats in the String[] cats array to the collection in accordance with the task conditions. recomandation from mentor: Be sure that the addCatsToMap() method adds all cats in the String[] cats array to the collection in a
    • 06.08.2019
    • 1618views
    • 1comment
    2
  • Alexandru Ovcinicov
    Level 15
    London
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Resolved
    Help Please! I get right results, but can not pass though. (check my two versions, both work,but not validate)You can see two variants using break statement and other using whileController public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); HashMap myMap = new HashMap<>();
    • 21.09.2019
    • 1315views
    • 3comments
    0
  • jawad
    Level 10
    Lahore
    Question about the task Create a Friend class
    Java Syntax, Level 5, Lesson 7
    Under discussion
    what's wrong in my code it says ";" expected line 10
    • 20.09.2019
    • 1028views
    • 2comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Resolved
    I tried multiple times where I am wrongHow to copy the contents if the file itself is not there ?
    • 30.04.2019
    • 1722views
    • 4comments
    0
  • // Java Poser
    Level 18
    Cincinnati
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Archived
    Getting this validation error . Also, What file are we supposed to be reading from? That part is unclear to me
    • 10.04.2019
    • 1101views
    • 2comments
    0
  • Francisco González
    Level 4
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Resolved
    I'm stuck. Please help me! I think I have declared the variable person and with it I have five variables. But no. Why???
    • 10.09.2019
    • 1531views
    • 2comments
    0
  • Jayaraj Kamaraj
    Level 18
    Singapore
    Question about the task Static modifiers and kittens
    Java Core, Level 5, Lesson 9
    Under discussion
    Can anybody help to solve this problem?Don't know what is the issue here. Please help on this.
    • 06.08.2019
    • 1276views
    • 3comments
    0
  • Lukas Smetana
    Level 10
    London
    Question about the task 10 thousand deletions and insertions
    Java Syntax, Level 8, Lesson 6
    Resolved
    HELP PLEASE - LISTHello, dont know how to finish removing 10000 elements from list :(
    • 03.08.2019
    • 1883views
    • 2comments
    1
  • khushbu Nirmal
    Level 7
    Mumbai
    Question about the task Target locked!
    Java Syntax, Level 4, Lesson 6
    Resolved
    why it is not passing the test caseswhats the problem in my code
    • 30.10.2018
    • 1894views
    • 2comments
    2
  • Ymje Sköld
    Level 4
    Bjorko
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Why won't it verify?This computes in eclipse and here, with or without negative numbers. Am I supposed to use double? I start to think my solution might be a little convoluted. Probably don't need the array at all., can just check maxval after each input. Whoops. Either way, why won't this convoluted mess verify?
    • 08.06.2019
    • 1644views
    • 7comments
    0
  • theCalculator
    Level 3
    Warren
    Under discussion
    I have made adjustments ie followed the instructions to the first condition although I get correct screen output, computer says wrong?Anyone take a look at this code and help me debug. please.
    • 20.09.2019
    • 1004views
    • 1comment
    0
  • Abu Bakker Siddiq H
    Level 5
    Salem
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    Can Anyone please tell me what is the task that is not met here ?fellow Gymnasts, can anyone explain what requirement is not met here? Thanks in advance
    • 20.09.2019
    • 1352views
    • 5comments
    0
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Mastering the static block
    Java Core, Level 5, Lesson 12
    Resolved
    condition did not satisfied help please thanks
    • 18.08.2019
    • 1129views
    • 3comments
    0
  • Weichen Ouyang
    Level 25
    San Jose
    Question about the task Problem solving
    Java Core, Level 9, Lesson 8
    Resolved
    This problem is driving me nuts. Please help...How could I pass the final condition?
    • 18.09.2019
    • 1233views
    • 3comments
    0
  • Xuecong Liu
    Level 7
    Australia
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Under discussion
    My code works but doesn't verify, help me pleaseI've tried several tests on IntelliJ and they all worked as expected: Input: 3, 3, 3; Output: 3 Input: 3, 3, 4; Output: 3 Input: 3, 4, 5; Output: 4 Don't understand what I got wrong :( Any help would be much appreciated!
    • 17.09.2019
    • 1067views
    • 7comments
    0
  • Henry
    Level 6
    Stuttgart
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Under discussion
    HelloWhat is the right step to take? I cant think of anything.
    • 07.09.2019
    • 1057views
    • 2comments
    0
  • Piotr Wikarski
    Level 19
    Birmingham
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    Flaw in the app? I'll do exactly what is on the question. Have the correct result, but it won't give me all green. It happened few times already. Is it a flaw in the app? I print exact words to the screen and call the method. Tried many different ways. Never vote all green. I'm not new to java. I do this level to ch
    • 19.09.2019
    • 966views
    • 2comments
    0
  • Gábor
    Level 14
    Budapest
    Question about the task Remove and insert
    Java Syntax, Level 7, Lesson 6
    Resolved
    I do not understand this error: java.lang.IndexOutOfBoundsException: Index: 5, Size: 5I think the logic behind the code is good, but I still missing something....
    • 19.09.2019
    • 2230views
    • 2comments
    0
  • Brandon Horvatic
    Level 27
    Johannesburg
    Question about the task File in a static block
    Java Core, Level 5, Lesson 12
    Under discussion
    Please help with clarity on the program.. Thanks in advanceThis code works with the lines uncommented. I just wanted to get some clarity on all these input streams as I am having trouble grasping the concept, so if someone could please help better my below understanding. So what I understand: 1. First, the FileInputStream reads the file in byte form that is
    • 17.09.2019
    • 981views
    • 1comment
    0
  • Vartaman Ingole
    Level 6
    Wardha
    Question about the task Seeing dollars in your future
    Java Syntax, Level 4, Lesson 10
    Under discussion
    What's wrong with it?? import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here int i = 1 ;int j = 1; char c ='$'; while (i <= 10) { { System.out.println(c); } while (j <= i ) { System.out.print(c);
    • 30.11.2018
    • 1828views
    • 8comments
    0
  • Jason Macias
    Level 16
    New Jersey
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Code appears to be working, but is not passing last two testsI have written this several ways, and each produced the results asked for, but it isn't passing the last two tests. Any feedback on why this is?
    • 19.09.2019
    • 1034views
    • 2comments
    0
  • Ahmed
    Level 23
    Amsterdam
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    It should work correctly but the verifier doesn't agree :/ My code works correctly based on the requirements when I run it. But I got an error when trying to verify it. Anyone has an idea?
    • 23.05.2019
    • 2134views
    • 11comments
    1
  • Naveen Muralidoss
    Level 9
    Newark
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    What is wrong?? output prints as excepcted Kevin will take over the world in 8 years. Mwa-ha-ha!
    • 18.09.2019
    • 1193views
    • 5comments
    0
  • 1
  • ...
  • 276
  • 277
  • 278
  • 279
  • 280
  • ...
  • 372
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 © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym