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
  • Sabine Meijran-Prins
    Level 7
    Enschede
    Question about the task Static cats
    Java Syntax, Level 6, Lesson 11
    Archived
    How do you place every arraylist item on a new line?I am on this task for hours. I really do not know how print the Arraylist items on a new line.
    • 2/13/19
    • 2321views
    • 8comments
    0
  • Avinash Rana
    Level 7
    Kolkata
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    As per conditions my program follows but why its giving error?What to do?
    • 8/26/19
    • 1120views
    • 2comments
    0
  • Online Learner
    Level 6
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Under discussion
    heya can you solve this ??my code is
    • 6/29/19
    • 1735views
    • 7comments
    0
  • // Java Poser
    Level 18
    Cincinnati
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    Please someone helpBeen stuck here for an hour. I meet all conditions but CodeGym won't let me verify. please, any input will be much appreciated
    • 3/21/19
    • 2267views
    • 3comments
    0
  • Agalaivan
    Level 8
    Chennai
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    why wrongpackage com.codegym.task.task08.task0812; import java.io.*; import java.util.ArrayList; import java.util.Collections; /* Longest sequence */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamR
    • 7/20/19
    • 1611views
    • 2comments
    0
  • RS
    Level 13
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Can't figure it out. Can anyone take a look at my solution?
    • 7/14/19
    • 1387views
    • 2comments
    0
  • Muhsin Ak
    Level 10
    Thiruvananthapuram
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    whats wrong?i got the output correctly.package com.codegym.task.task08.task0812; import java.io.*; import java.util.*; /* Longest sequence */ public class Solution { public static void main(String[] args) throws IOException { //write your code here ArrayList numbers = new ArrayList(); Scanner sc = new Scan
    • 7/28/19
    • 1136views
    • 1comment
    0
  • SefoBe
    Level 16
    Paris
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Output is okay but failedWhat's wrong with it ?
    • 8/13/19
    • 1141views
    • 4comments
    1
  • Angeget
    Level 22
    Potsdam
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Resolved
    I tried everything - and now i a relly tired on this task - could any one help me to find what is wrong? Please and pleaseI tried everything - and now i a relly tired on this task - could any one help me to find what is wrong? Please and please
    • 2/25/19
    • 1777views
    • 7comments
    2
  • Carlos Cortázar
    Level 17
    Madrid
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    the program does not verify my solutionI check my solution and it runs well in all the cases, but when i press 'verify' the program fails. Why?
    • 8/24/19
    • 1127views
    • 4comments
    0
  • Bartek J.
    Level 13
    Zielona Góra
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Resolved
    Problem with addingMy code adds only adds every second input. Does anybody know why?
    • 8/20/19
    • 1229views
    • 2comments
    0
  • Jesús de Llera
    Level 23
    Badajoz
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    Confused with Example output Produces this result: But I don't get where the second 'Leela Turanga' line is coming from. Shouldn't the output consist of just 3 lines? Without the highlighted line in red??
    • 7/3/19
    • 1550views
    • 3comments
    1
  • Teemu-Petteri Remes
    Level 16
    Oulu
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Last condition not meet? What is wrong?I take N and made sure it cant be negative, don't understand what is wrong?
    • 8/24/19
    • 1234views
    • 1comment
    0
  • hidden #10468516
    Level 5
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Under discussion
    help!!i am not able to find whats wrong in my code
    • 7/21/19
    • 1581views
    • 5comments
    0
  • SefoBe
    Level 16
    Paris
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Why is that wrong ?How can you explain it ?
    • 8/21/19
    • 924views
    • 1comment
    0
  • hidden #10462592
    Level 8
    Question about the task Let's put together a rectangle
    Java Syntax, Level 5, Lesson 7
    Under discussion
    satisfied all conditions but... what is this one line that reads " copy another rectangle" ?? what does it actually mean? I haven't written any method for copying of parameters but yet it passed. How to create a copy function?
    • 8/17/19
    • 1596views
    • 2comments
    0
  • 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
    • 5/23/19
    • 1370views
    • 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")) {
    • 8/22/19
    • 1459views
    • 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.
    • 8/12/18
    • 2651views
    • 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?
    • 8/21/19
    • 1267views
    • 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.
    • 6/27/19
    • 1200views
    • 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?
    • 5/18/19
    • 1725views
    • 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
    • 8/23/19
    • 1208views
    • 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 ?
    • 8/20/19
    • 1365views
    • 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!
    • 8/23/19
    • 1127views
    • 2comments
    0
  • Vikrant.
    Level 1
    Delhi
    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
    • 8/22/19
    • 1264views
    • 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...
    • 8/22/19
    • 921views
    • 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.
    • 8/22/19
    • 1662views
    • 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?
    • 7/19/19
    • 1578views
    • 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.
    • 4/17/19
    • 1234views
    • 4comments
    0
  • 1
  • ...
  • 287
  • 288
  • 289
  • 290
  • 291
  • ...
  • 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