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
  • jothilearner
    Level 7
    Chennai
    Question about the task Product of 10 numbers
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Can anyone please help me ? what's the problem in my code?package com.codegym.task.task03.task0308; /* Product of 10 numbers */ public class Solution { public static int product = 1 ; public static void main(String[] args) { //write your code here System.out.println(product(10)); } public static int product(int a){
    • 6/2/19
    • 1899views
    • 6comments
    0
  • Darko Jakimovski
    Level 18
    Kriva Palanka
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Doesn't verifybut works just fine. It displays all the letters of the alphabet and the number of occurrences of each letter. Am I missing something? Guadalupe? :)
    • 4/23/19
    • 1528views
    • 6comments
    0
  • Alfonso Cortes
    Level 9
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Why is it failingI insert numbers and get the correct output, would anyone tell me why I'm failing the last task?
    • 6/7/19
    • 1262views
    • 1comment
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Correct answer: d = 2.941
    Java Syntax, Level 10, Lesson 11
    Resolved
    Tried multiple timesPlease help
    • 6/6/19
    • 1215views
    • 3comments
    0
  • Klaus8
    Level 25
    Question about the task Different methods for different types
    Java Core, Level 5, Lesson 12
    Under discussion
    Works in idea, but doesn't on the siteSome advice would be appreciated
    • 5/25/19
    • 1418views
    • 1comment
    0
  • RAGHU VAMSI
    Level 17
    HYDERABAD
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Import the classes!We need to import the classes BufferedReader and InputStreamReader. I was about to visit this Help section and that thought struck me!!!
    • 6/6/19
    • 1372views
    • 1comment
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Compare modifiers
    Java Multithreading, Level 1, Lesson 2
    Under discussion
    Please Help
    • 4/23/19
    • 1446views
    • 1comment
    0
  • hidden #10441159
    Level 16
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Stuck ... unable to meet last two condition public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ArrayList list = new ArrayList<>(); for (int i = 0; i < 3; i++) {
    • 6/6/19
    • 1635views
    • 4comments
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Adapting multiple interfaces
    Java Core, Level 9, Lesson 3
    Under discussion
    HelpWhats the Mistake
    • 4/19/19
    • 1529views
    • 1comment
    0
  • parvinder
    Level 20
    Sacramento
    Question about the task TableAdapter
    Java Core, Level 9, Lesson 3
    Under discussion
    Why I am getting this error?package com.codegym.task.task19.task1901; /* TableAdapter */ public class Solution { public static void main(String[] args) { ATable aTable = new ATable() { @Override public String getCurrentUserName() { return "Amigo"; }
    • 5/19/19
    • 1515views
    • 2comments
    0
  • Anuj Jaiswal
    Level 10
    Varanasi
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Under discussion
    It's working on my intellj.but not on this??What's wrongPlease help
    • 6/6/19
    • 1172views
    • 2comments
    0
  • shaan mohd khan
    Level 13
    Jhansi
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Tried to do this with arrays.help me where i m making mistake.package com.codegym.task.task06.task0606; import java.io.*; import java.util.Scanner; /* Even and odd digits */ public class Solution { public static int even; public static int odd; public static void main(String[] args) throws IOException { //write your code here
    • 2/3/19
    • 1653views
    • 3comments
    0
  • Ben Cryer
    Level 0
    CA
    Under discussion
    Which is the best programming language in the world?Which is the best programming language in the world? Swift Java Javascript Python PHP Angular Python Ruby C++ C# PHP Perl Rust iOS/Swift AI More click here
    • 10/5/18
    • 2116views
    • 2comments
    0
  • John Michael Montuya
    Level 10
    Cebu City
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Code still won't compile, exception thrown :(Hey guys, So I know my code is still pretty basic at this point, and I think I understand the program requirements, however I am a bit stumped about the code not compiling and instead throwing an exception that is foreign to me. It seems to point to line 21: if (name.isEmpty()) break; Now I did tr
    • 6/6/19
    • 1401views
    • 2comments
    0
  • Duck Mac
    Level 3
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    The last requirement is confusing :( The output is right, but when i press vertify... WRONG. PLS let me know if anything is wrong with my program.
    • 6/4/19
    • 1807views
    • 6comments
    2
  • Carrie Peng
    Level 9
    Memphis
    Under discussion
    Number of days in the yearimport java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner scanner = new Scanner(System.in); System.out.println("enter a number"); float num = scanner.nextFloat(); float min =
    • 6/2/19
    • 1362views
    • 2comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Under discussion
    HELP PLS int x = numbEr/100 + (number/10-(number/100) *10) + number % 10; Why this decision is correct if the answer is 60.06?
    • 5/31/19
    • 1372views
    • 1comment
    0
  • kushal agrawal
    Level 4
    Chennai
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Under discussion
    please tell where did i go wrong???
    • 6/6/19
    • 1210views
    • 3comments
    0
  • Anuj Jaiswal
    Level 10
    Varanasi
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    What's wrong in this??please help public class Solution { public static void main(String[] args) throws Exception { //write your code here int b = 0, c = 0; ArrayList list = new ArrayList(); Scanner scan = new Scanner(System.in); for(int i = 0; i < 10; i++){ list.add(scan.n
    • 6/6/19
    • 1202views
    • 2comments
    0
  • smile
    Level 7
    Tainan
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Resolved
    "this" gets 150, but still failed, why?Failed Requirements: 2. The Apple class's addPrice method should not display text on the screen. RECOMMENDATION FROM YOUR MENTOR Be sure that the Apple class has a public static void addPrice(int applePrice) method. 4. The main method should call the addPrice method only twice. RECOMMENDATION FROM
    • 6/3/19
    • 2211views
    • 3comments
    0
  • Derek
    Level 11
    Apex, NC
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion
    concurrent modification errorCreated an iterator, but still getting a concurrent modification error. What am I missing?
    • 4/10/19
    • 1687views
    • 2comments
    0
  • kushal agrawal
    Level 4
    Chennai
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    it is showing that it should match the given task. where did i gone wrong?package com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String name = reader.
    • 6/6/19
    • 1604views
    • 1comment
    0
  • Henk
    Level 19
    Pretoria
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    Please help....I don't want to copy and paste others' solutions.I think my code is sequentially correct, but I might misunderstand the reading of bytes ?
    • 6/3/19
    • 1708views
    • 6comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Resolved
    Now where is the problem ?Please help
    • 6/4/19
    • 1655views
    • 5comments
    0
  • Solanki Dhruv
    Level 18
    Surat
    Question about the task Reinforce the singleton pattern
    Java Core, Level 5, Lesson 12
    Resolved
    Don't understand where is the problem?????
    • 12/10/18
    • 1998views
    • 7comments
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Most frequent bytes
    Java Core, Level 8, Lesson 3
    Under discussion
    Help PleaseWhat is the error
    • 4/17/19
    • 1591views
    • 6comments
    0
  • Mike McKenna
    Level 25
    Wilmington
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Resolved
    please help unable to get 2nd line of code verifyThank you Mike McKenna
    • 6/4/19
    • 1843views
    • 1comment
    0
  • Serg
    Level 23
    Tyumen
    Question about the task Zombie cats, zombie dogs
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Can it be done differently? I did so public static void main(String[] args) { Dog dog = new Dog(); dog = null; } protected void finalize() throws Throwable{ System.out.println("A Dog was destroyed"); } Can it be done differently?
    • 5/15/19
    • 1658views
    • 2comments
    0
  • Jacob Warren
    Level 8
    Tampa
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Resolved
    I am getting the right output why isn't this verifying?I don't understand why this isn't correct I​ am getting the right output.
    • 6/4/19
    • 1548views
    • 3comments
    0
  • Maciej Kowalik
    Level 1
    Sławno
    Question about the task Table
    Java Core, Level 8, Lesson 8
    Resolved
    What is wrong?Everything seem good according to hints.
    • 6/5/19
    • 1914views
    • 2comments
    0
  • 1
  • ...
  • 315
  • 316
  • 317
  • 318
  • 319
  • ...
  • 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