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
  • Akshay Y Shirsat
    Level 7
    Mumbai
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Resolved
    what is the issue in this code?can you tell me where I am making an error?
    • 8/25/18
    • 2680views
    • 11comments
    0
  • Suyash
    Level 2
    Pune
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    what is wrong with my sollution? why am I getting syntax error that I am missing return statement? what is the correct solution?the error that I am getting: com/codegym/task/task02/task0216/Solution.java:16: error: missing return statement } ^
    • 7/8/19
    • 1380views
    • 5comments
    0
  • Hossein Shams
    Level 1
    Atlanta
    Under discussion
    Games: Mine Picker; issue with section 6 => My code is being rejected by the serverThis is how I implemented getNeighbor() method, but apparently, there's a problem with it. Can anyone please tell me what's wrong? I'm getting an error with the third condition: • The countMineNeighbors() method should, for each non-mined cell in the gameField matrix, count the number of adjacent mi
    • 7/15/19
    • 1592views
    • 3comments
    0
  • MBC
    Level 14
    Apeldoorn
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    Problem with last test requirementHi, I seem to be getting the correct output when printing but the last test requirement keeps failing.
    • 7/14/19
    • 1476views
    • 6comments
    0
  • JeRiF94
    Level 22
    Baku
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Under discussion
    Please helpI've solver first CRUD ; The problem in second , I make the same logic with comment , but it not advantage;
    • 6/15/19
    • 1276views
    • 1comment
    0
  • Joseph
    Level 22
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Resolved
    Can't figure this outIt works but it doesn't pass testing. I've tested it before verify and it's adding as well as adding in -1 before closing.
    • 7/16/19
    • 1538views
    • 1comment
    0
  • John Michael Montuya
    Level 10
    Cebu City
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    Why is my code failing the last part of verification? Everything checks out but " The displayed result should match the task conditions for any input data. " Please help :(
    • 5/19/19
    • 2238views
    • 9comments
    0
  • Thebe
    Level 7
    Benares
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    Finding shortest stringsWhy is 1st and last requirement are not being fulfilled .
    • 3/6/19
    • 3058views
    • 5comments
    0
  • Yusra Ansari
    Level 9
    Karachi
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    My first two conditions are not verifying Can someone please explainMy first two conditions are not verifying Can someone please explain
    • 9/24/18
    • 1686views
    • 13comments
    0
  • yara
    Level 8
    St.gallen
    Question about the task What sort of list is that?
    Java Syntax, Level 7, Lesson 6
    Resolved
    hopelessNo idea what I'm doing wrong. Does somebody have an idea? Thank you!
    • 6/18/19
    • 1532views
    • 3comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Don't forget to encapsulate
    Java Core, Level 1, Lesson 8
    Under discussion
    Pls me with this(help me pls, i am tired( give me the solution for my understanding
    • 6/22/19
    • 1231views
    • 1comment
    0
  • Sargam
    Level 3
    Aligarh
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    can't resolve the typoI really don't see anything wrong with this code.Help
    • 10/16/18
    • 1255views
    • 6comments
    0
  • hidden #10465081
    Level 24
    Question about the task Writing to an existing file
    Java Collections, Level 2, Lesson 2
    Resolved
    Doesn't verifyHi all, my code fulfills the conditions and I've done multiple checks. Can't see where the mistake is, please help if you can. Thank you
    • 7/16/19
    • 1349views
    • 1comment
    0
  • Jay
    Level 17
    Washington
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    Help needed What am I doing wrong? Edit: lines 28-34 aren't there. And the if statement is inside the first for loop which uses i as a counter;
    • 7/16/19
    • 1813views
    • 7comments
    0
  • Topor Dániel Bálint
    Level 9
    Targu-Mures
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Can anyone help me?I wrote System.out and didn't show any console output
    • 7/17/19
    • 1221views
    • 2comments
    0
  • Voris
    Level 10
    Tashkent
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Why nothing displayed on the screen?package com.codegym.task.task10.task1019; import java.io.*; import java.util.HashMap; import java.util.Map; /* Functionality is not enough! */ public class Solution { static HashMap map; static String name; static Integer id; public Solution(){
    • 7/17/19
    • 1430views
    • 1comment
    0
  • Shubham Sharma
    Level 4
    JAIPUR
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    what is the mistakepackage com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.ou
    • 7/17/19
    • 1730views
    • 1comment
    0
  • Hashirama
    Level 26
    Port-Harcourt
    Question about the task How to avoid Copy+Paste
    Java Multithreading, Level 4, Lesson 6
    Under discussion
    HelperPlease a little help here.
    • 7/17/19
    • 1242views
    • 1comment
    2
  • Сергей
    Level 24
    Kryvyy Rih
    Question about the task Calculator
    Java Syntax, Level 6, Lesson 8
    Under discussion
    What's wrong with percent method?It shows: 13 1 42 3.5 16.666666666666668 but I can't finish the task
    • 7/16/19
    • 1425views
    • 2comments
    0
  • Alex Balandinos
    Level 18
    Lusaka
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Numbers are displayed in decreasing Oder failing verify
    • 3/8/19
    • 1691views
    • 5comments
    0
  • Adnan Razzaq
    Level 15
    Bamberg
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    giving correct output but not verfiying.please helppackage com.codegym.task.task07.task0728; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Collections; /* In decreasing order */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader
    • 6/29/19
    • 1479views
    • 4comments
    0
  • Jay
    Level 17
    Washington
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Under discussion
    Reading from keyboardI completed the task successfully; however, my question is about reading from the keyboard. Initially, I wasn't meeting the requirement because my loop to read Strings from the keyboard was greater than 8. However, I only entered Strings via the keyboard. Why is this not considered reading 8 Strings
    • 7/16/19
    • 1842views
    • 1comment
    0
  • Anita Pal
    Level 14
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    please help me to solve this errorpackage com.codegym.task.task02.task0217; /* Minimum of four numbers */ public class Solution { public static int min(int a, int b, int c, int d) { int m1; if(min(a,b)=a && min(a,b)<=c && min(a,b)<=d) { m1 = a; } else if(min(a,b) =b &&am
    • 7/16/19
    • 1605views
    • 1comment
    0
  • Anita Pal
    Level 14
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    i am not able to understand the errorpackage com.codegym.task.task02.task0204; /* Family relations */ public class Solution { public static void main(String[] args) { //Man man,Woman woman; Man man = new Man(); woman = man.wife; Woman woman = new Woman(); woman.husband = man;
    • 7/15/19
    • 1381views
    • 4comments
    0
  • Сергей
    Level 24
    Kryvyy Rih
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    What's wrong?In IntelliJ IDEA I have an error when I enter the number 12345678912. I can't understand why.
    • 7/15/19
    • 1346views
    • 2comments
    0
  • Zserbo
    Level 22
    Budapest
    Question about the task Identical words in a list
    Java Syntax, Level 10, Lesson 11
    Resolved
    I get correct result but won't verifyCould anyone help me with this?
    • 7/16/19
    • 1361views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Restaurant
    Java Core, Level 7, Lesson 10
    Under discussion
    Last condition plsNeed help
    • 6/28/19
    • 1560views
    • 1comment
    0
  • Serg
    Level 23
    Tyumen
    Question about the task More Sam-I-Am
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Why the error?Why the error, if the output correctly Am Ham I Ham Sam Ham public class Solution { public static void main(String[] args) throws Exception { BufferedReader a = new BufferedReader(new InputStreamReader(System.in)); ArrayList str = new ArrayList<>(); str.add(
    • 5/27/19
    • 2293views
    • 4comments
    0
  • hidden #10444738
    Level 16
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    my code works but fails wtf!My code does exactly what is asked, yet it fails!
    • 7/16/19
    • 1256views
    • 2comments
    0
  • Deep Maheshwari
    Level 10
    Nanded
    Question about the task Set of cats
    Java Syntax, Level 8, Lesson 11
    Under discussion
    My code seems to be correct and creative and even prints correct output but.......Here i removed a common cat of class but still ,last one didin't verify.....
    • 7/16/19
    • 1758views
    • 1comment
    2
  • 1
  • ...
  • 299
  • 300
  • 301
  • 302
  • 303
  • ...
  • 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