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
  • ARIJIT MONDAL
    Level 1
    Kolkata
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Getting correct result , but verification fail as "The min method must return the minimum of the numbers a, b, and c."
    • 4/11/19
    • 1556views
    • 7comments
    0
  • kunal yerunkar
    Level 0
    Mumbai
    Question about the task My young friend
    Java Syntax, Level 0, Lesson 4
    Resolved
    only one requirement are pending ?
    • 4/8/19
    • 1522views
    • 3comments
    0
  • Connor
    Level 8
    Boston
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    Question about print in the main method.What is print in the main method? I just don't quite understand how we go from public static void main(String[] args) { print("Java is easy to learn!"); print("Java opens many opportunities!"); } to public static void print(String s) { //My code goes here. } I
    • 4/10/19
    • 2057views
    • 3comments
    0
  • Willie Mangram
    Level 19
    Pensacola
    Question about the task Method in a try-catch
    Java Syntax, Level 9, Lesson 11
    Resolved
    If the user enters text rather than a number, the program should display all previously entered numbers.Functions perfectly when I run it and when I enter a text it catches and displays the previous numbers entered and added into the ArrayList. I appreciate the assistance guys!
    • 1/18/19
    • 1968views
    • 4comments
    0
  • Pratik Jain
    Level 2
    mumbai
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    print methodcan any help me with this
    • 8/12/18
    • 1679views
    • 10comments
    0
  • Nastya Varennikova
    Level 11
    Sumy
    Question about the task Calling a constructor from a constructor
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Please, help me!I don't understand what is problem.
    • 4/5/19
    • 1715views
    • 8comments
    1
  • Niranjan Soni
    Level 15
    Bangalore
    Question about the task Calling a constructor from a constructor
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Please helpHelp please i'm not able to identify the problem in my code.
    • 9/26/18
    • 1819views
    • 5comments
    0
  • Laurap5
    Level 9
    Vilnius
    Question about the task Calling a constructor from a constructor
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Please helpI'm not able to identify the problem, for me looks everything fine :)
    • 11/20/18
    • 1647views
    • 5comments
    0
  • Billy Graves
    Level 10
    Austin
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    Change first letter of each word to uppercase conditionI've worked on this problem for a few hours now and I can't seem to find what the issue is. Whenever I test it, it will always come back correct but it will not validate and warns me of multiple spaces between words which I've tested for. Any recommendations on how to resolve this issue? Additional
    • 4/10/19
    • 1938views
    • 1comment
    0
  • past cham
    Level 6
    Delhi
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Resolved
    pls helpThe program should display the middle number of the three numbers. RECOMMENDATION FROM YOUR MENTOR Test the program with the numbers 1, 3, and 2. Expected output: 2
    • 4/10/19
    • 1895views
    • 2comments
    0
  • Kira
    Level 1
    Schaumburg
    Question about the task Let's change the code
    Java Syntax, Level 1, Lesson 4
    Under discussion
    Second variable?My code is working. I dont need to declare the second variable.
    • 10/8/18
    • 1698views
    • 6comments
    1
  • Thomas
    Level 12
    Gent
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    I keep getting an error. I guess i don't completely understand iteratorCan anyone help me? these tasks with iterator and maps are keeping me bussy...
    • 4/2/19
    • 1549views
    • 3comments
    0
  • pax
    Level 3
    Bratislava
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Can't find the mistake in my solutionCode executes without error but fails the last condition.
    • 4/8/19
    • 1389views
    • 3comments
    0
  • stjepang
    Level 8
    Sveti Iija
    Question about the task Display the square of a number
    Java Syntax, Level 1, Lesson 3
    Under discussion
    the server won't accept my solution. What is wrong in this simple code?package com.codegym.task.task01.task0140; /* Display the square of a number */ public class Solution { public static int number = 25; public void main(String[] args) { //write your code here System.out.println(number); System.out.println(number * number); }
    • 3/26/19
    • 1948views
    • 5comments
    0
  • Djole
    Level 41
    Belgrade
    Question about the task UnsupportedFileName
    Java Core, Level 8, Lesson 8
    Resolved
    i need a if/else in constructor but super(name) has to be the first line in constructor.public class TxtInputStream extends FileInputStream { private final String fileName; public TxtInputStream(String fileName) throws IOException, UnsupportedFileNameException { this.fileName = fileName; if(fileName.substring(fileName.length() -4).equals(".txt"))
    • 4/7/19
    • 1375views
    • 2comments
    0
  • Vatsal Patel
    Level 15
    Naperville
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    What am I doing wrong?I don't know what to do.
    • 4/8/19
    • 1454views
    • 3comments
    0
  • Jeet
    Level 2
    Najafgarh
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    Where is the mistake, from my end all conditions are satisfied.Please help me to complete this task.
    • 4/6/19
    • 1640views
    • 3comments
    0
  • Mike McKenna
    Level 25
    Wilmington
    Under discussion
    Nerd break end of level 1Hi, I am unable to unlock Nerd break @ end of Level 1 ? Thank You Mike
    • 4/8/19
    • 1312views
    • 1comment
    0
  • mallikarjuna
    Level 3
    Bangalore
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    plz fill this code public class Solution { public static int min(int a, int b, int c) { //write your code here } public static void main(String[] args) throws Exception { System.out.println(min(1, 2, 3)); System.out.println(min(-1, -2, -3)); System.out.println(min(3, 5, 3)
    • 8/21/18
    • 1303views
    • 4comments
    0
  • qsasdgkl
    Level 17
    San Diego
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    This compiles in IntellJ but refuses to run on the website, furthermore it claims that the program is not fulfilling requirements, but it does. package com.codegym.task.task04.task0412; /* Positive and negative numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.i
    • 4/8/19
    • 1577views
    • 3comments
    0
  • Skylar
    Level 2
    Flint
    Question about the task As simple as 2+2
    Java Syntax, Level 1, Lesson 8
    Resolved
    Not sure how to do thisI don't get how to do this because I dont get how to call a method aka the sum like what do I do here?
    • 10/10/18
    • 2516views
    • 8comments
    0
  • Sabine Meijran-Prins
    Level 7
    Enschede
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Why is a non existing object used as a parameter?I do not understand why in this code: public boolean fight(Cat anotherCat) { //write your code here } public static void main(String[] args) { } ... The object anotherCat is used as a parameter, but this object is not made into the main method?
    • 1/5/19
    • 1869views
    • 4comments
    0
  • Hankster
    Level 9
    Cleveland
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Under discussion
    apple.addPrice() vs. Apple.addPrice?I solved the problem but am puzzling over something. The given code calls the addPrice() method twice, once on apple instance: apple.addPrice(50);, and once on apple2 instance: apple2.addPrice(100);. I am uncertain what exactly is going on here with the dot operator being used to call a static met
    • 1/12/19
    • 1734views
    • 2comments
    0
  • Bill Wu
    Level 29
    Wellington
    Question about the task Find a substring
    Java Multithreading, Level 2, Lesson 5
    Resolved
    the last requirement not verifiedI tried different ways to define "the word that follows the 4th space", with space or punctuation marks etc. But none can be verified. Has anyone solved this?
    • 4/5/19
    • 2054views
    • 9comments
    0
  • Sokhibjon
    Level 14
    Tashkent
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Any Hints would be appreciated Thank you!!Can anyone please tell me what am i doing wrong?
    • 3/28/19
    • 1289views
    • 2comments
    0
  • pat
    Level 2
    Question about the task Kind words for the teacher
    Java Syntax, Level 0, Lesson 4
    Resolved
    Why doesn't it match the task conditions?What ist wrong with my code?
    • 4/2/19
    • 1451views
    • 2comments
    0
  • Learner
    Level 16
    Question about the task Beer
    Java Core, Level 3, Lesson 2
    Resolved
    Not sure what's wrongPlease help.
    • 9/27/18
    • 1903views
    • 3comments
    0
  • Aakash potepalli
    Level 22
    Bangalore
    Question about the task Hey, are you alive?
    Java Core, Level 3, Lesson 2
    Under discussion
    can anyone tell me where i am wrong package com.codegym.task.task13.task1308; /* Hey, are you alive? */ public class Solution { public static void main(String[] args) throws Exception { interface Person { public void isAlive() { // return true; }
    • 4/1/19
    • 1719views
    • 5comments
    0
  • Kotzebue
    Level 6
    Minsk
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    ERROR: The min method must return the minimum of the numbers a, b, and c.Hi evrybody. Can anyone help me, please? Here is my solution and it really works (on the site and in IDEA with different data), but it doesn't pass verification. public class Solution { public static int min(int a, int b, int c) { int minimum = 0; if ((a < b
    • 4/5/19
    • 1721views
    • 2comments
    0
  • Vani
    Level 1
    Delhi
    Under discussion
    The program should return a value of 20 and I am getting the required output as well. But when I used the "Code Analysis", it says that a javadoc comment is missing. Can you please help me in this? Thanks in advance!package com.codegym.task.task01.task0137; /* * *Only 20 will do. */ public class Solution { public static int a = 1; public static int b = 3; public static int c = 9; public static int d = 27; public static void main(String[] args) { int result = + a + b - c + d;
    • 4/3/19
    • 1259views
    • 3comments
    0
  • 1
  • ...
  • 335
  • 336
  • 337
  • 338
  • 339
  • ...
  • 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