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
  • Jyothi
    Level 20
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    task05.task0507 - Arithmetic meantask05.task0507 - Arithmetic mean This hangs. please advise.
    • 12/13/18
    • 1576views
    • 1comment
    0
  • Meghana
    Level 4
    Bangalore
    Under discussion
    Regarding next lessonHi, I try to complete all tasks and it says completed but when I need to move to next lesson, I loose points. How can I move to next lesson without loosing points???
    • 12/19/18
    • 1535views
    • 1comment
    0
  • SAYAN SAMANTA
    Level 10
    Bangalore
    Question about the task Static cats
    Java Syntax, Level 6, Lesson 11
    Archived
    how to use the ArrayList variable? package com.codegym.task.task06.task0614; import java.util.ArrayList; /* Static cats */ public class Cat { public static ArrayList<Integer> cats; public Cat() { } public static void main(String[] args) { for(int i=0;i<10;i++){ Cat cat = new Cat()
    • 8/21/18
    • 3324views
    • 4comments
    0
  • Mariam
    Level 3
    Argavand
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    minimum of three numbers: what's wrong?Hi guys, Please help! What's wrong in this piece of code? public class Solution { public static int min(int a, int b, int c) { //write your code here if ((a < b) and (a < c)) return a; else if ((b < a) and (b < c)) return b; else if ((
    • 11/27/18
    • 1525views
    • 3comments
    0
  • Raisa Toscano
    Level 27
    Tepic
    Question about the task Red scare
    Java Syntax, Level 3, Lesson 4
    Resolved
    any hint?there are spaces but it still ask me to introduce them...
    • 12/10/18
    • 1885views
    • 2comments
    0
  • Korab Cenaj
    Level 2
    Wroclaw
    Question about the task Contract
    Java Syntax, Level 1, Lesson 6
    Under discussion
    What's wrong?Can't seem to find the problem.
    • 12/17/18
    • 1678views
    • 3comments
    0
  • Raisa Toscano
    Level 27
    Tepic
    Question about the task 18+
    Java Syntax, Level 4, Lesson 6
    Resolved
    whats wrong here?it runs ok on neatbeans but here didnt pass the test
    • 12/17/18
    • 1927views
    • 3comments
    0
  • Saint-Paul
    Level 4
    Columbus
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Under discussion
    Can someone help me on what is wrong in my code? /* 2 + 3 = 5 */ public class Solution { public static void main(String[] args) { int a = 3, b = 2; //System.out.print("two"); System.out.print(b); System.out.print(" plus "); //System.out.print(" minus "); System.out.print(a); //System
    • 11/14/18
    • 1613views
    • 4comments
    4
  • Mom Meme
    Level 19
    Boston
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    I keep getting Null Pointer Exception.I keep getting Null Pointer Exception. What am I doing wrong?
    • 12/17/18
    • 1642views
    • 2comments
    0
  • Abhishek Rangari
    Level 22
    Nagpur
    Question about the task Transactionality
    Java Core, Level 7, Lesson 10
    Resolved
    can anyone help me in this taskCondition is not satisfying..
    • 12/16/18
    • 2102views
    • 2comments
    0
  • Juan Gallardo
    Level 10
    Edmonton
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Let's add my solution to the list of solutions that don't meet the third requirement
    • 12/16/18
    • 1601views
    • 2comments
    0
  • Suhas Digambare
    Level 7
    Kolhapur
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Whats wrong i did here .... ?When i run program works correctly but.........can't verify.............. Plz help me out this ........
    • 12/13/18
    • 1728views
    • 6comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Please show the waypackage com.codegym.task.task05.task0517; /* Creating cats */ public class Cat { String name, address, color; int weight, age; public Cat(String name) { this.name = "Bob"; this.age = 4; this.weight = 8; this.color = "Amber"; }
    • 12/17/18
    • 2675views
    • 4comments
    0
  • Jyothi
    Level 20
    Question about the task Reading a file
    Java Core, Level 3, Lesson 11
    Archived
    task13.task1318 - Reading a fileissue with closing resources. Please advise
    • 12/16/18
    • 2109views
    • 2comments
    0
  • Alec Castillo
    Level 4
    New Orleans
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    How to program the Boolean statement, getting errorI keep getting errors with my Boolean statement to affirm whether it is a triangle or not, please help with the formatting.
    • 12/13/18
    • 1723views
    • 4comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Please tell me where should I rectify ?package com.codegym.task.task04.task0420; /* Sorting three numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num1 = Integer.par
    • 11/24/18
    • 1861views
    • 8comments
    0
  • Hankster
    Level 9
    Cleveland
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    what's wrong?I get correct answers for all but first set, which gives me min of 3 instead of min of 1.
    • 12/15/18
    • 1570views
    • 1comment
    0
  • syed jhangir
    Level 2
    Hyderabad
    Question about the task A few more corrections
    Java Syntax, Level 1, Lesson 4
    Under discussion
    I unable to get output please cross check itpublic class Solution { public static void main(String[] args) { String s1 = "Coding"; String s2 = "in"; String s3 = "Java."; System.out.println(s1 + " " + s2 + " " + s3); } }
    • 12/1/18
    • 1794views
    • 4comments
    0
  • Iasu
    Level 18
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    Why am I getting 1.0 in mean for 1,2,2,4,5 I'm really stuck on this one. I'have tried many different solutions without any luck... Please help me on this one my fellow CodeGymnasts
    • 12/14/18
    • 2101views
    • 7comments
    0
  • Vignesh Vickey
    Level 2
    Coimbatore
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    Help me
    • 12/13/18
    • 1401views
    • 3comments
    0
  • 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
    • 1836views
    • 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
    • 1809views
    • 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
    • 1806views
    • 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
    • 2340views
    • 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
    • 1673views
    • 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
    • 1853views
    • 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
    • 1384views
    • 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
    • 1577views
    • 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
    • 1335views
    • 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
    • 1686views
    • 3comments
    0
  • 1
  • ...
  • 355
  • 356
  • 357
  • 358
  • 359
  • ...
  • 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