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
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Resolved
    Cant get passed test to output max and min valuesI'm so confused. My output is correct. I've checked the syntax and it seems fine. Why am I unable to advance past the third test? Your help is appreciated.
    • 06.07.2020
    • 825views
    • 4comments
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Resolved
    So confusedI don't even know where to begin. Can someone please walk me through how to code this? Thank you
    • 07.07.2020
    • 653views
    • 1comment
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    Help figuring out this code pleaseMy code creates an array, fills it then compares its value to odd or even and ouputs the response indicated. The output is correct, but I'm not passing the task verifications. Your help is appreciated.
    • 06.07.2020
    • 781views
    • 6comments
    0
  • Massimo Lorenzi
    Level 2
    milano
    Under discussion
    problem level 2 less 2 can anyone tell me why in this case the execution of the program gives me an error?
    • 08.07.2020
    • 458views
    • 3comments
    0
  • Kamil
    Level 31
    Near Warsaw
    Question about the task Shortener (6)
    Java Collections, Level 6, Lesson 15
    Resolved
    I've got a bit of a problem hereI know the task will not pass due to missing Date objects. Although I thought it will meet at least most of the requirements but it doesn't, even a single one. Anyone can tell me what's wrong? And how did you use Date class to measure the time? Because obviously System.currentMillis(); would be
    • 23.04.2020
    • 776views
    • 2comments
    2
  • Jeanne Vo
    Level 22
    Olympia
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Please help!The last requirement is not met. Thank you!
    • 07.07.2020
    • 1036views
    • 7comments
    0
  • Majek
    Level 10
    Katowice
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Why no. 4 is incorrent ? Im blindpackage com.codegym.task.task04.task0420; /* Sorting three numbers */ import java.util.Scanner; import java.io.*; public class Solution { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextI
    • 06.07.2020
    • 535views
    • 5comments
    2
  • David
    Level 26
    Bucharest
    Question about the task The richest
    Java Core, Level 9, Lesson 11
    Resolved
    Help!!Can't figure whats wrong.
    • 06.07.2020
    • 1037views
    • 5comments
    0
  • slyyx
    Level 15
    New York City
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Resolved
    Conditions are met, but it says they aren'tMaybe I'm misunderstanding the requirements, but I was confident that I had found a solution.
    • 08.07.2020
    • 633views
    • 1comment
    0
  • DeZilius
    Level 27
    Warsaw
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    I cannot find errorHello! Maybe some one will be able to find mistake that I cannot see myself. First I read all the lines from file, then I replace every sign of new line '\n' with space. Next I enter double for loop. In first loop I check if words[i] is not null, then I assing value to first word in pair. Finally
    • 21.04.2020
    • 1015views
    • 1comment
    0
  • fifi deng
    Level 22
    Paris
    Question about the task Four mistakes
    Java Core, Level 3, Lesson 2
    Under discussion
    confused,totallyxx
    • 05.07.2020
    • 887views
    • 2comments
    0
  • Goran
    Level 41
    Belgrade
    Question about the task Time for 10,000 get calls
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Need clarification for part of code, not solution public static void get10000(List list) { if (list.isEmpty()) return; int x = list.size() / 2; for (int i = 0; i < 10000; i++) { list.get(x); } } Can some one explain what is purpose of int x = list.size()/2; ? If i understand it correctly it wil
    • 04.03.2020
    • 1192views
    • 3comments
    1
  • Jason
    Level 26
    Rancho Cucamonga
    Question about the task Reading and writing to a file: CodeGym
    Java Core, Level 10, Lesson 2
    Resolved
    I've been stuck on this for ages now.... Please help getting "Check why exception occures in the save/load methods."So this "clue" from the mentor does absolutely no good at helping me out. I haven't a clue what to do and I've been reading like crazy to try to figure this out and I all I keep reading everywhere is that it is 1000x easier and safer and better to just use serialization.... please help. Thanks in ad
    • 26.11.2019
    • 1727views
    • 6comments
    1
  • Jeanne Vo
    Level 22
    Olympia
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    Where could I fix the problem?Someone please tell me.
    • 30.06.2020
    • 727views
    • 5comments
    0
  • Seferi
    Level 22
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    Can someone help please..What should I do?
    • 28.06.2020
    • 777views
    • 1comment
    0
  • Jakhongir Ruziev
    Level 23
    Tashkent
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    It is not passing this test: The displayClosestToTen method should display a number on the screen in accordance with the task conditions. Can someone help with this please🙏public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { if (abs(10-a)
    • 02.04.2020
    • 1215views
    • 2comments
    0
  • holybible
    Level 28
    Plovdiv
    Question about the task Reading and writing to a file: Human
    Java Core, Level 10, Lesson 2
    Resolved
    I do not really understand what the secod requirement wantsAny help/hints are welcome
    • 14.09.2019
    • 1521views
    • 3comments
    3
  • David
    Level 26
    Bucharest
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Archived
    Why do I get this output? This as23dds asd twelve 23 twelve34 file file Asds we four twelve 1990 file vifourew Ssd WD one nine 2020 file view In ZX2 EW eleven 28 1998 file in in Bns afef two two3 1999 file file file Ss2d sef sd six ten 1995 in view Asds four 19 1992 in in Asd3s seven 1seven 2012 view view
    • 07.07.2020
    • 751views
    • 4comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Method in a try-catch
    Java Syntax, Level 9, Lesson 11
    Under discussion
    could anyone clear my doubt...why here i can't use for loop instead of while. while(true){ int a = Integer.parseInt(reader.readLine());
    • 07.07.2020
    • 589views
    • 2comments
    0
  • Randall John
    Level 19
    San Jose
    Question about the task Shall we play?
    Java Core, Level 6, Lesson 13
    Under discussion
    When i run the code it works but it says I have an infinite loop when trying to verify O.OHelp please!!
    • 05.07.2020
    • 410views
    • 1comment
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Vowels and consonants
    Java Syntax, Level 9, Lesson 11
    Under discussion
    What is wrong with my code?for String a = "sefeg." console output: e e s f g .
    • 25.01.2019
    • 1371views
    • 6comments
    0
  • Seferi
    Level 22
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    Have been trying for days.. Can't figure it out...Help is greatly appreciated!
    • 06.07.2020
    • 536views
    • 1comment
    0
  • Angel Stefan Arjoca
    Level 26
    Bucharest
    Question about the task Currencies
    Java Core, Level 4, Lesson 8
    Resolved
    from allMoney.add()... ???🤷‍♂️Any hint, pls!? Tk you!
    • 06.07.2020
    • 652views
    • 2comments
    0
  • Ntuthuko Xaba
    Level 18
    Johannesburg
    Question about the task Encryption
    Java Core, Level 8, Lesson 11
    Under discussion
    No idea what to do!Guys I need help.
    • 22.05.2020
    • 754views
    • 2comments
    0
  • SammyGammy
    Level 4
    Chico
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Under discussion
    I keep failing the last requirement and I dont know why.I have passed all of the other requirements and I get the right outcome. This seems to happen with all of my tasks and it sucks.
    • 07.07.2020
    • 423views
    • 1comment
    0
  • Agata
    Level 20
    Warsaw
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Resolved
    I don't meet last 4 requirements, please help me :)What does it mean that hens must be in separate files? I thought it means separate classes getMonthlyEggCount must return int... It does... When i print it everything looks ok so I can't figure out where the mistake is.
    • 25.05.2020
    • 997views
    • 3comments
    0
  • SammyGammy
    Level 4
    Chico
    Question about the task Financial expectations
    Java Syntax, Level 3, Lesson 12
    Resolved
    Why am I getting 49?I beleive that everything else is correct, but for some reason I keep getting 49 instead of 100. If someone could help me fix it and also explain why it is like that. That would be so helpful. Im sure it is just some more realistic goals, but I dont think that Java takes that into account. lol I hav
    • 06.07.2020
    • 741views
    • 6comments
    0
  • SammyGammy
    Level 4
    Chico
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    I get the correct numbers, but it still doesnt work?I am not sure what I am missing.
    • 07.07.2020
    • 411views
    • 1comment
    0
  • Yip Mun Allen
    Level 8
    London
    Question about the task Cat and statics
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Infinite Loop?Why does this create an infinite loop if the condition is stated?
    • 28.01.2020
    • 1384views
    • 7comments
    0
  • Abhilash Ravichandran
    Level 10
    Kigali
    Question about the task Who called me?
    Java Syntax, Level 9, Lesson 2
    Resolved
    Return the line number of the code from which it was called?What am I asked to do?
    • 03.11.2018
    • 2197views
    • 4comments
    0
  • 1
  • ...
  • 169
  • 170
  • 171
  • 172
  • 173
  • ...
  • 371
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