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
  • Rafia Rahman Chowdhury
    Level 3
    Chittagong
    Question about the task One cat isn't enough
    Java Syntax, Level 2, Lesson 3
    Under discussion
    Can anybody define "instance" as stated in "Store each instance in its own variable." in simple words ?package com.codegym.task.task02.task0208; /* One cat isn't enough */ public class Solution { public static void main(String[] args) { //write your code here Cat bella = new Cat(); Cat bimbim = new Cat(); } public static class Cat { } }
    • 13.06.2019
    • 1238views
    • 2comments
    0
  • James Archbold
    Level 5
    Cartagena
    Question about the task Come on, lucky seven!
    Java Syntax, Level 4, Lesson 4
    Resolved
    Why can't I use the method System.out.format()? I understand that we have only seen the println() and print() methods, but why can't we use the format() method? It is easier to format strings, and the output would be the same as using println(" " + " ").
    • 29.03.2019
    • 2153views
    • 5comments
    1
  • John Michael Montuya
    Level 10
    Cebu City
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    Need tips for the correct algorithm :(Ok, so it looks like my brain's processing power can only amount to this much. My code runs but it can only accurately calculate the first instance or occurrence of numbers in sequence e.g 1234556789 but will go very wrong when another set of number sequence show up on the list. I know I'm missing a
    • 13.06.2019
    • 1400views
    • 1comment
    0
  • smile
    Level 7
    Tainan
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Resolved
    incompatible types: int cannot be converted to boolean.What's the difference between "=" and "=="?
    • 08.06.2019
    • 4849views
    • 3comments
    0
  • Павел Артеменко
    Level 41
    Krasnodar
    Question about the task Words with numbers
    Java Core, Level 9, Lesson 11
    Resolved
    Suggestions how to pass?Tested ok with sequences: 1n n1 1n1 n1n But somehow requirements does not met (
    • 27.04.2019
    • 1315views
    • 2comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    What am i missing?What am i missing?
    • 05.06.2019
    • 1571views
    • 7comments
    0
  • Shk1pper
    Level 4
    Sankt-Peterburg
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Under discussion
    WHY NOT?Than I running this work....
    • 12.06.2019
    • 1668views
    • 2comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the task Time for 10,000 get calls
    Java Syntax, Level 8, Lesson 6
    Resolved
    I get calculations, but I get a validation errorI get calculations, but I get a validation error package com.codegym.task.task08.task0809; import java.util.ArrayList; import java.util.Date; import java.util.LinkedList; import java.util.List; public class Solution { public static void main(String[] args) { System.out.println(getIns
    • 13.06.2019
    • 1866views
    • 2comments
    0
  • SATHISHKUMAR PALANISAMY
    Level 4
    Coimbatore
    Question about the task Crazy eights
    Java Syntax, Level 2, Lesson 5
    Under discussion
    You have declared too few variablesI am getting You have declared too few variables error. Please help?
    • 10.06.2019
    • 1330views
    • 3comments
    0
  • Cinthya Cabanzo
    Level 22
    Bogota
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Under discussion
    Runs perfect but dont acomplish the verificationRuns perfect but dont acomplish the verification
    • 12.06.2019
    • 1194views
    • 1comment
    0
  • Merle Cato
    Level 4
    New York City
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    i need help with my code, do not know what is wrong with it.package com.codegym.task.task04.task0412; /* Positive and negative numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(Sy
    • 16.01.2019
    • 1426views
    • 3comments
    0
  • gery
    Level 9
    Islamabad
    Question about the task HashMap of cats
    Java Syntax, Level 8, Lesson 3
    Resolved
    hashmap correction at line 17 public static void main(String[] args) throws Exception { String[] cats = new String[]{"Tiger", "Missy", "Smokey", "Marmalade", "Oscar", "Snowball", "Boss", "Smudge", "Max", "Simba"}; HashMap map = addCatsToMap(cats); for (Map.Entry pair : map.entrySet()) { Sys
    • 27.09.2018
    • 2580views
    • 8comments
    0
  • Mark Harold Atabelo
    Level 3
    Tagbilaran
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    WTF is wrong with this program cant enter name. package com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String
    • 22.08.2018
    • 1843views
    • 5comments
    0
  • Abhishek
    Level 3
    Pune
    Question about the task Sam I Am
    Java Syntax, Level 3, Lesson 6
    Under discussion
    What Combination is left?package com.codegym.task.task03.task0313; /* Sam I Am */ public class Solution { public static void main(String[] args) { //write your code here String s="Say"; String t="I"; String u="Am"; System.out.println(s+t+u); System.out.printl
    • 08.10.2018
    • 2038views
    • 4comments
    0
  • Ed Maphis
    Level 20
    Painesville
    Question about the task Stopwatch
    Java Core, Level 6, Lesson 7
    Resolved
    So why is this code failing?Uhhm. Ok. So why is this code failing?
    • 11.06.2019
    • 1455views
    • 3comments
    0
  • Durmus Gulbahar
    Level 22
    Antalya
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Resolved
    Everything is okay but displayi can't understand what happened but i did part of sort , then i can't display why did it wrong ??
    • 12.06.2019
    • 1424views
    • 4comments
    0
  • Berkson
    Level 17
    Fortaleza
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Resolved
    Only gives the error: The displayed text does not correspond to the task conditions.Gives the error: The displayed text does not correspond to the task conditions. But if you try, the answer is correct! Can someone help me? package com.codegym.task.task03.task0319; /* Predictions */ import java.io.BufferedReader; import java.io.InputStreamReader; public class Solution { p
    • 02.05.2019
    • 1649views
    • 6comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the task HashMap of Objects
    Java Syntax, Level 8, Lesson 3
    Resolved
    What is the problem?Displays on the screen correctly. But does not pass the test What is the problem? package 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 { H
    • 12.06.2019
    • 1722views
    • 6comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    Help Needed :)I have tried a else{ four.add(a);} in line 38 but i am not achieving the goal.. What am i missing?
    • 12.06.2019
    • 1199views
    • 1comment
    0
  • smile
    Level 7
    Tainan
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Resolved
    What's wrong with my code?I run my code, and it seems nothing wrong, but I still failed. It says, "Be sure that you have displayed the correct number of rows." Why?
    • 12.06.2019
    • 1542views
    • 2comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Rip my sanityI don't understand why not work. If I don't put "else { return null; }" at the end I get missing return statement error.
    • 27.05.2019
    • 1554views
    • 3comments
    1
  • Nikitha J
    Level 3
    Chikmagalur
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    how to solve print methodhow to solve it
    • 12.06.2019
    • 1226views
    • 1comment
    0
  • Andrei Stratu
    Level 18
    Iasi
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Desired output but not correct answerHello, I implemented the method and got the correct output but i still cant pass the task. Can anyone help me please?
    • 06.03.2019
    • 1452views
    • 2comments
    0
  • Jeff Jeffy
    Level 15
    Irvine
    Question about the task Calculate the circumference of a circle
    Java Syntax, Level 2, Lesson 2
    Resolved
    Help! It says I'm not displaying the circumfrence, but I feel as if I am. Can soemone explain?I'm not displaying the circumfrence, but I feel as if I am. Can soemone explain?
    • 25.12.2018
    • 1996views
    • 5comments
    0
  • D13angos
    Level 3
    Bydgoszcz
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    It's correct but I used function that is forbiddenI used function system.out.println and checking code and programm marked is correct. This function system.out.print is forbidden. What will be function instead of system.out.print?
    • 07.06.2019
    • 1054views
    • 1comment
    1
  • yara
    Level 8
    St.gallen
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Can't find my mistake.Heeyy Does anyone find the mistake in my code? Thankkk youuuuuuu.
    • 11.06.2019
    • 1628views
    • 2comments
    0
  • Nayan Lochan Huzuri
    Level 5
    Guwahati
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    Whats wrong in here?The output is coming fine but the last condition fails!
    • 10.06.2019
    • 1265views
    • 1comment
    0
  • Ankita Patra
    Level 5
    Bhubaneshwar
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Resolved
    What's wrong in this code!!
    • 08.06.2019
    • 1284views
    • 1comment
    0
  • Bashimgeldi Kurbanov
    Level 3
    Cyberjaya
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Easy way just use for looppublic class Solution { public static void print3(String s) { for (int x = 0; x < 3; x++){ System.out.print (s +" "); } }
    • 14.04.2019
    • 1418views
    • 4comments
    0
  • ARYAN
    Level 4
    Pune
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Under discussion
    can someone tell me whats wrong in it?plz tell my error
    • 13.12.2018
    • 2643views
    • 10comments
    0
  • 1
  • ...
  • 310
  • 311
  • 312
  • 313
  • 314
  • ...
  • 372
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