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
  • catalin1989
    Level 37
    Question about the task Numeral system converter
    Java Multithreading, Level 10, Lesson 2
    Resolved
    Is my logic wrong?I haven't worked a lot with conversions, maybe I have some flaws in my logic. Here is my logic: 1. First I create a method that verifies if the input ins correct. It tries to parse the number to base 10 using Long.parseLong(value,radix). If the input is not correct it will throw an exception. 2.If t
    • 3/26/24
    • 373views
    • 5comments
    0
  • Ijaz Ahmed
    Level 1
    Under discussion
    more programs than storiesplease add more java programs than dtoties
    • 3/21/24
    • 280views
    • 0comments
    0
  • Amira Alshaar
    Level 50
    Question about the task Changing shoes on the move
    Java Syntax, Level 5, Lesson 7
    Under discussion
    Issue with opening tasks in IntelliJ IDEA Subject: Issue with Opening Tasks in IntelliJ IDEA Dear CodeGym Support Team, I hope this email finds you well. I am writing to report an issue I have encountered while using CodeGym within IntelliJ IDEA. Despite the tasks being available, I am unable to open them. The task remains stuck in the
    • 4/15/24
    • 357views
    • 1comment
    0
  • PQK
    Level 6
    United States of America
    Question about the task Maximum of entered numbers
    Java Syntax, Level 4, Lesson 2
    Resolved
    Confusion About The Min Value Of IntegersIn the official code given by codegym, the max variable is assigned with the min value for an integer. But I don't understand why ? int max = Integer.MIN_VALUE; //max variable being intialized as the min value of integer while (console.hasNextInt()) { int x = console.ne
    • 3/16/24
    • 463views
    • 4comments
    2
  • Rich Piske
    Level 30
    United States of America
    Question about the task Find a substring
    Java Multithreading, Level 2, Lesson 5
    Under discussion
    I get the exact result that we need. Why does it fail validation?If someone wants to explain to me how my version doesn't get the exact same version CodeGym's solution generates, I would love to hear it! Thank you!
    • 3/2/24
    • 340views
    • 2comments
    0
  • Jesú
    Level 14
    Madrid
    Question about the task Changing shoes on the move
    Java Syntax, Level 5, Lesson 7
    Resolved
    IntelliJ opens an unrelated .java when I run code.This is annoying, and I don't know how to fix it. I am trying to run code. I even have my cursor placed in this program. However, when I decide to run the code, an unsolicited .java files comes up. Like, I didn't even ask that program to appear. How can I stop this?
    • 3/7/24
    • 343views
    • 2comments
    0
  • FelixUjo
    Level 35
    Gijón
    Resolved
    The methods are in the order indicated by the task. I don't know what the error is.The methods are in the order indicated by the task. I don't know what the error is.
    • 3/2/24
    • 311views
    • 4comments
    0
  • Seggzzy
    Level 5
    Lagos
    Question about the task Parenthetical brainteaser
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Finally ResolvedI finally resolved the problem. Understanding of the condition attached to the question, is very important. especially the number of parentheses.
    • 6/12/20
    • 901views
    • 1comment
    2
  • Dave Andrea
    Level 41
    Question about the task Fix the bug. Comparing objects
    Java Multithreading, Level 1, Lesson 5
    Under discussion
    How to ensure that the hashset of Solutions behaves correctly?I'm failing the 2nd last requirement, but I am not sure why. The task description says that the main method isn't tested, so I don't know how to go about passing this test. I'm getting the correct answer as far as I can tell. I'm just spinning in circles trying to solve this.
    • 6/10/20
    • 1098views
    • 8comments
    1
  • In Ho Kwon
    Level 1
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 9, Lesson 2
    Resolved
    toBinaryHello, The result is correct but not pass the task requirements. I think i am missing some details Error message: Be sure that the toBinary(String) method correctly converts the string representation of a hexadecimal number to the string representation of a binary number. Thank you.
    • 1/20/24
    • 552views
    • 2comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Encryption
    Java Core, Level 8, Lesson 11
    Under discussion
    help me plsneed help
    • 6/29/19
    • 1530views
    • 4comments
    2
  • Bashka
    Level 4
    Russia
    Question about the task Maximum of entered numbers
    Java Syntax, Level 4, Lesson 5
    Under discussion
    Ups... Hello! Please help me solve it, I'm stuck, I can't do it myself...
    • 4/2/24
    • 333views
    • 5comments
    0
  • Iasu
    Level 18
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Why am I getting "null" and not the integer "0"....I´m getting "null" and not the number "0"... I have tried so many times now, and it has to do with if statement "map.put(x, 1)" input: Lily Charlie Mia Jacob Sophia Alfie Isabella Freddie Grace Oscar output: a 9 b 2 c 4 d 2 e 6 f 2 g 1 h 2 i 7 j 1 k null l 6 m 1 n null o 3 p 1 q null r 4 s 3 t n
    • 5/18/19
    • 1864views
    • 7comments
    0
  • Christy
    Level 5
    Question about the task Last digit of a number
    Java Syntax, Level 2, Lesson 1
    Under discussion
    Why did only 2/3 pass for the modulo task?I wrote the following below but I got 2/3 checks passed and I'm not sure why I didn't get 3/3 checks passed. Does anyone have any insight as to why? int last digit; lastDigit = number % 10;
    • 3/5/24
    • 389views
    • 3comments
    0
  • Amira Alshaar
    Level 50
    Under discussion
    Issue with opening tasks in IntelliJ IDEA Subject: Issue with Opening Tasks in IntelliJ IDEA Dear CodeGym Support Team, I hope this email finds you well. I am writing to report an issue I have encountered while using CodeGym within IntelliJ IDEA. Despite the tasks being available, I am unable to open them. The task remains stuck in the
    • 4/14/24
    • 263views
    • 1comment
    0
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Archiver (part 8)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    last conditionThe error shows "If any exception other than a NoSuchZipFileException occurs, then display "An error occurred. Please check the entered data." .please help
    • 12/5/19
    • 1650views
    • 8comments
    0
  • nina fatahi
    Level 4
    Question about the task Three numbers
    Java Syntax, Level 3, Lesson 2
    Under discussion
    why isnt my code workingpackage en.codegym.task.pro.task03.task0305; import java.util.Scanner; /* Three numbers */ public class Solution { public static void main(String[] args) { //write your code here Scanner s = new Scanner(System.in); int n1 = s.nextInt(); int n2 = s.nextInt();
    • 4/10/24
    • 271views
    • 1comment
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Chat (part 10)
    Java Multithreading, Level 6, Lesson 15
    Under discussion
    I am blocked.I don't see the error. I think I have tried everything.
    • 3/31/24
    • 332views
    • 6comments
    0
  • Danila Hnidko
    Level 8
    Philadelphia
    Question about the task Utility class: part 2
    Java Syntax, Level 8, Lesson 0
    Under discussion
    Why i cant run it? Just paid for subscription and the first thing i see " Unable to run"
    • 4/1/24
    • 356views
    • 3comments
    0
  • PQK
    Level 6
    United States of America
    Question about the task Combining arrays
    Java Syntax, Level 5, Lesson 1
    Resolved
    Task Cannot Be Passed !!?Code not working loll 🤬😭
    • 3/24/24
    • 348views
    • 6comments
    2
  • Srividya
    Level 3
    Bangalore
    Question about the task As simple as 2+2
    Java Syntax, Level 1, Lesson 8
    Resolved
    Write a program that calls the sum method with the arguments 2 and 2.Hi, I have tried all possible command lines , but I could not find the solution, Please help. public class Solution { public static void main(String[] args) { int a=2; int b=2; int result=(c); } and then, also tried, public class Solution { pu
    • 9/25/18
    • 6219views
    • 8comments
    0
  • Alban Pajova
    Level 3
    Chicago
    Question about the task Parenthetical brainteaser
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Help with AnswerTo solve the question start with looking into the factors of 382. That will tell you where the first paranthesis goes.
    • 5/3/20
    • 1626views
    • 6comments
    3
  • Fernando P Spitaliere
    Level 6
    Atlanta
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Under discussion
    Just clarifying: The purpose of the method is to add up EACH new apple_object price, and not to display the price of the last apple_object. It wasn't difficult for me to reference the Class's variable, and to assign it the variable passed as argument. My difficulty was to understand what it was asked of me to do with it from the description statement. I mistakenly thought it was to print the last known price, not to accumulate all the p
    • 2/1/19
    • 2555views
    • 5comments
    6
  • Nathan Samson
    Level 5
    United States of America
    Question about the task Positive and negative numbers
    Java Syntax, Level 3, Lesson 7
    Under discussion
    What am i doing wrong here?What am i doing wrong here?
    • 6/26/23
    • 450views
    • 2comments
    0
  • Kiran Kumar Alisam
    Level 1
    Erie
    Under discussion
    duplicatespublic class Solution { public static void main(String[] args) throws Exception { // Read strings from the console and declare an ArrayList here ArrayList list = new ArrayList(); BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); for(int i=0;
    • 3/20/24
    • 308views
    • 1comment
    0
  • Christy
    Level 5
    Under discussion
    Help with this codeCan someone help with this and constructively criticize.. I have also included the program I wrote which is very basic but I'm trying to solidify my knowledge on if else statements and loops. I want to write a program that: - takes the user's input - Both integers must be greater than 0. - accepts
    • 3/18/24
    • 379views
    • 3comments
    0
  • Ailana
    Level 2
    San Carlos
    Question about the task One cat isn't enough
    Java Syntax, Level 2, Lesson 3
    Under discussion
    Help plz as fast as u canit says that I didn't make 2 variables but everything else is correct.this is my code public class Solution { public static void main(String[] args) { Cat kitty = new Cat();
    • 8/11/20
    • 676views
    • 3comments
    0
  • Rich Piske
    Level 30
    United States of America
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    I was really happy with my solution. HOW is it wrong?This has been probably the most frustrating chapter yet with validation. I've tested numerous data sets with my algorithm. It tries starting with all words in the list and returns the longest result. It's worked with everything I've thrown at it, even the ones you guys have suggested. I think th
    • 3/6/24
    • 375views
    • 4comments
    2
  • PQK
    Level 6
    United States of America
    Question about the task Conscription
    Java Syntax, Level 3, Lesson 0
    Resolved
    Is this code acceptable ?I wrote this code for this question and it achieved the desired output stated in the question. But when I verify it, the code was wrong as the last requirement was not met even though the input age (22) is within the specified range. My code also shows that nothing will be displayed if the input age
    • 3/3/24
    • 550views
    • 3comments
    2
  • Yomi Addey
    Level 8
    Baltimore
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    I'm having trouble passing tasks 3,4,and 7Not sure if it's the way I organized my code or...? But, any help will be greatly appreciated!
    • 2/19/21
    • 803views
    • 2comments
    0
  • 1
  • ...
  • 11
  • 12
  • 13
  • 14
  • 15
  • ...
  • 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