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
  • Roman Grygorczuk
    Level 19
    Cracow
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    NullPointerExceptionHi all, I cannot display last two lines and get NullPointerException. Any clue please? Thanks, Roman
    • 11/8/20
    • 532views
    • 3comments
    0
  • Dinesh
    Level 7
    Delhi
    Under discussion
    Why out put as 0.0 ? public class TenPerIncrease { public static double addTenPercent(int i) { //write your code here double incInPer = (10/100)*i; return incInPer; } public static void main(String[] args) { System.out.println(addTenPercent(9)); } }
    • 11/10/20
    • 442views
    • 2comments
    0
  • AlfredW
    Level 23
    Denver
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    STILL Wont Verify.I got the time out fixed and my results numbers are good. Still won't verify....? Keeps saying: "The getNumbers method must return the array of numbers that satisfy the task conditions." Here are the results I get with 1000 and 1000000. But I have also run a couple of bigger numbers as well. So I
    • 11/8/20
    • 788views
    • 17comments
    0
  • AlfredW
    Level 23
    Denver
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    Still keeps timing out...I have gotten the right results but I get timed out. I tried using an array to hold the factored values to speed up calculating the bigger numbers. but it still times out. ??
    • 11/8/20
    • 653views
    • 1comment
    0
  • Alexandre Lalancette
    Level 41
    Quebec
    Question about the task Aggregator (part 13)
    Java Collections, Level 8, Lesson 15
    Under discussion
    Stuck with 2 requirements not passing. This big task is toughhhFrom the 5 people that actually passed this, can you give me a small hint? Thank you!!
    • 2/18/20
    • 1264views
    • 3comments
    0
  • MoJo
    Level 23
    Cairns
    Question about the task Creating threads recursively
    Java Core, Level 6, Lesson 13
    Resolved
    I got the taks right, but i don't quiet understand the behavoirSo, i don' want to give the answer here, but i first tried this: while (createdThreadCount < count) { System.out.println(new GenerateThread());} } and that this: if (createdThreadCount < count) The while loop didn't validate ("too many l
    • 11/8/20
    • 790views
    • 2comments
    0
  • Kaiyr Shayakhmetov
    Level 22
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    Cant fulfill the last conditionCould you plz help me with the final condition: have tried many different options, still cant pass the validation
    • 11/10/20
    • 482views
    • 1comment
    0
  • Andrei
    Level 41
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Resolved
    Output is correct but the task is not validated. Please help!I have run the program with various combinations and it worked as expected. Even so, it won't validate. public class Solution { static String family; static String city; static String cityByUser; public static void main(String[] args) throws IOException { BufferedReader r
    • 11/9/20
    • 569views
    • 11comments
    0
  • raulGLD
    Level 8
    Cluj-Napoca
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Why isn't last condition validated?Hey, I can't seem to figure out why the last condition is not validated, I know doing the comparison of i and i+1 doesn't return the right number, but lastly I increase it by 1 and it should get it right. The output is correct for the input given. Thank you!
    • 11/10/20
    • 825views
    • 3comments
    0
  • Kasia
    Level 22
    Zabrze
    Question about the task Set of cats
    Java Syntax, Level 8, Lesson 11
    Resolved
    Seems ok, but doesn't pass the last validationAs in the title - when I run the code in the Intellij I got two objects (of the three originally). Hopefully, if more wise eyes look into the code, the better chance to see where is the mistake :) Thank you^^
    • 11/10/20
    • 817views
    • 5comments
    0
  • Dinesh
    Level 7
    Delhi
    Under discussion
    Error actual and formal argument differ in length..public class SolEscape { public static void main(String[] args) { SolEscape solescape = new SolEscape("Dinesh"); System.out.println("This is Escape Sequence Example " + solescape); System.out.println("This is Escape Sequence Example " + solescape.toStrin
    • 11/8/20
    • 426views
    • 5comments
    0
  • Andrei
    Level 41
    Question about the task Task about algorithms
    Java Syntax, Level 8, Lesson 11
    Resolved
    Maybe I am not understanding something?For the bit of code below, won't it basically compare the same indexes (ex. array[0] with array[0]) ? It's not clear for me. public static void sort(String[] array) { //write your code here for (int i = 0; i < array.length; i++){ for (int j = i; j < array.length;
    • 11/9/20
    • 474views
    • 3comments
    0
  • Valuev Nutt
    Level 4
    Chiba
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Not sure where to goI know there's a bit of code that could be compacted
    • 11/7/20
    • 645views
    • 9comments
    0
  • Ági Kerékgyártó
    Level 7
    Budaörs
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What's wrong? Please help!What's wrong?
    • 11/9/20
    • 755views
    • 2comments
    0
  • Ian De Bie
    Level 28
    Austin
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Resolved
    What am I doing wrong?My output for "Okinawa Washington Auckland Kalamazoo Norfolk" is "Washington Norfolk Kalamazoo Okinawa Auckland".
    • 11/9/20
    • 553views
    • 2comments
    0
  • Noob_Coder
    Level 22
    Springfield
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    dk how to correct my answeridk if my idea is correct,but I really like it,if mine could be correct,plz give me the solution how to fix it,thx.
    • 11/9/20
    • 627views
    • 4comments
    0
  • Andrei
    Level 41
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Task is verified but I don't understand 2 things. Pls adviseHello, I had difficulties finishing this task because I could not wrap my head around on how to add object to various arraylists. But I checked other questions and answers to them and saw that I only need 1 array list, of children. My questions are: 1. How does the following expression work: object
    • 11/9/20
    • 1128views
    • 7comments
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    My time is down to less than 2 seconds for 100 million, still not fast enough.I don't really understand the result Guadalupe posted on Bill's question. I found a resource here: https://github.com/shamily/ArmstrongNumbers that should be fast enough but I can't understand his process either. Some guidance would be appreciated.
    • 3/18/19
    • 2380views
    • 7comments
    0
  • Youngsan
    Level 41
    Seoul
    Question about the task CashMachine (part 13)
    Java Collections, Level 9, Lesson 15
    Under discussion
    Help!Failed to initialized res field in DepositCommand, ExitCommand & InfoCommand. Additionally failed to use the appropriate resources in the execute() method in those classes.
    • 11/7/20
    • 470views
    • 3comments
    0
  • Шарох
    Level 12
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    Hi Coders! What is my wrong?
    • 11/9/20
    • 777views
    • 14comments
    0
  • Wei Cui
    Level 39
    Newark
    Question about the task Chat (part 5)
    Java Multithreading, Level 6, Lesson 15
    Under discussion
    question
    • 4/15/20
    • 1168views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Resolved
    Output is like in the questions, but apparently not good ? :( public class Solution { public static void main(String[] args) throws ParseException { System.out.println(isDateOdd("November 9 2020")); } public static boolean isDateOdd(String date) throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat("MMMMM dd yyyy"
    • 11/9/20
    • 637views
    • 4comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    Please helpMentor recommendation is: "The array returned by the getNumbers method is either missing elements or has extra elements." I pretty much used the code from this question, but corrected it for N ==0
    • 3/19/20
    • 1561views
    • 7comments
    0
  • Anitamalina
    Level 18
    København
    Question about the task Calculator
    Java Syntax, Level 6, Lesson 8
    Resolved
    Divide and percentage ?Do you know why this isn't working?
    • 11/9/20
    • 1510views
    • 6comments
    0
  • Tony Roy
    Level 41
    Victorville
    Question about the task CashMachine (part 12)
    Java Collections, Level 9, Lesson 15
    Resolved
    Straightforward task. Seems to work. Won't pass.It works for me. . . Some simple mistake?
    • 6/15/20
    • 752views
    • 1comment
    2
  • Ian De Bie
    Level 28
    Austin
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    What can I do to my code to keep it from timing out?not sure if i can pass this one, because it keeps timing out.
    • 11/6/20
    • 610views
    • 7comments
    0
  • Maria
    Level 7
    Berlin
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    I can not find the mistake!!Hello everyone, can you help me to find the mistake? I think the program is working good, but unfortunately is not validating the third condition. Thank you for your help, I really appreciate it :) Greetings, Maria :)
    • 11/8/20
    • 806views
    • 2comments
    0
  • Maryem Vickers
    Level 7
    HT...
    Question about the task Snake (Part 6/20)
    Games, Level 0, Lesson 1
    Under discussion
    Hey there can I have some help?! What's wrong, Idk how to fix this, been stuck for days.What is wrong so far?! I have tried different ways to solve this, nothing works...?!?!?!
    • 11/5/20
    • 753views
    • 3comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Under discussion
    pls help meOne condition left
    • 6/29/19
    • 1497views
    • 2comments
    0
  • Van Ha
    Level 41
    Bodegraven
    Question about the task Fork/Join
    Java Multithreading, Level 10, Lesson 6
    Resolved
    What's wrong?Both function return the same binary string, but task won't validate? Can't really tell what's wrong
    • 3/17/20
    • 924views
    • 1comment
    1
  • 1
  • ...
  • 117
  • 118
  • 119
  • 120
  • 121
  • ...
  • 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