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
  • Jeff Jeffy
    Level 15
    Irvine
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Resolved
    ConfusedIts so bad I cant attach it Error code: constructor Cat(java.lang.String,int) is already defined in class com.codegym.task.task05.task0517.Cat: Cat.java, line: 27, column: 12 Code: package com.codegym.task.task05.task0517; /* Creating cats */ public class Cat { //write your code here
    • 3/30/19
    • 1953views
    • 4comments
    0
  • Anonymous #10428383
    Level 12
    Seattle
    Question about the task How to avoid Copy+Paste
    Java Multithreading, Level 4, Lesson 6
    Under discussion
    Running encapsuletd class in intellij how to do it?E.g. I have one main class that's only calls another class method. That other class has no main method but the executed code. How can I do that in intellij? I can do it using notepad, but in intellij its compile the entire directory where my tasks are, but I just want to run that two specific cl
    • 4/3/19
    • 2058views
    • 4comments
    0
  • thithin k v
    Level 14
    Bangalore
    Question about the task Cats in the Universe
    Java Syntax, Level 4, Lesson 2
    Under discussion
    how does the programme workspackage com.codegym.task.task04.task0407; /* Cats in the Universe */ public class Solution { public static void main(String[] args) { Cat cat1 = new Cat(); Cat.count = cat1.count; //write your code here Cat cat2 = new Cat(); Cat.count = cat2.count;
    • 4/4/19
    • 1536views
    • 1comment
    0
  • Emil Olbinado
    Level 6
    Manila
    Question about the task Product of 10 numbers
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Getting this error in code analysis "Missing a Javadoc comment"I have added several comments to test but issue persist. Although not an actual error, I want to understand what actually is this, why it happened and how to resolve. TIA! Missing a Javadoc comment.: Solution.java, line: 13, column: 5
    • 4/3/19
    • 4155views
    • 7comments
    0
  • Ovo Leslie
    Level 26
    Lagos
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Help show me whats wrong!Please whats wrong with this code. It's passing all the conditions except the last one :(
    • 2/27/19
    • 1593views
    • 4comments
    0
  • Clayton
    Level 13
    Bedminster
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Not compiling public static void main(String args[]) throws NumberFormatException, IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int sum = 0; int counter = 0; while(true) { int input = Integer.parseInt(reader.readLine()); if(input == -1) break; sum
    • 4/3/19
    • 1465views
    • 5comments
    0
  • Hankster
    Level 9
    Cleveland
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    works with run, not with verify...My solution works when I use run. I get the window to input three numbers and the code executes cleanly and displays the proper output. When I try to verify, it gives an error saying no input and two errors saying that I forgot a period in the output. ??? Thanks.
    • 2/16/19
    • 1846views
    • 7comments
    0
  • corsi
    Level 4
    Furiani
    Question about the task More conversions
    Java Syntax, Level 3, Lesson 8
    Resolved
    More conversions package com.codegym.task.task01.task0131; /* More conversions */ public class Solution { public static void main(String[] args) { System.out.println(getFeetFromInches(243)); } public static int getFeetFromInches(int inches) { int getFeetFromInches = 243; re
    • 4/2/19
    • 1920views
    • 2comments
    0
  • Vani
    Level 1
    Delhi
    Question about the task I think being a programmer is cool
    Java Syntax, Level 0, Lesson 3
    Resolved
    Where am I doing wrong in this code? Please help me in this. public class Solution { public static void main(String[] args) { System.out.print("I think "); System.out.print("being a programmer "); System.out.print("is cool"); } }
    • 3/10/19
    • 1915views
    • 3comments
    0
  • Sundaram
    Level 12
    Chennai
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    It runs ok but fails on verifying. Can's see what is wrong?package com.codegym.task.task07.task0706; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Streets and houses */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReade
    • 2/4/19
    • 1366views
    • 3comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Task No. 4 about integer type conversions
    Java Syntax, Level 10, Lesson 4
    Under discussion
    What i should to do here?Could you give me other way to change int nine to char?
    • 1/26/19
    • 1598views
    • 1comment
    2
  • Thomas
    Level 12
    Gent
    Resolved
    Error: The removeAllSummerPeople() method not workingI can't find the problem. Can anyone help me with this one? public static void removeAllSummerPeople(HashMap map) { Iterator> iterator = map.entrySet().iterator(); while (iterator.hasNext()){ Map.Entry pair = iterator.next(); Date birth = pair.getValu
    • 3/27/19
    • 1075views
    • 3comments
    0
  • Rad
    Level 8
    Maidstone
    Question about the task Changing functionality
    Java Syntax, Level 7, Lesson 12
    Under discussion
    i need helpmy code is veryfied but when i execute showing as java.lang.NullPointerException: Solution.java, method main, line: 20 An attempt was made to access an uninitialized object (Null).
    • 11/13/18
    • 1529views
    • 4comments
    1
  • lordheraldor
    Level 23
    Newark
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Under discussion
    I'm a little lost as to what's wrong with my solution.Is there something I'm not taking into consideration? As far as I can tell the code should work ok.
    • 3/22/19
    • 1354views
    • 3comments
    0
  • Alex Jones
    Level 4
    Question about the task Kind words for the teacher
    Java Syntax, Level 0, Lesson 4
    Resolved
    Not sure how you can put "clever in the code while matching the displayhow do you do this task and why does the "The text should end in "clever"." show up?
    • 4/2/19
    • 1502views
    • 4comments
    0
  • jim smith
    Level 22
    Cedar Park
    Question about the task Iterating through a file tree
    Java Collections, Level 1, Lesson 2
    Archived
    Intellij plugin missing new questionsIs the IntelliJ plugin updated? I think I downloaded the updated one 3.27 but I still don't see any projects in the 2 new modules. Do I need to git pull something from somewhere I don't remember exactly if I needed to do anything else when I got this running the first time.
    • 4/2/19
    • 1357views
    • 1comment
    0
  • Emil Olbinado
    Level 6
    Manila
    Under discussion
    What is the best IDE for Beginners?Intellij vs Eclipse vs Visual Studio Code? Your opinion guys? TIA
    • 4/1/19
    • 1423views
    • 3comments
    0
  • Stephen D'Acquisto
    Level 5
    Tampa
    Question about the task Contract
    Java Syntax, Level 1, Lesson 6
    Under discussion
    For Loop?This may be skipping way far ahead for this exercise, but what would a general 'for' loop solution look like for this problem? Or would that be super impractical given that everything is technically String instead of integer values? Just curious.
    • 4/2/19
    • 1097views
    • 1comment
    0
  • Zbigniew
    Level 23
    Dabrowa Tarnowska
    Question about the task Reinforce the adapter
    Java Core, Level 9, Lesson 3
    Resolved
    Correct output but it doesn't pass verificationI've tested my getDialString method for the phone numbers from examples and it shows correct output, but it doesn't pass the verification. The recommendation from mentor is: " The getDialString() method should return a String containing "callto://+" and a phone number with all characters removed ex
    • 3/27/19
    • 2279views
    • 5comments
    0
  • Ahmed Mayan
    Level 4
    New York City
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    How to do the code right? I got every task right except the last requirement.package com.codegym.task.task03.task0314; /* Multiplication table */ public class Solution { public static void main(String[] args) { System.out.println("1 2 3 4 5 6 7 8 9 10"); System.out.println("2 4 6 8 10 12 14 16 18 20"); System.out.println("3 6 9 12 15 18 21 24 27
    • 4/1/19
    • 1559views
    • 1comment
    0
  • Alexandr Golikov
    Level 5
    Podol'sk
    Under discussion
    Idea capabilityPlease add a capability of plugin to IntelliJ IDEA 2019
    • 3/31/19
    • 1238views
    • 2comments
    1
  • sean
    Level 8
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    Alternative ideaHi, Although I figured it out with the simple logic of how many digits are in a specific number range. I initially thought that we could solve this by dividing the stream by 10 and storing it in a variable which should represent the amount of digits, we should then be able to use this to check the
    • 4/1/19
    • 1277views
    • 1comment
    0
  • Paweł
    Level 15
    Gromnik
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    Something wrong. Help!package com.codegym.task.task05.task0507; /* Arithmetic mean */ import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //BufferedReader bu = new BufferedReader(new I
    • 3/30/19
    • 1417views
    • 2comments
    2
  • Nina
    Level 3
    Melbourne
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    calling in main methodI failed. I tried much but I can not do it as I don't know how to call somtehing in main method and .. please show me how to do it. I can not find any similar example in the material. There was a similar task before this one that I failed it as well. Thanks this is my solution: package com.codegym.t
    • 3/31/19
    • 2177views
    • 2comments
    0
  • Jeremiah Samuel Krakowski
    Level 17
    Austin, TX
    Question about the task Default values
    Java Core, Level 5, Lesson 9
    Under discussion
    Code runs perfectly, but does not pass!My code does what is asked, but is not passing for some reason.
    • 3/31/19
    • 1569views
    • 2comments
    0
  • Khurram
    Level 16
    Lahore
    Question about the task Minimum and Maximum
    Java Core, Level 1, Lesson 11
    Under discussion
    Please HelpThe code seems to be working fine, but the verification system is not accepting the solution: Don't change the main - I haven't The program must return the correct result - It does :\
    • 9/22/18
    • 2224views
    • 16comments
    0
  • Wilder
    Level 4
    Alajuela
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    whats wrong with my code ??? :(
    • 3/30/19
    • 1486views
    • 3comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Under discussion
    What is wrong?Output seems to be good
    • 3/28/19
    • 1787views
    • 12comments
    0
  • Iasu
    Level 18
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    System.arraycopy() method dosent work in these one maybe? In IntelliJ, it's running fine, but here it doesn't work! Am I missing something here..?
    • 2/10/19
    • 1660views
    • 2comments
    0
  • Chitransh Derashri
    Level 1
    Noida
    Question about the task No comments needed
    Java Syntax, Level 0, Lesson 8
    Under discussion
    the last condition is not fulfilled in any case. how to solve this question.
    • 10/25/18
    • 1552views
    • 4comments
    0
  • 1
  • ...
  • 336
  • 337
  • 338
  • 339
  • 340
  • ...
  • 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