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 Space (part 15)
    Java Collections, Level 3, Lesson 15
    Resolved
    code looks legit but fails ... private ArrayList<Ufo> ufos = new ArrayList<>(); private ArrayList<Rocket> rockets = new ArrayList<>(); private ArrayList<Bomb> bombs = new ArrayList<>(); ... public void moveAllItems() { // Get a list of all objects in the game and call
    • 28.05.2019
    • 1327views
    • 5comments
    0
  • Jaime
    Level 4
    Panshanger
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Why won't this work?I keep getting an "error converting a string to a number message" . I've looked over the code many times and just can't see the problem. Any help would be appreciated. Thanks
    • 19.05.2019
    • 1220views
    • 5comments
    0
  • Dona
    Level 7
    Question about the task Currency exchange
    Java Syntax, Level 3, Lesson 3
    Under discussion
    can anyone help me with this code?public class Solution { public static void main(String[] args) { //write your code here convertEurToUsd(12,23.2); convertEurToUsd(3,4.7); System.out.println(dollar); return dollar; } public static double convertEurToUsd(int eur, double exchangeRat
    • 20.05.2019
    • 1460views
    • 6comments
    0
  • rohan lakhe
    Level 2
    Hyderabad
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Why return is TF and not 0?why the return in the code is and not 0 double TF = 9 / 5.0 * celsius + 32; >>>>> "return TF"
    • 28.05.2019
    • 1285views
    • 2comments
    0
  • Dona
    Level 7
    Question about the task Deep and pure love
    Java Syntax, Level 3, Lesson 8
    Resolved
    what's wrong in my code?someone help me
    • 21.05.2019
    • 1446views
    • 3comments
    0
  • Mario
    Level 8
    Lodz
    Question about the task Create a Friend class
    Java Syntax, Level 5, Lesson 7
    Under discussion
    color vs colourI know, I should spot it, but I set colour as color, I learned english in UK (and that was the reason, why I have to run it twice). LOL
    • 26.05.2019
    • 1194views
    • 1comment
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    I dont know howI think I misunderstood the conditions.
    • 28.05.2019
    • 1159views
    • 1comment
    0
  • suresh yadav
    Level 2
    Gorakhpur
    Question about the task CodeGym. Learn once - use anywhere
    Java Syntax, Level 1, Lesson 4
    Resolved
    how to use loophow to use loop for writing a string/text 10 times.
    • 19.08.2018
    • 2622views
    • 2comments
    2
  • Adrian George Teodorescu
    Level 4
    Bucharest
    Resolved
    Why it's not working? it seems very simplepublic class Solution { public static void main(String[] args) { //write your code here convertEurToUsd(5,1.400); convertEurToUsd(60000,20.9); System.out.println(convertEurToUsd()); System.out.println(convertEurToUsd()); } public static double
    • 28.05.2019
    • 1275views
    • 3comments
    0
  • Nastya Varennikova
    Level 11
    Sumy
    Question about the task Multiplication table
    Java Syntax, Level 4, Lesson 10
    Resolved
    Help! Why don't work?I don't understand why this code don't work
    • 09.03.2019
    • 1757views
    • 12comments
    1
  • Yash
    Level 15
    Sugar Hill
    Question about the task Lonely arrays interact
    Java Syntax, Level 7, Lesson 4
    Archived
    ???Help, not working, compiler error. java.lang.nullpointer exception. Line 38.
    • 28.05.2019
    • 1696views
    • 1comment
    0
  • Connor
    Level 8
    Boston
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    Trouble understanding how to manipulate HashMapsI've been having trouble really comprehending hashmaps from the start. I don't want to just copy code, that isn't how to learn. I've spent much longer on this than I would like, and no matter how many articles I've read on SO or in the JAVADOCS I'm just having a super hard time understanding the Ite
    • 24.05.2019
    • 1352views
    • 4comments
    0
  • satish
    Level 15
    kadapa
    Question about the task Greater than 10? You're not a good fit for us
    Java Syntax, Level 8, Lesson 8
    Under discussion
    whats the mistakeAdding the elements to a set is correct but why it is showing wrong
    • 28.05.2019
    • 1066views
    • 1comment
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Why not workpackage com.codegym.task.task06.task0621; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Cat relations */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(n
    • 28.05.2019
    • 1086views
    • 1comment
    0
  • Mohit Dubey
    Level 4
    Mumbai
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Please resolve thisAccording to the formula Answer is 5.0. Then how can it be 105.8;
    • 28.05.2019
    • 2023views
    • 2comments
    0
  • JeRiF94
    Level 22
    Baku
    Question about the task The early bird gets the worm
    Java Core, Level 6, Lesson 13
    Under discussion
    MissUnderstoodI'm trying to understand , but nothing happen.
    • 25.05.2019
    • 1196views
    • 1comment
    0
  • Bert Doe
    Level 22
    Flanders
    Question about the task OOP: Books
    Java Core, Level 5, Lesson 2
    Under discussion
    I don't know what's wrong with this code? only the agatha christie returns an error. package com.codegym.task.task15.task1504; import java.util.LinkedList; import java.util.List; /* OOP: Books */ public class Solution { public static void main(String[] args) { List books = new LinkedList(); books.add(new MarkTwainBook("Tom Sawyer")); books.add(new A
    • 01.05.2019
    • 1483views
    • 2comments
    0
  • errorCode
    Level 9
    Makati
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    Please help! I'm stuck. XDI can't figured this out.
    • 24.10.2018
    • 1810views
    • 1comment
    0
  • Sargam
    Level 3
    Aligarh
    Question about the task Sam I Am
    Java Syntax, Level 3, Lesson 6
    Under discussion
    HelpI have covered 6 combinations.Which one's is left?
    • 22.10.2018
    • 1954views
    • 4comments
    0
  • Cinthya Cabanzo
    Level 22
    Bogota
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    Runs ok in IntelijIDEA but not in the Web PageHi Pals, Here said that "java.lang.NullPointerException: Solution.java, method main, line: 18" An attempt was made to access an uninitialized object (Null). But in the IDEA return : Apple 22 Bob 3 Cherry 1 0 Watermelon Process finished with exit code 0 Please help me.
    • 27.05.2019
    • 1773views
    • 7comments
    0
  • edis emin
    Level 7
    London
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    Why does this code work in Eclipse IDE but not on CodeGym IDE?import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); String num = buffer.readLine(); int number = Integer.parseInt(num); if(number>0)
    • 22.04.2019
    • 1453views
    • 4comments
    0
  • Henk
    Level 19
    Pretoria
    Question about the task Horse racing
    Java Core, Level 6, Lesson 5
    Archived
    code looks correct as per requirement, but I'm obviously missing something small ?cannot pass 3rd requirement.... Also, the output is not coherent/consistent: it displays some of the horse more than once, but I think it's because the while loop driving it, doesn't constitute the best way to start the whole thread ?
    • 24.05.2019
    • 1859views
    • 2comments
    0
  • romeo
    Level 5
    Paramaribo
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Can anyone help me spot the error? condition 3 not metI entered 1988 and got days = 365 which is correct.
    • 28.05.2019
    • 1686views
    • 1comment
    0
  • AndroidMalaya
    Level 4
    Shah Alam
    Under discussion
    Problem when doing activity using mobile phoneWhen enable desktop version, it will get zoom in and cannot zoom out. When in mobile version, the word will always be replaced repeating to only 1 char .
    • 27.05.2019
    • 1233views
    • 2comments
    0
  • Manoj Chander
    Level 11
    Singapore
    Question about the task Vowels and consonants
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Verification ErrorThe output is correct . But i'm getting verification error . Please help to rectify . Thanks .
    • 28.05.2019
    • 1110views
    • 2comments
    0
  • satish
    Level 15
    kadapa
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    what was the mistakeis that increment and decrement operations of for loop correct
    • 27.05.2019
    • 1301views
    • 3comments
    0
  • Rusu Adelina
    Level 17
    Iasi
    Question about the task 1 to 10
    Java Syntax, Level 4, Lesson 10
    Resolved
    help! i need a hintint a = 1; while (a<10){ System.out.println(a); a++; } System.out.println("Loop finished");
    • 25.03.2019
    • 1552views
    • 2comments
    1
  • Naman
    Level 2
    Thana Bhawan
    Question about the task Bugs and features
    Java Syntax, Level 0, Lesson 8
    Resolved
    Its not a bug it's a featureSystem.out.println("It's not a bug - it's a feature.")
    • 21.04.2019
    • 1562views
    • 2comments
    0
  • shabarish kumar
    Level 20
    Hyderabad
    Under discussion
    Can anyone help me to find the mistake. Please help me, this is failing atpackage com.codegym.task.task06.task0621; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Cat relations */ public class Solution { private static int i= 0; private static int j = 0; public static void main(String[] args) thr
    • 25.05.2019
    • 1276views
    • 1comment
    0
  • Pioniio
    Level 22
    Schaffhausen
    Resolved
    task0905: Why is number of methods 3Hi task0905 In the blue depths of the stack trace…: My solution works fine. But i don't understand why the number of methods in the stack trace is 3 (variable int deep). We have main method (method 1) which calls getStackTraceDepth method (method 2), hence two methods. Why isn't the answer 2 then? t
    • 27.05.2019
    • 1340views
    • 2comments
    0
  • 1
  • ...
  • 316
  • 317
  • 318
  • 319
  • 320
  • ...
  • 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