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
  • Mykhailo Kuvshynov
    Level 8
    Dnipro
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Resolved
    Help me pleasecan't find where is problem
    • 23.08.2019
    • 1647views
    • 3comments
    0
  • Mykola
    Level 14
    Toronto
    Question about the task Minimum of N numbers
    Java Syntax, Level 8, Lesson 11
    Resolved
    Can't pass one verification This step is throwing an error. "The getIntegerList() method should read the number N from the keyboard and then return a list of N elements, which has been filled with numbers read from the keyboard." Any suggestion what am I missing at this step. Thank you.
    • 20.08.2019
    • 1568views
    • 2comments
    0
  • Anusha Govindarajan
    Level 7
    Amsterdam
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Resolved
    I seem to get the correct output but task requirements are not met. public class Solution { public static void main(String[] args) throws Exception { //write your code here String[] arr = new String[10]; BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); //String s = reader.readLine(); for(int i
    • 26.08.2019
    • 1354views
    • 3comments
    0
  • Au Ivan
    Level 17
    Hong Kong
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Resolved
    The outcome is correct, but....What is the problem? The output fits the answer, but why is the task not complete?
    • 25.08.2019
    • 1595views
    • 2comments
    0
  • Rama
    Level 3
    Ottawa
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Resolved
    Syntax error help?Please help where I made the error. unable to figure it out:
    • 22.08.2019
    • 1288views
    • 3comments
    0
  • Travis Cuevas
    Level 3
    Bedminster
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    whywhat am i doing wrong?
    • 08.08.2019
    • 1077views
    • 3comments
    0
  • Anusha Sallas
    Level 2
    Kalpetta
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    What is wrong with with my codeCan u pls solve this
    • 01.06.2019
    • 1512views
    • 4comments
    0
  • hidden #10426395
    Level 2
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    Who can help guys?Hey guys, I'm new to java and I don't know how to make this converter work. It looks complicated. Perhaps anybody can explain me how to do it?
    • 23.02.2019
    • 1658views
    • 3comments
    0
  • Prabhanjan Pandey
    Level 2
    pune
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    please tell the mistake in my code package com.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { int d; if(a<=b&&a<=c) d=a; else if(b<=a&&b<=c) d=b; else if(c<=a&&a
    • 13.08.2018
    • 1986views
    • 6comments
    0
  • Marcin
    Level 8
    Warsaw
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Requirements are met but won't verifyThe code is working, but I can't verify the task. What's wrong?
    • 16.08.2019
    • 967views
    • 1comment
    0
  • jorge ives murillo paredes
    Level 40
    New York City
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    What is wrong ? public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader ( new InputStreamReader ( System.in ) ); for (int a = 0;a < 5;a++) { strings.add ( reader.readLine () ); } int max = st
    • 21.08.2019
    • 975views
    • 1comment
    0
  • Mukesh Vudayagiri
    Level 10
    Ferokh
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Under discussion
    What's wrong?The compiler is showing: java.lang.NumberFormatException: Solution.java, method main, line: 21. what is wrong here? Also please explain my other mistakes. Thanks.
    • 09.09.2018
    • 2197views
    • 16comments
    0
  • Matjes
    Level 12
    Prague
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Resolved
    Cannot pass the last conditionHi Guys, Can you please help me? I am missing the last condition and don't know how to go further. This is what I get as output when entering numbers from 1 to 8 as input: 1 2 3 4 5 6 7 8 null null 8 7 6 5 4 3 2 1 Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 at com.c
    • 27.08.2019
    • 1380views
    • 3comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Archived
    unreported exception java.io.IOException; must be caught or declared to be thrown String filename = reader.readLine(); HELP!I am receiving this failure: unreported exception java.io.IOException; must be caught or declared to be thrown String filename = reader.readLine(); And i don´t understand where the problems is... Can someone help me?
    • 26.08.2019
    • 3749views
    • 6comments
    0
  • Avinash Rana
    Level 7
    Kolkata
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    Whats the problem?As per me everything is correct.
    • 26.08.2019
    • 1149views
    • 2comments
    0
  • Jay
    Level 17
    Washington
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Under discussion
    Creating separate fileMaybe I'm missing the obvious, but how do I create and save the classes into separate files on the CodeGym website?
    • 17.08.2019
    • 1061views
    • 1comment
    0
  • Pawan Harde
    Level 4
    Mumbai
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    last condition not fullfilledidk how..../////////
    • 21.09.2018
    • 1502views
    • 7comments
    1
  • 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.
    • 13.02.2019
    • 2160views
    • 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?
    • 26.08.2019
    • 1007views
    • 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
    • 29.06.2019
    • 1577views
    • 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
    • 21.03.2019
    • 2154views
    • 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
    • 20.07.2019
    • 1476views
    • 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?
    • 14.07.2019
    • 1259views
    • 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
    • 28.07.2019
    • 1026views
    • 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 ?
    • 13.08.2019
    • 1027views
    • 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
    • 25.02.2019
    • 1633views
    • 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?
    • 24.08.2019
    • 1012views
    • 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?
    • 20.08.2019
    • 1110views
    • 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??
    • 03.07.2019
    • 1391views
    • 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?
    • 24.08.2019
    • 1118views
    • 1comment
    0
  • 1
  • ...
  • 284
  • 285
  • 286
  • 287
  • 288
  • ...
  • 372
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