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
  • Dipali
    Level 1
    Mumbai
    Question about the task Amigo is very smart
    Java Syntax, Level 0, Lesson 2
    Under discussion
    Errors in simple java pgm on Codegym editorI just went through first level and wrote below program as requested : import java.io.*; public class Solution { public static void main(String[] args) { System.out.println("Amigo is very smart"); } } This program worked on my local system not on this site. Can anybody please explain what
    • 12/9/18
    • 1860views
    • 4comments
    0
  • Solanki Dhruv
    Level 18
    Surat
    Question about the task File in a static block
    Java Core, Level 5, Lesson 12
    Resolved
    What is the problem??
    • 12/12/18
    • 1823views
    • 4comments
    0
  • Janusz
    Level 11
    Radomsko
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    What I have to do?What does it mean "You must initialize an existing string field with a new ArrayList."?
    • 12/7/18
    • 1822views
    • 2comments
    0
  • Kennon
    Level 9
    Seattle
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Resolved
    Having issues with this taskI can make this code "work" but not verify. The verification says to make sure it calculates everything properly. I have tried many different versions of this task and I am not getting what I am missing. Any help would be appreciated. Thank You.
    • 12/8/18
    • 2375views
    • 4comments
    0
  • Justin Case
    Level 11
    Cork
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Resolved
    This is working fine in IntelliJ but gets flagged on the create 2 small arrays... How come? public static void main(String[] args) throws Exception { //write your code here int[] big = new int[20]; BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String s; for (int i = 0; i<20 ; i++){ s = r.readLine();
    • 12/12/18
    • 1704views
    • 2comments
    0
  • ann
    Level 4
    Dusseldorf
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    My code compiles, but doesn`t fulfill the last conditionI have used BufferedReader and I have written a code, whose output doesn`t match the code. I need to somehow assign a value to name and y, even though it´s supposed to be read from the keyboard. Can anyone help?
    • 12/3/18
    • 1913views
    • 5comments
    0
  • Swati
    Level 8
    Pune
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    I dont understand about parentHere parent means either mother/father..we can use that constructor like this.but giving compilation error as "cannot find symbol parent".can anyone explain plz.. My code as: public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new
    • 12/8/18
    • 1402views
    • 2comments
    0
  • Xubres
    Level 16
    Uranus
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    Why is this not working? It works if I don't add the ==0 condition, but as soon as I add it, when the number is negative or zero it loops more than 3 times??? package com.codegym.task.task04.task0429; /* Positive and negative numbers */ import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner scanner = new Scanner(System.in); int count = 0; int c
    • 12/9/18
    • 1590views
    • 5comments
    0
  • Swati
    Level 8
    Pune
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Giving Compilation error,I checked but not able to catch errorCompliation errror as - com/codegym/task/task06/task0621/Solution.java:75: error: missing return statement } public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    • 12/10/18
    • 1351views
    • 1comment
    0
  • Eric Patridge
    Level 4
    New Rochelle
    Question about the task Red scare
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Requirement 3 is incorrect.According to the verification: The year must consist of four digits and be at least 1900. The year must consist of four digits and be GREATER than 1900.
    • 12/9/18
    • 1703views
    • 3comments
    0
  • Benjamin Winchester
    Level 17
    Savannah
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Under discussion
    Correct Output, Not Validating (Repost 2)Another repost so current code can be seen.
    • 12/4/18
    • 1851views
    • 7comments
    0
  • Thango Ö
    Level 9
    Chennai
    Question about the task A name is a name
    Java Syntax, Level 4, Lesson 16
    Under discussion
    I dono what wrong on it..help me H
    • 12/8/18
    • 1505views
    • 2comments
    0
  • Vignesh Vickey
    Level 2
    Coimbatore
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    Calling function
    • 12/4/18
    • 1301views
    • 2comments
    0
  • Solanki Dhruv
    Level 18
    Surat
    Question about the task User, loser, coder and programmer
    Java Core, Level 4, Lesson 8
    Resolved
    Where is the problem??
    • 12/7/18
    • 1884views
    • 2comments
    0
  • Dedcom
    Level 19
    Lahore
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    whats the problem here?i cant find the error
    • 12/4/18
    • 2265views
    • 11comments
    0
  • ann
    Level 4
    Dusseldorf
    Question about the task Cat register
    Java Syntax, Level 4, Lesson 2
    Resolved
    Can I create a new object and then increase its value by 1?I have tried before using this, but I had the error, that I can't reference a non-static variable from a static context. package com.codegym.task.task04.task0404; /* Cat register */ public class Cat { private static int catCount = 0; public static void addNewCat() { //write you
    • 12/7/18
    • 2241views
    • 3comments
    0
  • Djordje
    Level 19
    Question about the task Static modifiers: part 2
    Java Core, Level 5, Lesson 9
    Resolved
    code is working, i can't see what is wrong with condition 4.package com.codegym.task.task15.task1515; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Static modifiers: part 2 */ public class Solution { public static int A; public static int B; public static int MIN; static {
    • 12/6/18
    • 1932views
    • 2comments
    0
  • Hafsah Jilanee
    Level 10
    Karachi
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    "The min method must return the minimum of the numbers a, b, and c." error is shown...someone please helpI keep getting an error "The min method must return the minimum of the numbers a, b, and c."
    • 12/1/18
    • 1678views
    • 2comments
    0
  • Aaron
    Level 2
    Germantown
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Under discussion
    DeclarationsSo my questions are listed below: 1. Why do we declare the ConvertCelsiusToFahrenheit method in the class first and not just declare it in the method. 2. Why do do we need to declare celsius to a double in the code, double TF=(double)((celsius)*9.0/5.0)+ 32;, when we have already declared it as a
    • 12/6/18
    • 1607views
    • 2comments
    0
  • Ana Georgievska
    Level 2
    Skopje
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    Can someone help pls, what is wrong...
    • 11/4/18
    • 2011views
    • 6comments
    0
  • Hankster
    Level 9
    Cleveland
    Under discussion
    How do I show both Conditions window and Solution window side by side when completing tasks?How do I show both Conditions window and Solution window side by side when completing tasks? I have seen others with this view but can't figure out how to do it. thanks
    • 12/6/18
    • 1553views
    • 2comments
    0
  • Martin Evtimov
    Level 22
    Chicago
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Resolved
    I'm missing somethingHi guys, Program works just fine but I'm not doing the task right, any hints?
    • 9/12/18
    • 1938views
    • 3comments
    0
  • deekshit kurnutala
    Level 7
    Mumbai
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    meaning of the codeexplain me the meaning of the code
    • 12/4/18
    • 1584views
    • 1comment
    0
  • Abhishek Rangari
    Level 22
    Nagpur
    Question about the task Following a pattern
    Java Core, Level 6, Lesson 13
    Resolved
    why it is running infinite ?In run mode it is working as expected but while verifying it is running infinite. Please can anyone help me on this.
    • 12/4/18
    • 2010views
    • 5comments
    0
  • Collin M
    Level 22
    Germiston
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Resolved
    What is wrong in this code?Can anyone see what is wrong in this code? I tried different implementations without any success so i guess there's something wrong i just can't see or understand. Please help!
    • 8/12/18
    • 2547views
    • 9comments
    0
  • imran khan
    Level 6
    islamabad
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    can anyone help whats wrong with this code Help plz
    • 10/4/18
    • 1649views
    • 4comments
    0
  • Jaisingh
    Level 14
    Hyderabad
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    what is a trianle with the specified side, i did not get that, please any body explain me that with the example
    • 9/15/18
    • 1945views
    • 5comments
    0
  • deekshit kurnutala
    Level 7
    Mumbai
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    can you help me how the output exactly looks ?can you help me how the output exactly looks ?
    • 12/4/18
    • 1879views
    • 2comments
    0
  • Juan Gallardo
    Level 10
    Edmonton
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Resolved
    There's an error in the instructionsThe description says to match the house number to the right family living in it, but the example shows the city that the house is in. The solution is to use a Map, but it's not clear whether it should be an map or
    • 12/4/18
    • 1541views
    • 1comment
    0
  • Sowmya
    Level 3
    San Jose
    Under discussion
    What's wrong with my codepackage com.codegym.task.task01.task0132; /* Sum of the digits of a three-digit number */ public class Solution { public static void main(String[] args) { System.out.println(sumDigitsInNumber(546)); } public static int sumDigitsInNumber(int number) { //write your cod
    • 11/30/18
    • 1611views
    • 2comments
    0
  • 1
  • ...
  • 356
  • 357
  • 358
  • 359
  • 360
  • ...
  • 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