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
  • Ashish RajAnand
    Level 13
    Bhilai
    Question about the task ConsoleReader class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    what if i will created static BufferReader variable? public class ConsoleReader { static BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); public static String readString() throws Exception { String name = reader.readLine(); return name; } public static int readInt() throws E
    • 3/1/20
    • 1031views
    • 2comments
    2
  • Ashish RajAnand
    Level 13
    Bhilai
    Question about the task HashMap of cats
    Java Syntax, Level 8, Lesson 3
    Resolved
    i can't understand?How toString method work ? After s.put(String,Cat) here how Cat return Name i can't understand please any one can explain?
    • 3/12/20
    • 1221views
    • 1comment
    0
  • Ashish RajAnand
    Level 13
    Bhilai
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Resolved
    What is error ,why nor match with mentor code public class Solution { public static void main(String[] args) { hackSalary(8000); } public static void hackSalary(int a) { a=a+1000; System.out.print("Your salary is: " +a+ " dollars per month"); //write your code here } }
    • 10/8/18
    • 2316views
    • 10comments
    0
  • Ashish RajAnand
    Level 13
    Bhilai
    Question about the task Constructor
    Java Syntax, Level 5, Lesson 9
    Resolved
    can any one please clarify about how this is different public void Circle(){ ....... } public Circle(){ ....... } what effects when we used void . i know void means null.
    • 2/20/20
    • 1365views
    • 5comments
    0
  • zachary zambo
    Level 26
    Athens
    Question about the task Build a tree (part 2)
    Java Collections, Level 1, Lesson 15
    Under discussion
    What am I overlooking here?I'm not sure what I am missing.
    • 4/24/20
    • 961views
    • 1comment
    0
  • Ashish RajAnand
    Level 13
    Bhilai
    Resolved
    what is error and why ? public class Cat { String name; int age; static int count = 0; public static void main(String[] args) { Cat smudge = new Cat(); smudge.age = 3; smudge.name = "Smudge"; count++; Cat fluffy = new Cat(); fluffy.age = 5; fluffy
    • 10/24/18
    • 1282views
    • 2comments
    0
  • Ashish RajAnand
    Level 13
    Bhilai
    Resolved
    please explain how to create composite data type and how to use it and in the task 0130 how to create Celsius(double) method
    • 10/7/18
    • 1451views
    • 1comment
    0
  • Ashish RajAnand
    Level 13
    Bhilai
    Resolved
    doubt please clear sir as fast as possible 1-why are we required to create static to main method.- 2-why are we required to create public to main method. 3-can i use int at the place of void in main method
    • 9/29/18
    • 1606views
    • 5comments
    1
  • Sidd
    Level 7
    Maple Valley
    Question about the task 18+
    Java Syntax, Level 4, Lesson 6
    Resolved
    ??I did everything but it doesn't work??? What did I do wrong?
    • 5/15/20
    • 989views
    • 2comments
    0
  • Profj
    Level 20
    Lagos
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    Please i don't know what else i can doPlease help me.
    • 6/6/19
    • 1793views
    • 7comments
    0
  • Laurence
    Level 10
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Help please? My output is correct but it still doesn't satisfy the last two conditions.I've run it through another compiler with all negatives and it returns the correct maximum value. Any help would be greatly appreciated.
    • 5/15/20
    • 527views
    • 2comments
    0
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task Minimum number of statics
    Java Syntax, Level 6, Lesson 11
    Under discussion
    what is my mistake??someone,, please help me
    • 9/13/18
    • 2617views
    • 8comments
    0
  • Peter Gray
    Level 20
    Compiegne
    Question about the task Debug, debug, and again debug
    Java Core, Level 5, Lesson 12
    Under discussion
    Failed: The A class's initialize method must have the strictest access modifier.It says that my class A doesn't have the strictest access modifier. And here is the code: public static class A { private int f1 = 7; private A(int f1) { this.f1 = f1; initialize(this.f1); } private void initialize(int f1) {
    • 5/15/20
    • 546views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Threads and bytes
    Java Core, Level 8, Lesson 11
    Under discussion
    One conditionHelp me pls guys
    • 6/29/19
    • 1793views
    • 5comments
    0
  • Pablo Souza
    Level 22
    Brisbane
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Under discussion
    Can't understand "case -u"Hey folks!! I just passed the case "-u" requirement but I can't quite understand why I had to create another "person" object while it wasn't necessary in task 10 below: else if (args[0].equals("-u")) { Date date2 = new SimpleDateFormat("MM dd yyyy", Locale.ENGLISH).parse(args[4]);
    • 5/5/20
    • 558views
    • 1comment
    0
  • David
    Level 26
    Bucharest
    Question about the task Different methods for different types
    Java Core, Level 5, Lesson 12
    Resolved
    Why is not working the method for Integer values?When I read a negative value or a value greater than 128 it doesn.t print anthing...it is supposed to print : ""This is an Integer. Value: " + value": I really cant understand why is not printing that message when I call it..Can anyone help me, please!! package com.codegym.task.task15.task1519;
    • 5/14/20
    • 639views
    • 8comments
    0
  • Michael Brimage
    Level 19
    Washington D.C.
    Question about the task Sorting bytes
    Java Core, Level 8, Lesson 3
    Resolved
    bytes not added to For some reason I am displaying the indices instead of the literal number. I attempted to save the numbers in a set and then convert to a list and sort. please help. Thanks
    • 5/14/20
    • 693views
    • 14comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task Task about algorithms
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Solved, but did not quite understandHi! I saw that the code bellow, suggested by Guadalupe, solved the problem. But I didn't understand why and how this loops of arrays place the words in alphabetical order. Why the "greater" string is placed after, and the "smaller" is placed before? What does it have to do with the alphabet? (I've
    • 5/14/20
    • 736views
    • 4comments
    0
  • Lgd
    Level 20
    London
    Question about the task Wine tasting
    Java Core, Level 4, Lesson 8
    Archived
    I'm unable to figure out the issue with the getBubblyWine() method and objectAll items pass except the last. Perhaps I've stared at it for too long but I cannot see my error. please help. thanks
    • 5/15/20
    • 758views
    • 2comments
    0
  • shaan mohd khan
    Level 13
    Jhansi
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    please help...very much frustated by this task...help
    • 2/16/19
    • 1752views
    • 5comments
    0
  • Arnold Cytrowski
    Level 29
    Breslau
    Question about the task Wait and see
    Java Multithreading, Level 5, Lesson 9
    Under discussion
    HelpAnyone can explain to me what should i do to pass it and how it works?
    • 5/14/20
    • 536views
    • 4comments
    0
  • Rafał Pawłowski
    Level 22
    Southampton
    Question about the task Symbol frequency
    Java Core, Level 8, Lesson 11
    Resolved
    Why does it not work?I have tested with several ASCII symbols and it works great
    • 5/15/20
    • 534views
    • 3comments
    0
  • Henry
    Level 6
    Stuttgart
    Question about the task Getters and setters for the Dog class
    Java Syntax, Level 5, Lesson 5
    Under discussion
    helloWhats the mistake on line 18?
    • 5/15/20
    • 900views
    • 2comments
    0
  • Prateek Parmar
    Level 4
    Chennai
    Question about the task Minimum of two numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Getting the correct answer but not getting all sucessful test casesIt's showing The program must display minimum of two integers.I'm getting the correct answer during verification as well.
    • 9/4/18
    • 1485views
    • 4comments
    0
  • Lgd
    Level 20
    London
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Resolved
    The program must copy the contents of the first file to the second one.It seems I'm not alone in my struggle with this one... Can anybody provide some insight please. Many thanks in advance
    • 4/6/20
    • 1082views
    • 0comments
    0
  • SOUFIANE DAHIMI
    Level 32
    Marrakech
    Question about the task Iterating through a file tree
    Java Collections, Level 1, Lesson 2
    Archived
    Please what's wrong with this code I don't know where is the mistake
    • 4/30/20
    • 1027views
    • 4comments
    0
  • NEGI
    Level 2
    dehradun
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion
    how to create reference of an object??what's wrong in the code??
    • 5/15/20
    • 521views
    • 1comment
    0
  • ty
    Level 2
    Hawthorne
    Under discussion
    iIM STUCKKKKKImplement the print3 method. The method should display the passed string (word) three times, but on the same line. Words must be separated by a space and should not merge into one. (THIS IS MY CODE BUT IT IS WRONG) public class Solution { public static void print3(String s) { System.ou
    • 5/15/20
    • 409views
    • 1comment
    0
  • Dmitrii
    Level 38
    Saint Petersburg
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Resolved
    Can't figure out what am i missingCode does the job with all my tests, but...
    • 5/9/19
    • 1953views
    • 4comments
    0
  • Sidd
    Level 7
    Maple Valley
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    ??Why does this not work? The output is correct but the last condition does not meet. I am so confused.
    • 5/14/20
    • 484views
    • 1comment
    0
  • 1
  • ...
  • 195
  • 196
  • 197
  • 198
  • 199
  • ...
  • 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