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
  • Nobody
    Level 37
    Seattle
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    an anyone help me out pleasecan anyone help me out of this please
    • 23.05.2019
    • 1239views
    • 2comments
    0
  • Alexander Shtunder
    Level 41
    San Francisco
    Question about the task UnsupportedFileName
    Java Core, Level 8, Lesson 8
    Resolved
    2 or 1?In this task, is it generally possible to avoid creating two objects of the FileInputStream class as in my code? public class TxtInputStream extends FileInputStream { public TxtInputStream(String fileName) throws Exception { super(fileName); if (fileName.endsWith(".txt")) {
    • 22.08.2019
    • 1345views
    • 2comments
    0
  • Sk Nazim Uddin
    Level 2
    Barddhaman
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion
    it is saying "In the main method, create a Person object and immediately assign a reference to it to the variable person." in level 2 , i cant understand what is it trying to say?In the main method, create a Person object and immediately assign a reference to it to the variable person.
    • 12.08.2018
    • 2497views
    • 7comments
    0
  • ilian44
    Level 30
    Veliko Turnovo
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Error Hi, Strange on my local pc is ok but the Validation doesnt accept it. What would be the problem?
    • 21.08.2019
    • 1146views
    • 7comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Arranging calls to join()
    Java Core, Level 6, Lesson 5
    Under discussion
    Last condition plsI understand all condition, but i cant do this. Pls give me the full code.
    • 27.06.2019
    • 1076views
    • 2comments
    0
  • hidden #10451198
    Level 14
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Its impossibleI can't do anything more. I'm trying many many other codes and I can't do anything to run it properly. What I need to change there to run this?
    • 18.05.2019
    • 1600views
    • 5comments
    0
  • Mikica
    Level 15
    Novi Sad
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Under discussion
    need help...cant figure out whats wrong...need help
    • 23.08.2019
    • 1096views
    • 1comment
    0
  • SefoBe
    Level 16
    Paris
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    How to separate by spaceWhat can I do to separate numbers by spaces ?
    • 20.08.2019
    • 1254views
    • 4comments
    0
  • Emanuele Gurini
    Level 18
    Porto Recanati
    Question about the task Tom, Jerry and Spike
    Java Core, Level 3, Lesson 6
    Under discussion
    Why STATIC here?Hey guys, i have a question although i made right the exercise; so, the question is: why i need to write Dog, Cat and Mouse classes STATIC here? Thank's a lot, i love you all!
    • 23.08.2019
    • 995views
    • 2comments
    0
  • Vikrant.
    Level 1
    Columbus
    Under discussion
    task07.task0713: What is wrong with the while loop, though program works with for loop package com.codegym.task.task07.task0713; import java.io.BufferedReader;z import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Playing Javarella */ public class Solution { public static void main(String[] args) throws Exception { //write your code
    • 22.08.2019
    • 1151views
    • 2comments
    0
  • Mikica
    Level 15
    Novi Sad
    Under discussion
    Getting really strange bug when typing anything...for a single letter typed i get additional letter written that i previously typed...for example i type "a" program types a but after for each additional letter program types every letter i typed before...
    • 22.08.2019
    • 820views
    • 4comments
    4
  • Andrea
    Level 20
    Question about the task Animal identification
    Java Core, Level 2, Lesson 2
    Resolved
    Mentor is saying Incorrect Value of Pig - However not seeing itThe output is correct, but the mentor says - Incorrect value for a Pig object. However I'm sending the correct value for the Pig object, since its' output is correct. Please advise.
    • 22.08.2019
    • 1543views
    • 1comment
    0
  • John
    Level 8
    Question about the task Static cats
    Java Syntax, Level 6, Lesson 11
    Archived
    Can't get the objects to print correctlyMy code as attached prints the hashCode for each object, 1 per line, but this doesn't meet the requirements. I'm trying to override the toString() method to correct this. But (after un-commenting lines 16-19), whatever I try to return causes an error. How do I fix this?
    • 19.07.2019
    • 1385views
    • 11comments
    2
  • AISHWARYA ANIL BHOSALE
    Level 12
    Pune
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Cannot pass the test caseWhat's the problem with this code? I can't pass the case.
    • 17.04.2019
    • 1134views
    • 4comments
    0
  • Ovo Leslie
    Level 26
    Lagos
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    Whats wrong with my code pls!!!My program seems to run correctly, but it is not satisfying the conditions. Help needed!
    • 12.08.2019
    • 1288views
    • 1comment
    0
  • ousi4ous
    Level 2
    Douala
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Resolved
    I have difficulties in getting this task done as i dont understand anything public static void print(String s) { //write your code here String data = print.("Java is easy to learn!"); String data = print.("Java opens many opportunities!"); print.write(data); String data = print.read("Java opens many opportunities!");
    • 08.04.2019
    • 1490views
    • 4comments
    1
  • kiwii
    Level 37
    Question about the task Space (part 3)
    Java Collections, Level 3, Lesson 15
    Resolved
    What is the problem?Cannot figure it out.
    • 22.08.2019
    • 947views
    • 2comments
    1
  • Premachandran
    Level 35
    Ernakulam
    Question about the task Food
    Java Core, Level 4, Lesson 4
    Under discussion
    pl help. I am getting this error "non-static method onSelect() cannot be referenced from a static context: Solution.java, line: 26, column: 19"Pl help.
    • 17.11.2018
    • 1743views
    • 4comments
    0
  • Anonymous #10410173
    Level 22
    Delhi
    Question about the task Minimum and Maximum
    Java Core, Level 1, Lesson 11
    Resolved
    help????what's the error????
    • 22.08.2019
    • 1165views
    • 1comment
    0
  • Matjes
    Level 12
    Prague
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Resolved
    Help! ☺Can anybody help me, please? I cannot find the root cause of why my code is not being accepted. Any help would be appreciated. Thank you!
    • 21.08.2019
    • 1401views
    • 4comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Why not work.If I'm correct. Line 45 should display its not a leap year if its not a leap year.
    • 15.05.2019
    • 1468views
    • 6comments
    0
  • Raisa Toscano
    Level 22
    Tepic
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Resolved
    i cant find the mistake, the output its ok... if(year%400==0 || year%4==0) System.out.println("Number of days in the year: 366"); else System.out.println("Number of days in the year: 365");
    • 15.12.2018
    • 2431views
    • 2comments
    0
  • AK
    Level 4
    Mumbai
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What is wrong in code? pl help.What is wrong in code? pl help.
    • 19.08.2019
    • 970views
    • 2comments
    0
  • Anwar
    Level 3
    Jaipur
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion
    i don't understand 5th Requirement. help me to understand. public static void main(String[] args) { //write your code here Person Person = new Person(); } public static class Person { //write your code here String name; int age; int weight; int money; } }
    • 08.06.2019
    • 1587views
    • 6comments
    0
  • vivek mankar
    Level 9
    Nagpur
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Under discussion
    I am not getting this ......? Ipackage com.codegym.task.task08.task0826; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.* ; /* Five winners */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputSt
    • 10.08.2019
    • 1206views
    • 3comments
    0
  • Letenyei Ádám
    Level 16
    Bakonyszombathely
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Under discussion
    What is the problem? Please help package com.codegym.task.task08.task0829; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /* Software update */ public class Solution { public sta
    • 23.07.2019
    • 1450views
    • 6comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Help pleaseI've tried everything to meet the last condition nothing works. Please Help. Thank you.
    • 21.08.2019
    • 866views
    • 2comments
    0
  • kapil
    Level 12
    delhi
    Question about the task Set of cats
    Java Syntax, Level 8, Lesson 11
    Resolved
    problem while printingi have checked by printing all three cats and by printing cats after removing one, but it fails all time....please help someone
    • 31.01.2019
    • 2239views
    • 5comments
    1
  • Itachi
    Level 16
    Brooklyn
    Question about the task Minesweeper (Part 13/16)
    Games, Level 0, Lesson 0
    Resolved
    helpit is not compiling
    • 21.08.2019
    • 1327views
    • 0comments
    0
  • hidden #10514438
    Level 2
    Under discussion
    i dont understand the code the relation between x and ypackage com.codegym.task.task01.task0107; /* No comments needed */ public class Solution { public static void main(String[] args) { int x = 2; int y = 12; // y = x * y; y = x + y; x = y - x; y = y - x; System.out.println(x);
    • 20.08.2019
    • 961views
    • 1comment
    0
  • 1
  • ...
  • 285
  • 286
  • 287
  • 288
  • 289
  • ...
  • 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