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
  • Jill L
    Level 10
    China
    Question about the task Positive and negative numbers
    Java Syntax, Level 3, Lesson 10
    Under discussion
    I don't understand what's wrong. Why" System.out.println "can't work? int poscount=0; int negcount=0; for(int i=0;i<3;i++){ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); if(Integer.parseInt(reader.readLine())>0) poscount++; else if(Integer.parseInt(reader.readLine())<0) negcount++; }
    • 22.02.2023
    • 462views
    • 7comments
    0
  • ImDevin
    Level 15
    Old Town
    Question about the task Fixing bugs
    Java Core, Level 4, Lesson 8
    Under discussion
    interface or abstract class?here, Orca class extends SeaCreture(abstract class with an abstract method) & implements CanSwim(has one method). The solution shows one method that is being overridden (@Override - CanSwim). It looks like it's the abstract method that is getting implemented, which it should. However, shouldn
    • 10.06.2021
    • 1022views
    • 5comments
    0
  • Hafsah Jilanee
    Level 10
    Karachi
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    Please help please help i'm getting all the correct results but it won't pass testing
    • 02.11.2019
    • 1231views
    • 2comments
    0
  • Reyaz Ahmad Bhat
    Level 4
    Anantnag Jammu And Kashmir
    Question about the task High accuracy
    Java Syntax, Level 3, Lesson 7
    New
    Solution Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc. nextDouble(); if(Math.abs(b - a) < 0.000001 ){ System.out.println("The numbers are equal"); }else{ //write your code here System.out.println("The
    • 20.02.2023
    • 365views
    • 0comments
    0
  • Reyaz Ahmad Bhat
    Level 4
    Anantnag Jammu And Kashmir
    Question about the task Triangle
    Java Syntax, Level 3, Lesson 6
    Under discussion
    Solution if((a+b)<=c || (b+c)<=a || (a+c)<=b){ System.out.println(TRIANGLE_DOES_NOT_EXIST); }else{ System.out.println(TRIANGLE_EXISTS); }
    • 19.02.2023
    • 350views
    • 1comment
    0
  • hendra gunawan
    Level 9
    tebing tinggi
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 9, Lesson 2
    Under discussion
    please help ...I'm stuck with the first and second requirement task....for binarynumber input ,I tried to use null as input....the result is null pointer exception....how to solve this task...some advice please
    • 20.02.2023
    • 260views
    • 2comments
    0
  • Kiran Kumar Alisam
    Level 8
    Erie
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    triangle isnt possible not getting executedi have added the code when triangle is possible and added else with the conditions mentioned when triangle isnt possible .. how to get the text printed for triangle isnt possible
    • 31.03.2022
    • 658views
    • 2comments
    0
  • Reyaz Ahmad Bhat
    Level 4
    Anantnag Jammu And Kashmir
    Question about the task Three numbers
    Java Syntax, Level 3, Lesson 5
    Under discussion
    Solution public class Solution { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int number1 = scanner.nextInt(); int number2 = scanner.nextInt(); int number3 = scanner.nextInt(); if (number1 == number2) { if (number1
    • 19.02.2023
    • 389views
    • 1comment
    0
  • Reyaz Ahmad Bhat
    Level 4
    Anantnag Jammu And Kashmir
    Question about the task Quadrants
    Java Syntax, Level 3, Lesson 6
    New
    Solution Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a > 0 && b > 0){ System.out.println("1"); } if(a < 0 && b > 0){ System.out.println("2");
    • 19.02.2023
    • 280views
    • 0comments
    0
  • Reyaz Ahmad Bhat
    Level 4
    Anantnag Jammu And Kashmir
    Question about the task To work or not to work? That is the question
    Java Syntax, Level 3, Lesson 6
    New
    Solution Scanner sc = new Scanner(System.in); int age = sc.nextInt(); if(age < 20 || age > 60){ System.out.println("You don't have to work"); }
    • 19.02.2023
    • 249views
    • 0comments
    0
  • NsoundarMCA
    Level 18
    Coimbatore
    Resolved
    Playing with MAX Value int x = Integer.MAX_VALUE; long y = Long.MAX_VALUE; System.out.println(x); System.out.println(y); System.out.println(x*2); // result -2 System.out.println(y*2); // result -2 Why I'm getting -2 as result when multiplying maximum value by 2, also I'm not evening
    • 19.02.2023
    • 236views
    • 2comments
    0
  • EugeneEmory
    Level 8
    San Antonio
    Question about the task Minesweeper (Part 1/16)
    Games, Level 0, Lesson 0
    Under discussion
    Help?I believe I did exactly what the instruction laid out but I'm getting and unknown error?
    • 02.03.2021
    • 756views
    • 1comment
    0
  • NsoundarMCA
    Level 18
    Coimbatore
    Under discussion
    Index of ArrayWhy don't array starts with 1 ? Why java creators designed to starts with 0 rather than 1
    • 19.02.2023
    • 255views
    • 1comment
    0
  • Opeyemi Olaleye
    Level 5
    Question about the task 18+
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Coding StructureI read the supplemental information on the scanner function and took a try at it. It seems to work but I was curious why the solution still uses things like BufferedReader when scanner is shorter. Does this have to do with proper coding structure or something? Currently the code doesn't meet the tas
    • 14.02.2021
    • 472views
    • 2comments
    0
  • Filip
    Level 4
    Karlovac
    Question about the task Repetition is the mother of all learning
    Java Syntax, Level 2, Lesson 8
    Resolved
    Please I need your support with this task!Please I need your support with this task!
    • 12.11.2018
    • 2039views
    • 7comments
    0
  • Mahendra Reddy
    Level 2
    CodeGym University in India
    Question about the task Uh... Happy New Year!
    Java Syntax, Level 1, Lesson 6
    Under discussion
    javahow to coding
    • 08.11.2022
    • 414views
    • 2comments
    0
  • Kasia
    Level 22
    Zabrze
    Question about the task Minesweeper (Part 2/16)
    Games, Level 0, Lesson 0
    Resolved
    import com.codegym.engine.cell.*; doesn't want to import in IntelJi. Hello, if any of you found it that import com.codegym.engine.cell.*; doesn't want to import in IntelJi there is an easy solution(works for my anyway). Close intellij and remove manually folder where you have your codegym code. After restarting Intellij it will ask you to choose a folder to downloa
    • 04.11.2020
    • 1216views
    • 4comments
    2
  • hidden #10759343
    Level 2
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Need help! PleaseThis code I created, but still have issue. Please, help! package com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { int b = 1000 + 7000;
    • 24.06.2021
    • 695views
    • 5comments
    0
  • ilian44
    Level 30
    Veliko Turnovo
    Question about the task Overriding serialization in a thread
    Java Core, Level 10, Lesson 10
    Resolved
    StrangeIt seems all conditions are met but still cant pass the test ?
    • 14.01.2020
    • 1288views
    • 5comments
    0
  • Andrei
    Level 41
    Question about the task No mistakes
    Java Core, Level 4, Lesson 4
    Resolved
    Huh?Hello, according to the computation done my the MyBrain Quantum Computer somewhere in Europe, the following result should be displayed when using the printClasses method: Jerry; - for obj Mouse; - for mouse; obj being downcasted to mouse GrayMouse; - for grayMouse as it was downcasted to GrayMouse
    • 01.12.2020
    • 629views
    • 9comments
    4
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Log parser (part 7)
    Java Collections, Level 7, Lesson 15
    New
    Possible date parameter conflictConsider the following query, which is viable given how we have built the project so far: "get ip from date = \"1.1.2012 12:12:12\" and date between \"11.12.2013 0:00:00\" and \"03.01.2014 23:59:59\"" It is not clear what should happen given a query like this. Should it ignore the date = ? Or shoul
    • 15.02.2023
    • 234views
    • 0comments
    0
  • Carbune George
    Level 22
    Iasi
    Question about the task Find the bugs
    Java Core, Level 10, Lesson 10
    Resolved
    Need helpI can't figure out what's the problem. Edit: Problem solved.
    • 22.06.2019
    • 2151views
    • 8comments
    0
  • Bupal Junior
    Level 5
    Bristol
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    Please Help out . What am i doing wrong, I cant satisfy the last req?package com.codegym.task.task04.task0427; /* Describing numbers */ import java.util.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner input = new Scanner(System.in); int n = input.nextInt(); /* "
    • 26.05.2019
    • 1429views
    • 5comments
    0
  • Павел Артеменко
    Level 41
    Krasnodar
    Question about the task Log parser (part 1)
    Java Collections, Level 7, Lesson 15
    Under discussion
    Bugged!Validation of Condition 6 is bugged. Or description of condition is not correct.
    • 16.06.2019
    • 1271views
    • 4comments
    0
  • Andrei
    Level 41
    Question about the task Currencies
    Java Core, Level 4, Lesson 8
    Under discussion
    Why do I also have to create the abstract constructor to be able to extend an abstract class?In USD, Euro and Ruble class.
    • 03.12.2020
    • 642views
    • 20comments
    1
  • Andrei
    Level 41
    Question about the task Log parser (part 1)
    Java Collections, Level 7, Lesson 15
    Under discussion
    This is probably one of the stupidest tasks so far... such little information... It's ridiculous.1.2.2. The getUniqueIPs() method must return a set of all unique IP address. Store each IP address in a String. - cool from where? I had a look at the solution, the mentor creates a new class, new methods, in all about 230 lines of code. So far I have 39. How does CodeGym expect of me to come up w
    • 27.07.2021
    • 419views
    • 1comment
    0
  • Tomek
    Level 11
    Gdansk
    Question about the task Logging stack traces
    Java Syntax, Level 9, Lesson 2
    Under discussion
    What's wrong with my code? (Same output)Hi, what's wrong with my solution? Output seems to be the same. Kind Regards
    • 13.02.2023
    • 220views
    • 1comment
    0
  • Profj
    Level 20
    Lagos
    Question about the task Restaurant
    Java Core, Level 7, Lesson 10
    Under discussion
    Help a friend please.What can I do on this task? I've checked and checked and checked.
    • 26.06.2019
    • 1634views
    • 4comments
    0
  • ugabuga
    Level 36
    Question about the task Restaurant (part 21)
    Java Multithreading, Level 9, Lesson 15
    New
    Second Requirement will not pass, even though my code is identical with solution...!! package com.codegym.task.task27.task2712; import com.codegym.task.task27.task2712.kitchen.Cook; import com.codegym.task.task27.task2712.kitchen.Order; import com.codegym.task.task27.task2712.statistics.StatisticsManager; import java.util.Observable; import java.util.Observer; import java.util.Set
    • 12.02.2023
    • 377views
    • 0comments
    0
  • Richard Han
    Level 4
    Lipa
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Help! I can't understand this. This lesson did not explain how to do this exactly, and it's expecting us to answer this ;-;I'm not giving hate to codegym, I just wish they teached us how to do this before they gave us the tasks. ok ok now. I don't understand this. Please help. And ok, I'll say it, I copied the solution below from another help section. I understand the lesson, but that doesn't mean I understand the tasks
    • 10.09.2018
    • 2057views
    • 6comments
    4
  • 1
  • ...
  • 29
  • 30
  • 31
  • 32
  • 33
  • ...
  • 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