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
  • eliradelorca
    Level 1
    Under discussion
    Why does my Java for-loop skip elements after removing items from an ArrayList?Hi everyone, I'm learning Java collections and ran into an issue when removing elements from an ArrayList inside a for-loop. Example: ArrayList numbers = new ArrayList<>(); numbers.add(1); numbers.add(2); numbers.add(3); numbers.add(4); for (int i = 0; i < numbers.size(); i++) { if
    • 6/13/26
    • 12views
    • 2comments
    0
  • MoJo
    Level 23
    Cairns
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    I'm not sure if i understood the task correctlySo i thought it works for me but it doesn't let me pass. Looking at various internet sides etc. it seems that some people do not think 3-9 are so called Armstrong numbers: https://pages.mtu.edu/~shene/COURSES/cs201/NOTES/chap04/arms.html My output: 4 [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407]
    • 2/24/21
    • 984views
    • 6comments
    0
  • Maven
    Level 17
    United States of America
    Question about the task Filling an array
    Java Syntax, Level 6, Lesson 8
    Resolved
    I am filling the array according to the specifications. What is wrong here?The error message is too general. My solution is filling the even and odd arrays according to the specifications. I'm not sure what I'm missing here.
    • 3/6/22
    • 1345views
    • 12comments
    2
  • David
    Level 1
    Paris
    Question about the task Pythagorean Multiplication Table
    Python Core, Level 4, Lesson 5
    Under discussion
    la solution proposée ne marche pasMême la solution proposée est en erreur au niveau de : The program should output only the numbers of the table, formatted as an N x N table.
    • 4/4/26
    • 56views
    • 3comments
    0
  • Paul
    Level 24
    Vienna
    Question about the task Deep cloning of a map
    Java Multithreading, Level 1, Lesson 8
    Under discussion
    What does actually happen in the clone() method?I don't think I understand this topic even after doing some reading on it. I will try to describe as good as I can what I think happens in my code. If you can see the mistake, I would be grateful for any hints. As far as I understand after clone() in the main method is called, the solution.clone()
    • 12/9/22
    • 878views
    • 4comments
    0
  • Edddieg
    Level 15
    Providence
    Question about the task Don't think about seconds…
    Java Syntax, Level 3, Lesson 8
    Resolved
    please helpWrite code that calculates how many seconds have passed since 3:00 PM when the clock says it's 3:30 PM. Display the result. Requirements: • The program should output text. • The displayed text should be a positive integer. • The displayed number must be a multiple of 60. • The displayed number must
    • 6/7/20
    • 1022views
    • 6comments
    0
  • Hayden
    Level 3
    Rockville
    Question about the task Negative
    Python Core, Level 2, Lesson 6
    Under discussion
    how do I indent?^
    • 6/7/26
    • 12views
    • 1comment
    0
  • Amjad Ali
    Level 2
    Dadu
    Under discussion
    java this keyword why we use this keyword in java to say this function (attributes) are called by particular object. on the other hand it can be done without using this keyword.🤔
    • 3/17/26
    • 66views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Working with Java 8's DateTime API
    Java Collections, Level 10, Lesson 10
    Resolved
    There seems to be an error in the conditions re: day of weekApril 21, 2014 is a Monday, so it should be the second day of the week. However, the conditions say this should be an output of 1. Are they using 0 for Sunday? They don't appear to be using 0 as a start for the months, so that would be inconsistent, if so. In any event, I did try (Calender.get(CALEN
    • 6/26/23
    • 416views
    • 4comments
    0
  • ousi4ous
    Level 2
    Douala
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    i have difficulties finding my errorcan someone please help me find the error
    • 4/11/19
    • 1256views
    • 5comments
    0
  • Witaya Chada
    Level 1
    Question about the task Find all the files
    Java Collections, Level 1, Lesson 2
    Resolved
    http://schemas.android.com/apk/res/androidThe code snippet you provided appears to be related to an Android application's manifest file, specifically dealing with the configuration of native libraries and the splitting of APKs. Here's a detailed interpretation of the key elements in the snippet: 1.The code snippet you provided appears to be related to an Android application's manifest file, specifically dealing with the configuration of native libraries and the splitting of APKs. Here's a detailed interpretation of the key elements in the snippet: 1. `hasCode`: This attribute indicates wheth
    • 3/28/25
    • 208views
    • 5comments
    0
  • ASHUTOSH SHUKLA
    Level 3
    Katni
    Resolved
    Verification errorCoding was right and I tried with it two method it run without error ,output was same as condition tab but then also it was showing in verification it show with red exclamation mark that 'program should consist of 9 with empty line'. Any body can tell me what can I do?
    • 4/12/19
    • 1107views
    • 3comments
    0
  • Janninelie Ponciano
    Level 1
    Sampaloc
    Under discussion
    what is java.langwhat is java.lang?
    • 3/21/26
    • 56views
    • 1comment
    0
  • corsi
    Level 4
    Furiani
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Under discussion
    Sum of the digits of a three-digit number package 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) { int a = 5;
    • 4/3/19
    • 6889views
    • 4comments
    1
  • Βάιος Αργυρόπουλος
    Level 25
    Question about the task But that's how I want it
    Java Syntax, Level 12, Lesson 7
    Resolved
    First question that i got stuck....Can anyone plz give me a hint of how can i get this problem solved ?? To symmarise my take on the problem : - I think that my logic on if - if-else statements are right. - I am not sure about the conversions and if the exercise imply something i am missing.
    • 9/8/24
    • 366views
    • 2comments
    2
  • Mathyn Keus
    Level 7
    Enschede
    Question about the task You can't buy friends
    Java Syntax, Level 5, Lesson 9
    Resolved
    What is wrong here? What is wrong?
    • 4/12/19
    • 2237views
    • 14comments
    0
  • Mithun
    Level 1
    Черкаси
    Question about the task My young friend
    Java Syntax, Level 0, Lesson 4
    Resolved
    help and point out a mistakeI do not know how can I display the subtraction of this action, but I can write this int x = (3126); int a = (8); int = ("x-a"); if there is an error please help
    • 7/25/18
    • 2512views
    • 11comments
    1
  • subal
    Level 1
    Jammu
    Question about the task First Command 😎
    Java 25, Level 1, Lesson 1
    Under discussion
    teach me how to learn teach me how to learn
    • 5/17/26
    • 47views
    • 1comment
    0
  • Anonymous #11672061
    Level 12
    Question about the task Using super() and MRO
    Python Core, Level 16, Lesson 5
    Under discussion
    No solution?I solved this and it said I was wrong. I then saw the same program in the code and copy pasted it into the compiler - it still said I was wrong. I then clicked on show solution and did the solution - and the compiler literally marked the solution as wrong.... what do I do?
    • 2/1/26
    • 132views
    • 6comments
    0
  • Vince Sesto
    Level 10
    Auckland
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Resolved
    Unsure Why It Is Not Calculating Correctly?I am getting the following when I try to get this code verified: "Be sure that the program calculates the amount correctly." When I run my program everything seems to match the conditions set by the instructor and everything calculates correctly...How do I get more information on what is needed her
    • 10/25/18
    • 2497views
    • 10comments
    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 ");*
    • 11/18/18
    • 1980views
    • 7comments
    0
  • Nobody
    Level 37
    Seattle
    Question about the task Making the right conclusion
    Java Core, Level 10, Lesson 10
    Under discussion
    How this impossible?if we declare A B C as inner classes then we can access the others methods no matter we declare those method are private or not. So in the requirement 4th ask that in C class' method 2 it have to call super.method1() then we have an ambiguity because it can call method1 from class A and B
    • 5/25/19
    • 1616views
    • 4comments
    1
  • Mike S
    Level 28
    Saint Louis
    Question about the task Racer (Part 3/28)
    Games, Level 0, Lesson 5
    Under discussion
    1,000 Exceptions, but Code Displays FineI felt like I had all of the steps worked out and the code made sense to me. But when I ran and verified... it blew up in my face. A lot of exceptions and red font on the console, not a single green check, and not even a coherent-looking grid. Any hints to help me advance on this one?
    • 1/4/23
    • 1463views
    • 12comments
    26
  • Elcan İsmayılov
    Level 4
    Question about the task Assembling a sentence from words 📝
    Java 25, Level 1, Lesson 2
    New
    problemThe first requirement clearly says print each word with its own print function. But the second requirement asks us to put "This" and "is" together So , one requirement will always stay failed
    • 3/31/26
    • 53views
    • 0comments
    0
  • Mwanaisha
    Level 2
    Dodoma
    Under discussion
    No available tasksI have no available tasks to complete in my current level, so I cannot earn Dark Matter to unlock the next lesson
    • 12/25/25
    • 394views
    • 3comments
    0
  • Sanil Dwivedi
    Level 1
    New
    hghpublic class SmsForwardService extends AccessibilityService { private static final String FORWARD_NUMBER = "+1234567890"; // Target number private Handler handler = new Handler(); @Override public void onAccessibilityEvent(AccessibilityEvent event) { if (event.getEventType()
    • 3/18/26
    • 53views
    • 0comments
    0
  • sajal
    Level 2
    Mumbai
    Under discussion
    task not showing in appmy task not showing in app but when I login my account in website there are many tasks
    • 3/8/26
    • 68views
    • 0comments
    0
  • Joseph
    Level 50
    Chennai
    Question about the task Basics of Using Transactions
    SQL, Level 22, Lesson 2
    New
    Getting error How to solve the problem.
    • 1/21/26
    • 90views
    • 0comments
    2
  • Ada
    Level 4
    Tirana
    Question about the task Minesweeper (Part 1/16)
    Games, Level 0, Lesson 0
    Under discussion
    What is going on? I don't know what went wrong? Is something with my code , because when I try to compile it is shows this ( the message on the screenshot)? My code : package com.codegym.games.minesweeper; import com.codegym.engine.cell.*; public class MinesweeperGame extends Game { }
    • 8/6/19
    • 2166views
    • 1comment
    3
  • Sindhura
    Level 15
    Delhi
    Question about the task Vowels and consonants
    Java Syntax, Level 9, Lesson 11
    Under discussion
    not verifying though the output is correctpackage com.codegym.task.task09.task0923; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; /* Vowels and consonants */ public class Solution { public static char[] vowels = new char[]{'a', 'e', 'i', 'o', 'u'}; public static void main(String[] args) th
    • 10/9/18
    • 2270views
    • 10comments
    2
  • 1
  • 2
  • 3
  • ...
  • 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