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
  • Stephen Haokip
    Level 8
    imphal
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    guys plis help mei cannot go further than this last two conditions are not met
    • 6/15/20
    • 502views
    • 3comments
    0
  • Stephen Haokip
    Level 8
    imphal
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    now only the last conditionis left plis i need some guidance
    • 6/15/20
    • 584views
    • 2comments
    0
  • sagar
    Level 7
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Can anyone help me with this?I am stuck at "where does a person come from". please help understand this.
    • 6/16/20
    • 631views
    • 2comments
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Getters and setters for the Dog class
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Class doesn't recognize my setter'sFor some reason when I run this code it comes back with class must have setter for age and name. I do have those methods in my class, but I'm unsure as why this isn't passing. Thank you for the help.
    • 6/16/20
    • 671views
    • 3comments
    0
  • Brandon Leirer
    Level 7
    Keller
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Resolved
    help me identify my knowledge gap here please --- can't find symbol cat1package com.codegym.task.task05.task0502; /* Implement the fight method */ public class Cat { public int age; public int weight; public int strength; public Cat() { } public boolean fight(Cat anotherCat) { //write your code here int cp = 0; if ((
    • 6/1/20
    • 1051views
    • 1comment
    0
  • Brandon Leirer
    Level 7
    Keller
    Question about the task The Three "Muscateers"
    Java Syntax, Level 5, Lesson 5
    Resolved
    how would you describe: public Cat (String name, int age, int weight, int strength) { ?I have been looking at it and it seems to be a method called 'Cat()', that is used to assign all of the data it defined into the Cat class's private instance variables. If that assumption is correct, isn't this essentially just a set() method? Why isn't the name formatted like setCat(String name, i
    • 6/2/20
    • 940views
    • 2comments
    0
  • Catherine
    Level 23
    London
    Question about the task Census
    Java Syntax, Level 8, Lesson 8
    Under discussion
    The third condition won't verify.I have gone over it several times and compared the code with other's but I cannot see why the third condition won't verify. Please help.
    • 6/11/20
    • 679views
    • 2comments
    0
  • Sayed Ali
    Level 13
    Madinat 'Isa
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Resolved
    Why the last requirement is wrong?The last condition is not met, why is that?
    • 6/16/20
    • 1194views
    • 2comments
    0
  • Stephen Haokip
    Level 8
    imphal
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    hello... guys the code works well for negative numbers as wellif u don believe you can copy my code and try it yourself but the second last condition is not satisfied. any help and suggestion is welcome ...
    • 6/11/20
    • 802views
    • 1comment
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    PrintLn is correct but gets an error in assigned tasksI'm not sure why this isn't passing the tasks. When you enter a number it prints out the correct color. But the error says it's not printing out the color. But in the output window it does print it. Thank you for the help
    • 6/9/20
    • 667views
    • 6comments
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    Final condition errorsI'm not sure why the final condition errors. I have if a is less than 1 OR greater than 999 do nothing. It should work. Please tell me what I'm doing wrong. Thank you
    • 6/15/20
    • 632views
    • 2comments
    0
  • Arko Sarkar
    Level 8
    Mumbai
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Under discussion
    What does this error mean?com/codegym/task/task05/task0517/Cat.java:14: error: cannot reference weight before supertype constructor has been called this(weight, color); ^ com/codegym/task/task05/task0517/Cat.java:14: error: cannot reference color before supertype constructor has been called this(
    • 8/28/18
    • 2947views
    • 4comments
    0
  • Edddieg
    Level 15
    Providence
    Question about the task Improving functionality
    Java Syntax, Level 5, Lesson 12
    Under discussion
    please help please please
    • 6/16/20
    • 489views
    • 1comment
    0
  • Lama Abdullah
    Level 8
    Riyadh
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Under discussion
    what is wrong with my solution ??import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //write your code here int pcount = 0; int ncount = 0; Scanner input = new Scanner(System.in); int a = input.nextInt(); in
    • 5/31/20
    • 839views
    • 1comment
    0
  • Gzzui892
    Level 6
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    My code runs perfectly on my Notepad++ (executing it from the command line)... But it doesn't work here at all... Any thoughts?a
    • 6/15/20
    • 708views
    • 11comments
    0
  • John
    Level 9
    Oswestry
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    My solution wont validate the last task but works in IJ, please help!Hello there, my solution works in IJ but does not get validated on here. Please could someone let me know what is wrong with my solution? Many thanks.
    • 6/15/20
    • 893views
    • 3comments
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Triangle of eights
    Java Syntax, Level 4, Lesson 13
    Under discussion
    Why isn't this passing verification?I've checked my code and the output is exactly as the tasks requires but I'm still getting an error saying it's not displaying the 8's correctly. Your help is appreciated.
    • 6/15/20
    • 786views
    • 3comments
    0
  • David
    Level 26
    Bucharest
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    Please help!! One condition doesn't satisfyI dont understand were I am wrong in writing in the second file
    • 6/15/20
    • 765views
    • 5comments
    0
  • Jeremi Nuer
    Level 7
    San Francisco
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    I can't get the medium numberI have defined the largest and smallest, but I can't seem to define the medium number. Is there some aspect/possibility that I am not accounting for in my code? thx
    • 6/15/20
    • 595views
    • 2comments
    0
  • Oliver Heintz
    Level 18
    Mustang
    Question about the task Words in reverse
    Java Syntax, Level 7, Lesson 9
    Resolved
    Program works in Intellij, it runs on the website, times out on bothMy program runs exactly as expected. It runs fine on Intellij, but when I go to submit it for verification, it times out every time. So I ran it here, on this website, and it, again, runs just fine. I submit it for verification, and it says I have an infinite loop. ???? What the heck is going
    • 6/13/20
    • 775views
    • 4comments
    0
  • Gajula Dinesh
    Level 2
    Pondicherry
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    where did I wrong? where did I mistake will u please tell me?
    • 6/15/20
    • 556views
    • 2comments
    0
  • Onome Brownly-Otiede
    Level 9
    Galway
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Under discussion
    egegtgwrheth#hyhetjet dont no wat to doo pls hep
    • 6/6/20
    • 755views
    • 1comment
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Resolved
    What am I doing wrong? - The displayed text must match the task conditions.I checked spacing and everything. Copied and pasted the text straight from the conditions.
    • 1/15/19
    • 2016views
    • 3comments
    3
  • HaeWon Chung
    Level 17
    Boston
    Question about the task The early bird gets the worm
    Java Core, Level 6, Lesson 13
    Under discussion
    Why does it assign the value only to one random thread?I'm intentionally left out first line of the run method not to violate the rule to post complete solution. t is currentThread. When I run this code, I found that all the inputs are stored only one of the thread instead of being randomly distributed - that's what I thought after reading the code. Cou
    • 6/14/20
    • 707views
    • 1comment
    0
  • John
    Level 27
    Washington DC
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    Getting error "make sure no exceptions occur for any input data"I can't any possible exceptions.
    • 5/1/20
    • 1201views
    • 4comments
    0
  • Angus McDonald
    Level 5
    Sydney
    Question about the task Symbol frequency
    Java Core, Level 8, Lesson 11
    Resolved
    Output seems fine .. not sure what's wrong.. maybe I'm interpreting the question incorrectly?I've added and removed the FOR loop printing the result to include/exclude an if statement.. neither pass even though the output is correct. EG: Below vs what's in my solution. for (Map.Entry entry : frequencyMap.entrySet()) { if (entry.getValue() != 0) { String str =
    • 6/12/20
    • 689views
    • 2comments
    0
  • Faisal Ahmed
    Level 13
    Bangalore
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Everything is correct,but it showing wrong outputpublic class Solution {
    • 6/13/20
    • 973views
    • 4comments
    0
  • Otabek Shavkatov
    Level 6
    New York City
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Under discussion
    Idk what is wrong Idk what is wrong
    • 6/15/20
    • 557views
    • 1comment
    0
  • I.A
    Level 7
    unknown city
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    what issue with green
    • 11/27/18
    • 2048views
    • 7comments
    0
  • past cham
    Level 6
    Delhi
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Resolved
    how to slovehelp
    • 3/27/19
    • 3028views
    • 12comments
    0
  • 1
  • ...
  • 181
  • 182
  • 183
  • 184
  • 185
  • ...
  • 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