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
  • mheuer
    Level 41
    Kaltenkirchen
    Question about the task Minesweeper (Part 16/16)
    Games, Level 0, Lesson 0
    Resolved
    Passed all Tests but doesn't work correctlyHi there, I got alle tasks for the minesweeper game passed but the game doesn't work as intended. The recursion of openTile(x,y) must be incorrect because it opens too many tiles and some tiles stay orange and can't be clicked anymore. Can anybody help me finding my mistake. Thank You Markus priv
    • 2/13/22
    • 800views
    • 3comments
    0
  • Anonymous #10798360
    Level 8
    Woking
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Getting required output but can't pass test pls help!! package com.codegym.task.task03.task0318; /* Plan to conquer the world */ //import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here String name; int number; Scanner input
    • 2/12/22
    • 901views
    • 2comments
    0
  • LuisRC
    Level 39
    Gijón
    Question about the task Fix four mistakes
    Java Core, Level 4, Lesson 8
    Under discussion
    Casting issuesHi there, On this task all castings are giving an error so I cannot verity it. I mean: - new Double(xxxx) - new Float(xxx) the debugger says "Double(double)' is deprecated and marked for removal " and so for Float. This is my piece of code: private static void initList(List list) { list.add
    • 2/11/22
    • 696views
    • 6comments
    0
  • Stanislav Mayer
    Level 15
    Question about the task Identical words in a list
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Correct results but 4th and 5th conditions not met (Verificator bug?)Hi, would you please check my code and advise why the last two conditions are not met? To me, it seems like a bug (?) Thank you.
    • 2/11/22
    • 787views
    • 1comment
    1
  • Jcode
    Level 27
    Question about the task The method returns a result — the depth of its stack trace
    Java Syntax, Level 15, Lesson 2
    Under discussion
    Same code but different output - reason?I run the code on VSCode and IntelliJ and I get the following output: getStackTrace getStackTraceDepth main Stack Trace Depth:3 When I run it on CodeGym I get: getStackTrace getStackTraceDepth main invoke0 invoke invoke invoke callMainMethod execute execute main main Stack Trace Depth:12 Any ideas
    • 2/10/22
    • 841views
    • 4comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task No idiots
    Java Multithreading, Level 5, Lesson 5
    Resolved
    Please helpMy code does display the message
    • 3/2/21
    • 1181views
    • 8comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Rounding numbers
    Java Core, Level 8, Lesson 11
    Resolved
    Any hint!?More and more difficult!
    • 2/10/22
    • 763views
    • 5comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Resolved
    Why i < args.lenght; and not args.lenght-1; ???For the conditions -d and -i i use a for(int i = 1; i < args.lenght-1; i++) and the task didn't pass. I changed in i < args.lenght; just like that... and pass, but i don't understand why? If args.lenght = 10 and args[0] = "-d", from 1 to 9 I have the rest of args array. If i loop until i = 10
    • 2/9/22
    • 611views
    • 2comments
    0
  • Anonymous #10798360
    Level 8
    Woking
    Question about the task Minimum of two numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    variable c might not have been initialized.It says variable c might not have been initialized. I've declared the c variable as an int. Don't know what wrong. Please help
    • 2/8/22
    • 630views
    • 2comments
    0
  • Alexandre Desbois
    Level 10
    Chamarandes-Choignes
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    Why my code doesn't work for numbers higher than 127 ?Hi, I don't understand why my code doesn't work. I guess it's because I used Integer (which we have to use) but I don't know how to bypass it. I tried to change Integer by Long, but it didn't work. Thanks!
    • 2/9/22
    • 540views
    • 2comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    I don't understand this task!What we need to do? If i understand corect we need to work with main(String [] args)... If somebody can give me a hint, or a link, or something... Tk you! I'm in a dark here! :(
    • 2/7/22
    • 1095views
    • 11comments
    0
  • Anonymous #10887977
    Level 14
    Chicago
    Question about the task Cat carnage (3)
    Java Syntax, Level 10, Lesson 2
    Under discussion
    Not sure what I'm missing...I have got this to pass all qualifications except the third, which is an arbitrary "implement fight method based on weight, age, and strength", which I have done, comparing each stat separately. And this code seems to work. Pardon all my //comments. Without any additional cues as to what I am doi
    • 2/8/22
    • 685views
    • 2comments
    0
  • Ian De Bie
    Level 28
    Austin
    Question about the task Minesweeper (Part 16/16)
    Games, Level 0, Lesson 0
    Under discussion
    Published Version - Score not showing upWhy doesn't the score show on the published version of the game on the website? Is that by design, or is there something I can do to change that so the score will show up like it does in my IDE? This was my first game published so not sure what code gets modified after publishing. Thanks.
    • 6/26/20
    • 969views
    • 7comments
    0
  • Raisa Toscano
    Level 27
    Tepic
    Question about the task Default values
    Java Core, Level 5, Lesson 9
    Resolved
    how could i call them if they are no static?public class Solution { public int intVar; public double doubleVar; public Double DoubleVar; public boolean booleanVar; public Object ObjectVar; public Exception ExceptionVar; public String StringVar; public static void main(String[] args) { Sys
    • 1/28/19
    • 2402views
    • 8comments
    0
  • Jcode
    Level 27
    Question about the task Measure how long it takes to perform 10,000 insertions on each list.
    Java Syntax, Level 14, Lesson 5
    Under discussion
    Is CodeGym making ArrayLists look bad:-)Anyone noticed how LinkedList beats ArrayList in the CodeGym insertion test. Yet the general consensus is ALWAYS use ArrayList's - even the author (Joshua Bloch) of Java’s Collections framework said 'Does anyone actually use LinkedList? I wrote it, and I never use it.' Then I noticed list.add(0,
    • 2/3/22
    • 901views
    • 9comments
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Resolved
    Question about System.exit() and System.nanoTime() and JVM instancesDescription of these two methods in the Oracle API: System.exit() : "Terminates the currently running Java Virtual Machine." System.nanoTime() : "The value returned represents nanoseconds since some fixed but arbitrary origin time. The same origin is used by all invocations of this method in a
    • 1/30/22
    • 918views
    • 7comments
    0
  • qsasdgkl
    Level 17
    San Diego
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Resolved
    Output is fine in IntellJ but still not passing last requirement. package com.codegym.task.task08.task0824; import java.lang.reflect.Array; import java.util.ArrayList; public class Solution { public static void main(String[] args) { ArrayList c1 = new ArrayList(); ArrayList c2 = new ArrayList(); ArrayList c3 = new ArrayList();
    • 4/29/19
    • 1964views
    • 2comments
    0
  • Marek Pasierbek
    Level 9
    Poznań
    Question about the task MovieFactory
    Java Core, Level 4, Lesson 8
    Under discussion
    Last 3 conditions are not OKWho can help? Something wrong is with loop "while" ?
    • 8/27/20
    • 700views
    • 4comments
    0
  • Nazar Kani Ahamed Nainar
    Level 11
    Charlotte
    New
    Priority QueueI am going through some interview programming assignments regarding Java. Can some one please help me in this regard? public interface PriorityQueue { boolean isEmpty(); int size(); Key min(); void resize(int capacity); // resize the underlying array to have the given capacity
    • 2/2/22
    • 422views
    • 0comments
    0
  • Ajani
    Level 16
    Jacksonville
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    My code does what it says it does not and will not pass me.If an empty string is entered after a number, then that number should also be displayed (it must not be lost). This is what it claims I do not do. however that is not the case try yourself and you'll see you will still get a map pairing for the number even should you enter a blank after in the in
    • 2/2/22
    • 429views
    • 1comment
    0
  • Tayyab Mubeen
    Level 16
    Lahore
    Question about the task Use the fewest number of static modifiers
    Java Syntax, Level 10, Lesson 11
    Resolved
    i think i need three but am using four static modifiers please help me clerify this...!!! public class Solution { public int A = 5; public static int B = 5; public static int C = 5; public static int D = 5; public static void main(String[] args) { Solution solution = new Solution(); solution.A = 5; solution.B = 5 * B; solution.C = 5 *
    • 10/28/18
    • 1673views
    • 4comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Transactionality
    Java Core, Level 7, Lesson 10
    Resolved
    It work's but not passAny hint? Tk you!
    • 2/1/22
    • 703views
    • 2comments
    0
  • Sajjad Ahmed
    Level 10
    Bangalore
    Under discussion
    Code Gym server down ? Error while checking server availability. java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 authenticationrequired" at java.base/sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2168) at java.base/sun.net.www.protocol.https.AbstractDele
    • 1/31/22
    • 486views
    • 1comment
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    I realy don t understand how this solution workI don t see why removeFirstNameDuplicates(Map map) works. Pls, i realy need an explanation! Tk you! public static void removeFirstNameDuplicates(Map map) { map = {"ab"-"ab", "ac"-"ac", "ad"-"ab", "ae"-"ab"...} // let say ArrayList list = new ArrayList<>(); // empty array
    • 11/25/21
    • 814views
    • 4comments
    0
  • Jomar Tayactac
    Level 5
    Winnipeg
    Question about the task Prices 2
    Java Core, Level 8, Lesson 11
    Under discussion
    Any help would be appreciated.I can't seem to figure out what's causing my code to not verify the 3rd and 4th requirements. Please take a look at my code and recommend what I could try. Thanks in advance.
    • 1/31/22
    • 553views
    • 5comments
    0
  • Angeget
    Level 22
    Potsdam
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    Please i need some help. I tried it over and over again unfortunately i could not figure out.Please i need some help. I tried it over and over again unfortunately i could not figure out.
    • 2/19/19
    • 2208views
    • 24comments
    0
  • hidden #10920327
    Level 24
    Question about the task Triangular array
    Java Syntax, Level 6, Lesson 6
    Resolved
    Good result, still no passIm getting the result, but still can't pass the verification. Where's the mistake?
    • 1/31/22
    • 1046views
    • 2comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Clew
    Java Core, Level 6, Lesson 13
    Resolved
    I have no idea how to pass with thread4I don't know how a thread can implement a random interface. I can't do it with an X class obj. Any help will be appreciete, tk you!
    • 1/30/22
    • 785views
    • 4comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task User, loser, coder and programmer
    Java Core, Level 4, Lesson 8
    Resolved
    Output is correct, but failed to pass the last 4 requirementsJust don't understand why. Could somebody help?
    • 6/4/20
    • 984views
    • 7comments
    0
  • Jcode
    Level 27
    Question about the task Checking the order
    Java Syntax, Level 13, Lesson 5
    Under discussion
    A question A condition of the task is:- If the list is not ordered by increasing string length, then display the index of the first element that violates this order. The list is:- grandfather grandmother father mother son daughter cats dog program car My code displayed index 1 (Grandmother) as it is the first
    • 1/30/22
    • 560views
    • 4comments
    0
  • 1
  • ...
  • 50
  • 51
  • 52
  • 53
  • 54
  • ...
  • 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