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
  • Jo88
    Level 4
    Boston
    Question about the task Currency exchange
    Java Syntax, Level 3, Lesson 3
    Under discussion
    Over thinking ever single exerciseWill the exercises become second nature after more practice? will this website give me an opportunity for more practice? it seems I need help on every problem...only to find out these should be taking 2 minutes with simple short solutions.. I often find myself seeing the solutions to my problems an
    • 03.06.2020
    • 851views
    • 6comments
    4
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Phone number verification
    Java Multithreading, Level 2, Lesson 13
    Resolved
    The code verifies the given numbers correctly, but the last requirement is still not metWell, I'm still following the creepy path of using regexes, as I'm interested in this topic and trying to master it this way:). I've tried to make my code account for all the suggested cases and tested it with all the suggested phone numbers plus some of mine. It finally produces the expected output
    • 14.01.2025
    • 79views
    • 4comments
    0
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    My output is as expected, but not approved by the validatorThis code I've written reads the words from a certain file and connects them into a chain in accordance with the given principle. Without the last snippet (the one after the last comment line), it would just output the longest chain possible, composed from the input words. Then the code would meet
    • 09.01.2025
    • 110views
    • 7comments
    2
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Phone number verification
    Java Multithreading, Level 2, Lesson 13
    Resolved
    I've got all the suggested phone numbers false:)I might've got thins too complicated, so I'll publish my staff here. All the numbers I'm testing in the main method are marked as false. Is it the way I'm using regexes wrong, or my whole logic? I'd be grateful for some guidance:)
    • 10.01.2025
    • 102views
    • 6comments
    0
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Prices 2
    Java Core, Level 8, Lesson 11
    Resolved
    How to deal with the incoming arguments properlyI've been actually doing this task with pleasure, as it's similar to what I've done before. At this stage, it meets all the requirements except the 2nd one, which is: When you run the program without arguments, the product list must remain unchanged. At the moment the line checking for that in my c
    • 16.09.2024
    • 125views
    • 2comments
    0
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    Not enough or too many (why?)I'm counting how many times the word "world" occurs in a certain file. I've tried to ways: 1) if (words[i].equalsIgnoreCase("world")) count++; In this case my program does not find all the instances of "world" in the file. As there are probably words in the file that contain "world" but are not eq
    • 17.09.2024
    • 121views
    • 3comments
    0
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Duplicate text
    Java Core, Level 9, Lesson 8
    Resolved
    Why am I not writing to a file?This code I've written passes all the requirements except the last but one. The validator adds a message, "Be sure that the program writes data to the file". According to my understanding, the program does write data to the file (fileName) in line 26: fos.write(baos.toByteArray()); (where fos is
    • 25.09.2024
    • 95views
    • 2comments
    0
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Prevent cloning
    Java Multithreading, Level 1, Lesson 8
    Resolved
    Why are C class objects still not cloned successfully?I'm wondering why my code still doesn't meet the last requirement and the validator outputs that "C objects should be cloned successfully". I thought they were...
    • 02.12.2024
    • 103views
    • 2comments
    0
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    The output is correct, what's missing?Well, this code of mine produces the expected output when tested. However, it doesn't meet the last requirement, which is actually about getting the pairs right. What am I missing?
    • 06.01.2025
    • 96views
    • 3comments
    0
  • Salih Diril
    Level 20
    Istanbul
    Question about the task 2 arrays
    Java Syntax, Level 6, Lesson 4
    Under discussion
    Can't pass validation for 2 Arrays task, pls helpMy solution is fine I think but it doesn't pass the verification. Could you tell me why?
    • 05.01.2025
    • 83views
    • 2comments
    0
  • Sandeep
    Level 14
    Greensboro
    Question about the task Chess board
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Able to print chessboard in both odd and even casesAble to print chessboard in both odd and even cases, but its throwing The program needs to display the elements of the array on the screen error
    • 23.07.2024
    • 177views
    • 6comments
    0
  • Kingpvz
    Level 31
    Under discussion
    This is a certified <введенная строка> moment.Good job translators.
    • 21.12.2024
    • 134views
    • 0comments
    0
  • @amsilla
    Level 10
    Question about the task Price of apples
    Java Syntax, Level 3, Lesson 4
    Under discussion
    My solution does not pass the requirementsThe requirements are: ✅ The program should display text on the screen. ❌The Apple class's addPrice method should not display text on the screen. ✅ The Apple class's applePrice variable must be a static int initialized to zero. ❌ The main method should call the addPrice method only twice. ❌ The Apple
    • 22.12.2024
    • 95views
    • 1comment
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task Autoboxing features (part 2)
    Java Multithreading, Level 9, Lesson 7
    Resolved
    no idea help plsa
    • 18.08.2020
    • 718views
    • 7comments
    0
  • Shubham Patil
    Level 5
    Kolhapur
    Question about the task Getting the length of a string
    Java Syntax, Level 2, Lesson 3
    Under discussion
    helpwhat actually do in this can we need to add new strings or not
    • 19.11.2022
    • 665views
    • 3comments
    0
  • Muhammad Umar
    Level 1
    -
    Question about the task I think being a programmer is cool
    Java Syntax, Level 1, Lesson 2
    Under discussion
    i didn't understand how to code
    • 11.09.2024
    • 154views
    • 5comments
    0
  • nickyy
    Level 18
    Diou
    Question about the task Creating threads recursively
    Java Core, Level 6, Lesson 13
    Under discussion
    I got smth wrong?I d'ont understand it it seems to me that the output is correct, the checks are in place and I use the run method as a recursive threag generator. I am not very clear on what I am missing here. Could you give a hand? :)
    • 11.09.2020
    • 3818views
    • 4comments
    0
  • tanaka
    Level 6
    Tokyo
    Question about the task Chess board
    Java Syntax, Level 6, Lesson 5
    Under discussion
    I can NOT complete the fourth "Requirements".I can't complete the fourth "Requirements". I don't know what I'm doing wrong. If you enter an even number, it will be displayed as follows: 6 # # # # # # # # # # # # # # # # # # Odd number: 5 # # # # # # # # # # # # # Could you help me identify what's causing this?
    • 23.11.2024
    • 133views
    • 3comments
    0
  • Christy
    Level 5
    Question about the task Working with elements of an array
    Java Syntax, Level 5, Lesson 0
    Under discussion
    Are the values in the array changed?Are the values in this array changed when the sign is changed? I believe once you declare an array, you can't change the values in it.
    • 20.11.2024
    • 108views
    • 3comments
    0
  • Christy
    Level 5
    Under discussion
    Mantissa- why is the first digit not included?I'll put the link to the page and the issue I'm querying right here as the system won't let me put the link in the first field. Link : https://codegym.cc/quests/lectures/en.questsyntaxpro.level04.lecture07 (Number 3). My question is not re: a task but the theory part of this lesson (specifically nu
    • 19.11.2024
    • 101views
    • 2comments
    0
  • Augusto Ghio
    Level 7
    Question about the task Drawing a triangle
    Java Syntax, Level 4, Lesson 7
    Under discussion
    code is ok, but compilier goes nuts int n=8 ; int m=1 ; int s=1 ; for(int i=1; i<11; i++){ System.out.println(n*s) ; m=m*10 ; s=s+m ; } output goes well until the last loop, where it goes something like 23564365 for no reason
    • 18.11.2024
    • 88views
    • 1comment
    0
  • A Man
    Level 2
    -
    Question about the task My young friend
    Java Syntax, Level 1, Lesson 4
    Under discussion
    Should we stick to procedure?I think it doesn't matter if you know how to do it the complex way... for instance public class Solution { public static void main(String[] args) { int x = 3126 int y = 8 int z = (x-y) System.out.println("My Friend's Birth Year: " + z); } } I think the app
    • 05.11.2024
    • 116views
    • 1comment
    0
  • A Man
    Level 2
    -
    Question about the task No comments needed
    Java Syntax, Level 1, Lesson 7
    Under discussion
    Logic?Wow! Lots of questions on how to solve this. It requires logic. Your x and y changes as you apply the math and adhere to the task conditions. Now, sometimes you need to take things one at a time. int x = 2; //This clearly tells you the variable x is 2 int y = 12; //This also tells you the va
    • 05.11.2024
    • 106views
    • 0comments
    0
  • ewhwj
    Level 1
    Under discussion
    dnsna an sode!samera(__6__) SERA app SGrla8 { { { { {.exe/sons-in-law((the best//
    • 31.10.2024
    • 100views
    • 0comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Minimum of two numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    whats wrong with my if else condition?package com.codegym.task.task02.task0214; /* Minimum of two numbers */ public class Solution { public static int min(int a, int b) { //write your code here int minimum; if (a < b) { minimum=a; else minimum=b; }return
    • 29.02.2020
    • 1415views
    • 12comments
    0
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Reading and writing to a file: CodeGym
    Java Core, Level 10, Lesson 2
    Resolved
    Why is my "users" list still empty after all I've done?It's probably time to ask for help. Below is the code I've written. I keep getting the 2nd requirement wrong, and the tip from the validator is, "Check why the users list is empty after the file has been read". I understand that the problem must be with the load method that doesn't do what I'm makin
    • 06.11.2024
    • 157views
    • 16comments
    0
  • Sam
    Level 2
    Delhi
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Resolved
    I don't get it ..isn't it right? still says: In the main method, create a Person object and immediately assign a reference to it to the variable person. ?? package com.codegym.task.task02.task0202; /* Where does a Person come from? */ public class Solution { public static void main(String[] args) { //write your code here Person Person = new Person(); } public static class Person { //write your code here
    • 19.08.2018
    • 3210views
    • 17comments
    0
  • Christy
    Level 5
    Under discussion
    Please critique the code below and explain how and why I can write it better...I understand that the variable names can be a bit more concise and relevant and also that the 'b' variable is redundant. However if I delete the b variable and I run the code, I get a multiplication table that prints up to num * 9 (it should print up to num * 10). At the end of the code, if I remove
    • 02.11.2024
    • 102views
    • 5comments
    0
  • SOUFIANE DAHIMI
    Level 32
    Marrakech
    Question about the task A switch for threads
    Java Multithreading, Level 5, Lesson 5
    Under discussion
    Please what's wrong with this codeI don't know why the requirements are not met
    • 10.04.2020
    • 955views
    • 7comments
    0
  • mortarz
    Level 1
    Ceske Budejovice
    Question about the task Amigo is very smart
    Java Syntax, Level 1, Lesson 1
    Under discussion
    What am I doing wrong? I don't understand the error messageWhy is the following code wrong? I copied it from the article that was supposed to teach me. public class Solution //swapped "house" for "solution { public static void main (String[] args) //there is never explained what exactly this line do ... { System.out.println("Amigo is very smart");
    • 02.11.2024
    • 158views
    • 1comment
    0
  • 1
  • 2
  • 3
  • 4
  • 5
  • ...
  • 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