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
  • Djole
    Level 41
    Belgrade
    Question about the task 2048 (part 6)
    Java Multithreading, Level 10, Lesson 15
    Resolved
    bugged??private boolean mergeTiles(Tile[] tiles){ //consolidateTiles(tiles); boolean madeChanges = false; for (int j = 0; j < 3; j++) { if (tiles[j].value == tiles[j + 1].value) { tiles[j] = new Tile(tiles[j].value * 2); tiles[j + 1] =
    • 5/20/19
    • 1653views
    • 2comments
    0
  • Павел Артеменко
    Level 41
    Krasnodar
    Question about the task This weird BigDecimal
    Java Multithreading, Level 9, Lesson 9
    Resolved
    Bugged?Or am I missed something?
    • 5/20/19
    • 1645views
    • 3comments
    0
  • Naizak
    Level 9
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    I can't find the problem.Why the remove method does not work?
    • 5/20/19
    • 1738views
    • 2comments
    0
  • Haither
    Level 4
    Bangalore
    Question about the task Task with percentages
    Java Syntax, Level 3, Lesson 3
    Resolved
    What is the issue here ????package com.codegym.task.task03.task0304; /* Task with percentages */ public class Solution { public static double addTenPercent(int i) { //write your code here double a = i*10/100; double tage = i + a; return tage; } public static void main(
    • 5/16/19
    • 2243views
    • 10comments
    0
  • Thomas
    Level 13
    Scottsdale
    Under discussion
    Level 3 Display The Right Way ---- Stuck --- please have a look -- -THXI have tried many different ways ... see commented out code public static void main(String[] args) { a = "Hello, "; b = "Amigo!"; printString("Hello, Amigo!"); // printString(s); // printString(a + b); } public static void printString(String s)
    • 5/20/19
    • 1322views
    • 1comment
    0
  • hidden #10451198
    Level 14
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Thats isn't workingWhat here is wrong?
    • 5/17/19
    • 1827views
    • 2comments
    0
  • satish
    Level 15
    kadapa
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Under discussion
    what is errorwhats the problem in my code
    • 5/21/19
    • 1544views
    • 1comment
    0
  • dean
    Level 8
    Deutschland
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    My code not pass...What's wrong here it seems just fine to me...?
    • 5/21/19
    • 1501views
    • 3comments
    0
  • Darko Jakimovski
    Level 18
    Kriva Palanka
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    It verified, then updated for some reason, and won't update again (with the same code) for some reasonWHY
    • 12/17/18
    • 1518views
    • 6comments
    0
  • ann
    Level 4
    Dusseldorf
    Question about the task The humble programmer
    Java Syntax, Level 3, Lesson 8
    Resolved
    I have a typo The program compiles, but it doesn't verify
    • 12/4/18
    • 2459views
    • 4comments
    0
  • Eduardo
    Level 23
    Coyoacan
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Resolved
    Can't fing typoHi, please some advice, the mentor suggests that i have a typo, but I can't see it. Thanks.
    • 9/30/18
    • 2379views
    • 5comments
    1
  • Kisszol
    Level 15
    Toeroekbalint
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    I have tried everything, but the System always complainsSaluton Kollegoj, I have created the program eg. and the system complains, however I get exactly the String it's requires: What is the problem with my code ? The systams tells: Checked the program displays only the required string and nothing else. ************************************************
    • 2/21/19
    • 2467views
    • 5comments
    1
  • Suhas Digambare
    Level 7
    Kolhapur
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    task03.task0318 - Plan to conquer the worldi tried it both way by using Scanner and BufferedReader but it doesnt work i've got following error java.lang.NumberFormatException: Solution.java, method main, line: 17 Error converting a string to a number (invalid format). plz help me how to solve
    • 10/29/18
    • 2963views
    • 15comments
    0
  • parth shah
    Level 3
    Mumbai
    Question about the task Display right away
    Java Syntax, Level 3, Lesson 3
    Under discussion
    what exactly codegym is trying to explain here ? i have just printed s here in the called method & its verified too. it looks like i m missing some point here which they are explaining
    • 12/1/18
    • 1793views
    • 6comments
    0
  • hemant
    Level 8
    prayagraj
    Question about the task Don't feel like it? Do it anyway.
    Java Syntax, Level 1, Lesson 8
    Resolved
    is there any smaller way than using System.out.println() 16 timesis there any smaller way than using System.out.println() 16 times
    • 3/30/19
    • 1634views
    • 10comments
    0
  • divya
    Level 5
    hyderabad
    Question about the task Roy G. Biv…
    Java Syntax, Level 3, Lesson 6
    Resolved
    rainbowcan anyone explain this "Yellow yellow = new Yellow();" clearly what happen other than creating object
    • 11/13/18
    • 1810views
    • 1comment
    1
  • Thomas
    Level 13
    Scottsdale
    Question about the task Product of 10 numbers
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Thoughts on Product of 10 Numbers ?? I am stumped using different ideas public static void main(String[] args) { int a = 1*2*3*4*5*6*7*8*9*10; System.out.println(a); // int b = b * a; // for(int a = 1; a <= 10; a++) { // System.out.println(a); } public static int bigProduct(int
    • 5/19/19
    • 3155views
    • 3comments
    0
  • Connor
    Level 8
    Boston
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Resolved
    Decreasing order?SO should I have just made this for (int i =19; i > 0; i--){ array[i] instead of actually reversing the whole order of it?
    • 5/15/19
    • 1730views
    • 4comments
    0
  • Cinthya Cabanzo
    Level 22
    Bogota
    Question about the task Set of cats
    Java Syntax, Level 8, Lesson 11
    Resolved
    Prints 2 Cats in different line but fails verificationHi team, Please, you can help me? I run the program and prints 2 cats each one in a different line, but the verification says that "The Solution class's printCats() method must display all the cats in the set. Each cat on a new line.
    • 5/20/19
    • 2017views
    • 1comment
    0
  • JeRiF94
    Level 22
    Baku
    Question about the task Horse racing
    Java Core, Level 6, Lesson 5
    Archived
    Mistake or notPlease check this code out , it says that program ran too long and was closed! Help me please;
    • 5/16/19
    • 1215views
    • 2comments
    0
  • SilverZax
    Level 18
    Poltava
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Under discussion
    Can't pass second condition.Can't pass second condition.
    • 5/12/19
    • 1311views
    • 3comments
    0
  • past cham
    Level 6
    Delhi
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    pls helphow to slove
    • 5/18/19
    • 1453views
    • 2comments
    0
  • Mohamed Nagy
    Level 7
    Alexandria
    Question about the task Chain letter
    Java Syntax, Level 4, Lesson 13
    Resolved
    please whats wrong it's so simple and there is no problem why never verifyplease help me out
    • 5/20/19
    • 1771views
    • 3comments
    0
  • Henk
    Level 19
    Pretoria
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Archived
    Cannot continue, please help! "runs too long". Not sure how infinite loop is created if I explicitly check for it.....
    • 5/17/19
    • 1394views
    • 2comments
    0
  • Swati
    Level 8
    Pune
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Under discussion
    getting errorthe error as: An attempt was made to access an uninitialized object(null)
    • 1/17/19
    • 1597views
    • 5comments
    0
  • Sean
    Level 24
    Phoenix
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Resolved
    What am I missing?This will output the correct answer for the test input in the conditions and anything else I have thrown into it. I take into account possible negative numbers entered by the user, and it outputs the correct answer, but I keep getting told the "displayed text must match the task conditions." The c
    • 3/26/19
    • 2531views
    • 12comments
    0
  • Mike McKenna
    Level 25
    Wilmington
    Question about the task Currency exchange
    Java Syntax, Level 3, Lesson 3
    Under discussion
    return statement verifyHi i submitted my code 3 times now . these are the errors that return . System.out.println(result) ^ Java: 16 : error cannot find symbol return result; ^ incompatible types Unexpected return value . notice that system does not accept my verify att
    • 5/18/19
    • 2070views
    • 5comments
    0
  • Thomas
    Level 13
    Scottsdale
    Question about the task Hello, StarCraft!
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Level 3 Concatenation ---- Not quite right --- not sure why .... Where is this wrong public static void main(String[] args) { long c = getVolume(30,15,10) * 1000; System.out.println("Litres in Pool: " + c); } public static long getVolume(int a, int b, int c) { // litres of water to fill the pool // length in metres
    • 5/19/19
    • 1475views
    • 1comment
    0
  • Berkson
    Level 17
    Fortaleza
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Resolved
    What's wrongI really don't know why this code don't pass in the verification. It shows the correct repetition of the string. I only left the System.out.println() for test purpose. Without it gives the same error. Someone can please help?
    • 5/19/19
    • 2268views
    • 2comments
    0
  • Chiliveri Sonalkoushik
    Level 4
    Pune
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Under discussion
    Explain me how to satisfy given conditions?But it is showing correct output text.
    • 5/19/19
    • 1634views
    • 1comment
    0
  • 1
  • ...
  • 323
  • 324
  • 325
  • 326
  • 327
  • ...
  • 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