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
  • matemate123
    Level 50
    Kraków
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Under discussion
    Don't try this at home...Maybe someone find inspiration in my code. After almost seven hours non-stop working (not counting WC visits, and coffe/pizza break) I did this Frankenstain. I start this task yesterday and I tried did it with Pattern and Matcher help. It's not work, and I ending on help section. I find beauty code
    • 07.02.2023
    • 509views
    • 13comments
    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
    • 25.07.2018
    • 2355views
    • 10comments
    1
  • Josip Batinić
    Level 17
    Question about the task 5 shades of char
    Java Syntax, Level 8, Lesson 1
    Under discussion
    Not passing validationProgram compiles and prints: Hello char as it should public class Solution { public static char char1 = 101; public static char char2 = 'H'; public static char char3 = 114; public static char char4 = '\u006F'; public static char char5 = 108; public static char char6 = 'h';
    • 08.02.2023
    • 221views
    • 1comment
    0
  • Ashok
    Level 3
    United States of America
    Question about the task Emptiness and spaces
    Java Syntax, Level 2, Lesson 3
    Under discussion
    can i get solution for the above programpublic class Solution { public static void main(String[] args) { String emptiness = "emptiness"; String fullness = emptiness + emptiness + emptiness; //write your code here System.out.println(fullness); } } can i get solution for the above program
    • 31.01.2023
    • 348views
    • 2comments
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Resolved
    It's almost good, but something wrongOk it's time for ask for help. After few hours of work I have this. I think something wrong with my trying create algorithm to solve situation when this tag is a little mess. (line 68-74). Maybe it possible way when I could repair this program. Am I long for good solution? I feel I'm close to do thi
    • 01.02.2023
    • 501views
    • 17comments
    0
  • Oliver Heintz
    Level 18
    Mustang
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    Struggling with "off" and "len"The lessons are teaching me less and less. I've failed this task like half a dozen times already. So I check if my count is even or odd. If odd (count % 2 != 0), I write from 0 the first count / 2 characters. So, if I had 7 bytes, 7 / 2 should give me 3. 0-3. Then I write starting at count /
    • 08.03.2021
    • 877views
    • 5comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Circular iterator
    Java Collections, Level 7, Lesson 4
    Under discussion
    Almost there, stuck on the 3rd conditionI think I have used try/catch for every place where an index out of bounds exception might occur. Not sure what else to do.
    • 03.02.2023
    • 230views
    • 2comments
    0
  • Mike S
    Level 28
    Saint Louis
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Under discussion
    Last Condition: "The output must contain the contents of the first file."There's several layers to this question: 1) This sounds ignorant to ask at this point, but how in the heck does one use the console interface in IntelliJ? That would seem useful here. (As opposed to CodeGym where it's just "there".) 2) Since I can't play with any file names on the console interfac
    • 01.02.2023
    • 502views
    • 7comments
    0
  • Andrei
    Level 41
    Question about the task Logging stack traces
    Java Syntax, Level 9, Lesson 2
    Under discussion
    Different Index for getStackTrace()[2] vs[1], same results. One is accepted, one is not. Why !?This one is accepted: public class Solution { public static void main(String[] args) { log("In main method"); } public static void log(String s) { //write your code here String fullClassName = Thread.currentThread().getStackTrace()[2].getClassName(); St
    • 10.11.2020
    • 1115views
    • 5comments
    1
  • Bo By
    Level 8
    Bratislava
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    What is the wrong with this solution - is showing me the largerst number but not accepted? What is the wrong with this solution - is showing me the largerst number but not accepted? // The program should display the maximum of the N entered numbers. - this is not accepted, this requitment // also some hint/error I get : Be sure that the program works correctly for negative numbers.
    • 30.01.2023
    • 329views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Find the bugs
    Java Core, Level 10, Lesson 10
    Resolved
    My code is now identical to the solution but still generates notserializableexceptionThe only differences I can find: 1. The names of the arguments in the readObject and writeObject methods in the B class. Instead of "in" and "out" I use "aInputStream" and "aOutputStream". Shouldn't matter, right? 2. The order in which classes are declared. I have A and B declared before Main, the s
    • 21.11.2021
    • 574views
    • 1comment
    2
  • Manoj
    Level 3
    Gurgaon
    Question about the task Share a Coke
    Java Syntax, Level 3, Lesson 3
    Under discussion
    The program should display a number on the screen.Getting "The program should display a number on the screen." where as number is getting displayed in console after writing SOP on code. Then why error ?
    • 29.01.2023
    • 286views
    • 1comment
    0
  • Arko Sarkar
    Level 8
    Mumbai
    Question about the task The way of the Samurai
    Java Syntax, Level 3, Lesson 6
    Under discussion
    How to print it the best way?Simply using print method is enough, it's like Hello World then! This task doesn't make sense!
    • 24.08.2018
    • 2432views
    • 8comments
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Getting information through an API
    Java Syntax, Level 16, Lesson 7
    Under discussion
    Error, only in this task, every other works fine.Error, only in this task, every other works fine.
    • 15.12.2022
    • 419views
    • 1comment
    0
  • Karan Sharma
    Level 4
    Question about the task Concatenation of strings and numbers
    Java Syntax, Level 2, Lesson 3
    Under discussion
    ansx + y + " " + z
    • 26.01.2023
    • 294views
    • 1comment
    0
  • Anitamalina
    Level 18
    København
    Question about the task Fix the bugs
    Java Core, Level 8, Lesson 5
    Under discussion
    What am I doing wrong here? I can't see what I am doing wrong. Anyone who can help?
    • 26.01.2023
    • 431views
    • 1comment
    0
  • Sergei Polakov
    Level 11
    Donets'k
    Question about the task Census
    Java Syntax, Level 8, Lesson 8
    Resolved
    I can not verify, made a dozen options, does not work // import java.security.acl.LastOwnerException; import java.util.HashMap; import java.util.HashSet; import java.util.Map; /* Перепись населения */ public class Solution { public static HashMap createMap() { HashMap map = new HashMap <> ( ); map.hashCode (); m
    • 08.05.2019
    • 2406views
    • 9comments
    5
  • Art
    Level 13
    Chisinau
    Question about the task Minimum and Maximum
    Java Core, Level 1, Lesson 11
    Under discussion
    ArghhhhCan anybody help me find the issue?
    • 25.03.2020
    • 856views
    • 2comments
    1
  • Tamas Horcsak
    Level 18
    Leeds
    Question about the task Minimum and Maximum
    Java Core, Level 1, Lesson 11
    Under discussion
    Please guys help me. I could do the iteration but I cant pass it to the given X in the main. :-(public class Solution { public static void main(String[] args) throws Exception { int[] data = new int[]{1, 2, 3, 5, -2, -8, 0, 77, 5, 5}; Pair result = getMinimumAndMaximum(data); System.out.println("The minimum is " + result.x); System.out.println("The maximum
    • 22.01.2021
    • 763views
    • 3comments
    1
  • Edddieg
    Level 15
    Providence
    Question about the task Minimum and Maximum
    Java Core, Level 1, Lesson 11
    Resolved
    im getting right output but not passing, help please help
    • 27.07.2020
    • 654views
    • 3comments
    1
  • Dawn( #11020889)
    Level 37
    Toronto
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    Anyone can help? Thanks!I suppose I completed the task, but not passed the validation. Why?
    • 22.01.2023
    • 311views
    • 1comment
    0
  • Kabeer Rajoria
    Level 5
    Gwalior
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Resolved
    What is wrong?package com.codegym.task.task04.task0413; /* Day of the week */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); Strin
    • 26.10.2018
    • 1656views
    • 3comments
    2
  • Maven
    Level 17
    United States of America
    Question about the task Good or bad?
    Java Syntax, Level 3, Lesson 7
    Resolved
    Why is the last requirement is failing.The first 4 requirements are passing, but the last requirement is failing. It doesn't make sense. The solution displays text on the screen in accordance to the task conditions
    • 22.02.2022
    • 567views
    • 6comments
    2
  • Jay
    Level 8
    Question about the task Cat register
    Java Syntax, Level 3, Lesson 5
    Under discussion
    Output is not showingAfter I run my code is not showing anything on the screen. I add catCount++ inside addNewCat method.
    • 19.06.2022
    • 459views
    • 2comments
    1
  • Albert ENG
    Level 6
    Question about the task What's the cat's name?
    Java Syntax, Level 3, Lesson 5
    Under discussion
    please can someone help me to understand what exactly each line does and the sequence of the lines, i want to understand when we run the code which line works first and what does it do. If possible comment before each line like i did package en.codegym.task.jdk13.task04.task0403; /* What's the cat's name? */ public class Cat { //this is an instance variable private String name = "nameless cat"; public void setName(String name) { this.name = name; //dont understand how is // name variable go
    • 23.05.2022
    • 987views
    • 6comments
    0
  • Anitamalina
    Level 18
    København
    Question about the task Rarest bytes
    Java Core, Level 8, Lesson 3
    Under discussion
    Help to testing - no passing!Why isn't this correct? And any idea how to test it? What is byte in a text file?
    • 24.01.2023
    • 289views
    • 1comment
    0
  • Jaime Padilla
    Level 41
    Chandler
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    Is this task really asking us to return every possible armstrong number that could be entered?it grabs the correct Armstrong numbers when you run it, but times out on verification. [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407] memory 512 time = 0 [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1634, 8208, 9474, 54748, 92727, 93084, 548834] memory 19184 time = 0
    • 10.01.2023
    • 524views
    • 7comments
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Extending AmigoOutputStream
    Java Core, Level 8, Lesson 8
    Under discussion
    I have question I validate but now i delete from QuestionFileOutputStream implement AmigoOutputStream and I delete every @Override above implement methods. Now looks like program worked the same. What's different if any is? I think I do now classic wrapper class without inheritance AmigoOutputStream interface?
    • 22.01.2023
    • 488views
    • 5comments
    0
  • Guadalupe Gagnon
    Level 37
    Tampa
    Question about the task Table
    Java Core, Level 8, Lesson 8
    Resolved
    Baffling requirements.......This problem makes no sense. I have the slightest idea what is being asked for the three requirements I can not pass. Am i over thinking this, or is there missing information in the instructions/starting code?
    • 14.12.2018
    • 2640views
    • 17comments
    7
  • sreedhar s
    Level 9
    Wellington
    Question about the task Logging stack traces
    Java Syntax, Level 9, Lesson 2
    Resolved
    Validation failsCan you help to identify the mistake in the below solution. thanks
    • 22.01.2023
    • 273views
    • 3comments
    0
  • 1
  • ...
  • 31
  • 32
  • 33
  • 34
  • 35
  • ...
  • 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