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
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Whats wrong in here ?What is the problem here ?
    • 23.12.2018
    • 1452views
    • 2comments
    0
  • Sabine Meijran-Prins
    Level 7
    Enschede
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Resolved
    Stuggling with ModuloGoodmorning, good evening and goodnight all :) I am struggling with the modulo-exercise. Lets take this as an example: year%400==0 If we fill in the year 1900 then the remainder is 300. 1) Does the above code then mean 300 is true or does it mean 300 is equal to 0? 2) if the remainder is indeed
    • 22.12.2018
    • 1628views
    • 3comments
    0
  • Michael Castillo
    Level 3
    Bundoc
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Resolved
    What is wrong with my code ? , I've tried several solutions to came with the right output "2 plus 3 is equal to 5" (without the double quote). yet still the same error occur " Don't change or add commands responsible for output. You can comment them out." package com.codegym.task.task01.task0108; /* 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 ");*
    • 18.11.2018
    • 1767views
    • 6comments
    0
  • Sabine Meijran-Prins
    Level 7
    Enschede
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Resolved
    In the compiler this is working, so I do no know why I am getting this errorI do not know why Codegym is getting errors, because it just works into the compiler..
    • 21.12.2018
    • 1406views
    • 3comments
    0
  • Sindhura
    Level 15
    Delhi
    Question about the task HashMap of Objects
    Java Syntax, Level 8, Lesson 3
    Under discussion
    How to transverse through objectspackage com.codegym.task.task08.task0806; import java.util.HashMap; import java.util.Map; /* HashMap of Objects */ public class Solution { public static void main(String[] args) throws Exception { HashMap map = new HashMap(); map.put("Sim", 5); map.put("Tom", 5.5);
    • 04.10.2018
    • 2286views
    • 5comments
    0
  • Swati
    Level 8
    Pune
    Question about the task Remove and insert
    Java Syntax, Level 7, Lesson 6
    Resolved
    Please help to figure out problem.Prgram runs successfully,but verification fails.
    • 21.12.2018
    • 1620views
    • 3comments
    0
  • Robert Ebafua
    Level 4
    Lagos
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Hi Guys I don't know what else to do. I just noticed there is no minimum on line 3 and 4I am lost. I just noticed line 23 and 24 have no minimum value. Please what can I do?
    • 20.12.2018
    • 1192views
    • 4comments
    0
  • Abhishek Rangari
    Level 22
    Nagpur
    Question about the task Adapting multiple interfaces
    Java Core, Level 9, Lesson 3
    Under discussion
    am I really missing something ?I dont know why task is not getting verified even after getting the correct value from methods.. Can anyone help me in this task ?
    • 21.12.2018
    • 1532views
    • 1comment
    0
  • Vishwambhar Awagan
    Level 8
    Pune
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Resolved
    Whats wrong in it I am not getting ?getting an error in the after verifying
    • 01.10.2018
    • 1790views
    • 5comments
    0
  • Prateek Mishra
    Level 8
    Bhopal
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    My code works flawlessly, still its not passing!My code is not not satisfying any conditions, i don't know why? Please help!
    • 21.12.2018
    • 1261views
    • 4comments
    0
  • Md Bilal
    Level 7
    Lucknow
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    why conditions are not getting fulfilled?public class Solution { public static void main(String[] args) throws Exception { //write your code here int[] a = new int[15]; int sum1=0; int sum2=0; BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); for(int i=0;i<1
    • 17.10.2018
    • 1529views
    • 5comments
    0
  • Djordje
    Level 19
    Question about the task Spaces
    Java Core, Level 8, Lesson 11
    Under discussion
    What am I doing wrong? Thanks.public class Solution { public static void main(String[] args) { try{FileInputStream stream = new FileInputStream(args[0]); int n1 = 0; int n2 = 0; int a; while (stream.available() > 0) { a =stream.read(); n1 += a; Strin
    • 12.12.2018
    • 1717views
    • 6comments
    0
  • Hankster
    Level 9
    Cleveland
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    public Woman wife;I managed to get the solution right, but there are things about the code I don't understand. For example, the line: public Woman wife; Is that simply declaring a new variable of type Woman? If so, could this and the code from the solution be combined as: public Woman wife = woman; ? And
    • 05.12.2018
    • 1431views
    • 2comments
    1
  • hidden #10366080
    Level 5
    Resolved
    its not clearing the last condition Scanner scanner = new Scanner(System.in); String name = scanner.nextLine(); int age = scanner.nextInt(); System.out.println(name + " will conquer the world in " + age + " years. Mwa-ha-ha!"); The displayed text must fully match the task conditions. RECOMMENDAT
    • 31.10.2018
    • 1138views
    • 13comments
    0
  • 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.
    • 13.12.2018
    • 1424views
    • 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???
    • 19.12.2018
    • 1390views
    • 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()
    • 21.08.2018
    • 3178views
    • 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 ((
    • 27.11.2018
    • 1397views
    • 3comments
    0
  • Raisa Toscano
    Level 22
    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...
    • 10.12.2018
    • 1721views
    • 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.
    • 17.12.2018
    • 1433views
    • 3comments
    0
  • Raisa Toscano
    Level 22
    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
    • 17.12.2018
    • 1760views
    • 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
    • 14.11.2018
    • 1459views
    • 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?
    • 17.12.2018
    • 1475views
    • 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..
    • 16.12.2018
    • 1947views
    • 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
    • 16.12.2018
    • 1472views
    • 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 ........
    • 13.12.2018
    • 1598views
    • 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"; }
    • 17.12.2018
    • 2469views
    • 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
    • 16.12.2018
    • 1972views
    • 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.
    • 13.12.2018
    • 1553views
    • 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
    • 24.11.2018
    • 1660views
    • 8comments
    0
  • 1
  • ...
  • 352
  • 353
  • 354
  • 355
  • 356
  • ...
  • 371
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 © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym