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
  • Lei Angelique Hernandez
    Level 2
    Makati
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    How to call in main method twice?How to call in main method twice?
    • 13.11.2018
    • 3307views
    • 6comments
    0
  • Tomasz
    Level 13
    Warsaw
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    What is wrongCan somebody help me to find what is wrong? Im using "max" to find index of longest string, and "count" to check how many times i should display it (if there is more than 1 longest string). It works fine with: a aa aaa aaaa aaaa
    • 05.06.2019
    • 1615views
    • 3comments
    0
  • Baljinder Singh
    Level 20
    Toronto
    Question about the task Cats
    Java Core, Level 4, Lesson 4
    Resolved
    What's the problem here ?
    • 21.09.2018
    • 2140views
    • 6comments
    2
  • Igor
    Level 20
    Nis
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Resolved
    It is not workingWhat am I overseeing?
    • 19.07.2019
    • 1272views
    • 2comments
    0
  • nagabenang
    Level 6
    Bekasi
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    The answer is wrong but why the lesson consider it right? The right answer should be 6, right? But this lesson consider 5 as true anyway. And now the code won't work. I think this solution broke the verification process of this lesson.
    • 19.07.2019
    • 1189views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Under discussion
    One condition,guysNeed help
    • 29.06.2019
    • 1296views
    • 2comments
    0
  • Alex Dumitriu
    Level 17
    Bucharest
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Any idea what I'm missing here? Thxpublic class Solution { public static void main(String[] args) throws Exception { //write your code here ArrayList mainList = new ArrayList<>(); ArrayList list2 = new ArrayList<>(); ArrayList list3 = new ArrayList<>(); ArrayList lastList
    • 20.05.2019
    • 1309views
    • 5comments
    0
  • hidden #10463947
    Level 7
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Under discussion
    ANSWER package com.codegym.task.task04.task0442; /* Adding */ import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //write your code here int a = 0; int sum = 0; Scanner scan = new Scanner(Sy
    • 14.06.2019
    • 1337views
    • 5comments
    2
  • Neha Anjum
    Level 6
    Hyderabad
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Under discussion
    .....?????public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int sum = 0; boolean isExit = false; while(true) { String s = reader.readLine();
    • 21.09.2018
    • 1631views
    • 3comments
    0
  • satya vath
    Level 9
    Mumbai
    Question about the task Remove and insert
    Java Syntax, Level 7, Lesson 6
    Resolved
    Please help me package com.codegym.task.task07.task0711; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* Remove and insert */ public class Solution { public static void main(String[] args) throws Exception { //write your code here ArrayList
    • 23.11.2018
    • 2046views
    • 7comments
    0
  • Robert
    Level 9
    Lombard
    Question about the task Rounding numbers
    Java Core, Level 8, Lesson 11
    Resolved
    I can not get this to verifyI have read through all the other questions and can not figure out why this will not pass. In my test file it prints correctly, it has no spaces at the end. I have used Math.round to round my numbers. It still will not pass verification.
    • 18.07.2019
    • 1552views
    • 2comments
    0
  • Bazuka
    Level 19
    Krakow
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Under discussion
    Hello can u tell me what's wrong?public class Solution { public static void main(String[] args) { System.out.println(sumDigitsInNumber(546)); } public static int sumDigitsInNumber(int number) { int number1 = (5+4+6); return number1; } }
    • 17.07.2019
    • 1650views
    • 5comments
    0
  • Michał Kwaśny
    Level 22
    Krakow
    Question about the task Robot wars
    Java Core, Level 3, Lesson 11
    Resolved
    Need help :)I have no idea what is not correct. Can anyone shed some light on it?
    • 19.07.2019
    • 1375views
    • 2comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the task The code won't compile…
    Java Syntax, Level 9, Lesson 11
    Resolved
    Can´t find the failure, what am i missing? Can´t find the failure, what am i missing?
    • 19.07.2019
    • 1550views
    • 2comments
    0
  • Naveen Dangra
    Level 8
    Rasipuram
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    why it is not verifying the last one?package com.codegym.task.task07.task0728; import java.io.BufferedReader; import java.io.InputStreamReader; /* In decreasing order */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(Sys
    • 18.07.2019
    • 1306views
    • 2comments
    0
  • Antonia
    Level 10
    Question about the task Cat and statics
    Java Syntax, Level 6, Lesson 11
    Under discussion
    ??wrong???
    • 19.07.2019
    • 1582views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Under discussion
    One condition plsHelp me
    • 28.06.2019
    • 1315views
    • 1comment
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Archived
    Cannot solve something wrongPlease show......
    • 08.07.2019
    • 987views
    • 3comments
    0
  • Marek Swiderski
    Level 14
    Lucan
    Question about the task Reading a file
    Java Core, Level 3, Lesson 11
    Archived
    Why does it say FileInputStream and BufferedReader not closed?Hi, Can you please help me with this task? I implemented the .close() method on all the IO objects but it still doesn't verify. When I run it in IntelliJ the program works, reads the file I input, and prints its content. There is no errors. Thank you.
    • 17.07.2019
    • 1667views
    • 2comments
    0
  • Divakar Reddy
    Level 15
    Nandyal
    Question about the task Ascending numbers
    Java Syntax, Level 6, Lesson 11
    Under discussion
    getting output correct but not satisfting the conditionscode is working but not satisfying conditions
    • 03.07.2019
    • 1234views
    • 3comments
    0
  • Akshay Y Shirsat
    Level 7
    Mumbai
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Resolved
    what is the issue in this code?can you tell me where I am making an error?
    • 25.08.2018
    • 2512views
    • 11comments
    0
  • Suyash
    Level 2
    Pune
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    what is wrong with my sollution? why am I getting syntax error that I am missing return statement? what is the correct solution?the error that I am getting: com/codegym/task/task02/task0216/Solution.java:16: error: missing return statement } ^
    • 08.07.2019
    • 1235views
    • 5comments
    0
  • Hossein Shams
    Level 1
    Atlanta
    Under discussion
    Games: Mine Picker; issue with section 6 => My code is being rejected by the serverThis is how I implemented getNeighbor() method, but apparently, there's a problem with it. Can anyone please tell me what's wrong? I'm getting an error with the third condition: • The countMineNeighbors() method should, for each non-mined cell in the gameField matrix, count the number of adjacent mi
    • 15.07.2019
    • 1461views
    • 3comments
    0
  • MBC
    Level 14
    Apeldoorn
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    Problem with last test requirementHi, I seem to be getting the correct output when printing but the last test requirement keeps failing.
    • 14.07.2019
    • 1364views
    • 6comments
    0
  • JeRiF94
    Level 22
    Baku
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Under discussion
    Please helpI've solver first CRUD ; The problem in second , I make the same logic with comment , but it not advantage;
    • 15.06.2019
    • 1173views
    • 1comment
    0
  • Joseph
    Level 22
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Resolved
    Can't figure this outIt works but it doesn't pass testing. I've tested it before verify and it's adding as well as adding in -1 before closing.
    • 16.07.2019
    • 1413views
    • 1comment
    0
  • John Michael Montuya
    Level 10
    Cebu City
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    Why is my code failing the last part of verification? Everything checks out but " The displayed result should match the task conditions for any input data. " Please help :(
    • 19.05.2019
    • 2065views
    • 9comments
    0
  • Thebe
    Level 7
    Benares
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    Finding shortest stringsWhy is 1st and last requirement are not being fulfilled .
    • 06.03.2019
    • 2909views
    • 5comments
    0
  • Yusra Ansari
    Level 9
    Karachi
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    My first two conditions are not verifying Can someone please explainMy first two conditions are not verifying Can someone please explain
    • 24.09.2018
    • 1558views
    • 13comments
    0
  • yara
    Level 8
    St.gallen
    Question about the task What sort of list is that?
    Java Syntax, Level 7, Lesson 6
    Resolved
    hopelessNo idea what I'm doing wrong. Does somebody have an idea? Thank you!
    • 18.06.2019
    • 1434views
    • 3comments
    0
  • 1
  • ...
  • 296
  • 297
  • 298
  • 299
  • 300
  • ...
  • 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