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
  • Reyaz Ahmad Bhat
    Level 4
    Anantnag Jammu And Kashmir
    Question about the task Conscription
    Java Syntax, Level 3, Lesson 3
    Under discussion
    Solution Scanner scanner = new Scanner(System.in); String name = scanner.nextLine(); int age = scanner.nextInt(); if (age >= 18) { if (age <= 28) { System.out.println(name + militaryCommissar); } } }
    • 2/19/23
    • 478views
    • 2comments
    0
  • Nitin Saini
    Level 4
    Question about the task Quadrants
    Java Syntax, Level 3, Lesson 6
    Under discussion
    what's wrong with this task I have written everything correctly but still it is showing error please help at your earliest
    • 3/23/23
    • 554views
    • 4comments
    0
  • hidden #10994753
    Level 46
    Question about the task CashMachine (part 11)
    Java Collections, Level 9, Lesson 15
    Resolved
    Infinite loop !Hello everyone, Please, can someone tell me why the validator keeps telling me that I have an infinite loop (in LoginCommand implementation)? Thanks.
    • 4/16/23
    • 504views
    • 3comments
    0
  • Anonymous #11263925
    Level 11
    United States of America
    Question about the task Remove duplicate strings
    Java Syntax, Level 7, Lesson 3
    Under discussion
    Fails validationThe code seems to be working but is failing validation. Cam someone pls tell why?
    • 2/9/23
    • 421views
    • 1comment
    1
  • Reyaz Ahmad Bhat
    Level 4
    Anantnag Jammu And Kashmir
    Question about the task Looking for the maximum
    Java Syntax, Level 3, Lesson 7
    Under discussion
    Solution Scanner scanner = new Scanner(System.in); int numberA = scanner.nextInt(); int numberB = scanner.nextInt(); int main = numberA > numberB ? numberA :numberB; System.out.println(main);
    • 2/20/23
    • 464views
    • 1comment
    1
  • seanyt
    Level 2
    Bangkok
    Under discussion
    tivsub u
    • 4/13/23
    • 397views
    • 1comment
    0
  • Willi Ehrmann
    Level 37
    Question about the task Introducing properties
    Java Core, Level 10, Lesson 2
    Under discussion
    Why do I get this strange error? import java.io.*; import java.util.*; /* Introducing properties */ public class Solution { public static Map properties = new HashMap<>(); public void fillInPropertiesMap() throws Exception { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.
    • 4/12/23
    • 395views
    • 1comment
    0
  • John
    Level 17
    Mansfield
    Question about the task Stack trace revisited
    Java Syntax, Level 9, Lesson 2
    Under discussion
    Can someone explain what's happening?How can i able to solve these task, it's not explained well yet and as i seek for the solution of others it's very confusing because of very unfamiliar methods . someone explain to me or give me link or something :(
    • 4/17/21
    • 1194views
    • 10comments
    2
  • Guadalupe Gagnon
    Level 37
    Tampa
    Question about the task Sometimes anonymity is so nice!
    Java Multithreading, Level 3, Lesson 8
    Resolved
    Not passing last 5 requirementsNot able to pass: I was trying a whole bunch of different ways to return the string for the getQuery() method to see if any of them passed. I even tried removing 'abstract' from getQuery and typing in: return "SELECT * FROM " + ((Class) ((ParameterizedType) this.getClass().
    • 4/12/19
    • 1664views
    • 6comments
    3
  • Yoshi
    Level 14
    Germany
    Question about the task Minesweeper (Part 3/16)
    Games, Level 0, Lesson 0
    Resolved
    what is the problem?I dont understand why the last requirement isnt met.
    • 4/10/23
    • 472views
    • 5comments
    0
  • Nitin Saini
    Level 4
    Question about the task Comparing strings by reference
    Java Syntax, Level 3, Lesson 9
    Under discussion
    why is it showing that appropriate messages are not shownplease help
    • 3/24/23
    • 507views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Aggregator (part 15)
    Java Collections, Level 8, Lesson 15
    New
    Not passing much, is use of select over getElementsByClass problematic?Most of my code is similar to the solution code, but I noticed that the solution code tends to search for Element objects matching a class by using the getElementsByClass method, and my code generally uses the select() method (this seems to be more in use currently when searching for how to do this)
    • 4/9/23
    • 441views
    • 0comments
    0
  • Anonymous #10758878
    Level 0
    Under discussion
    how do i sign. out2
    • 6/19/21
    • 1116views
    • 5comments
    0
  • Mike S
    Level 28
    Saint Louis
    Question about the task Advanced file search
    Java Collections, Level 1, Lesson 2
    Under discussion
    Working Correctly With Test Data & Folder, But Barely Verifying AnythingI think the heading says it all here...
    • 4/5/23
    • 452views
    • 3comments
    0
  • Tangerin
    Level 27
    Chongqing
    Question about the task Symbol frequency
    Java Core, Level 8, Lesson 11
    Under discussion
    How to sort by ASCENDING ASCII CODE?I believe I did it but the verification system didn't think so... Great delight if you post your idea, thx
    • 7/20/19
    • 3220views
    • 8comments
    0
  • Azja
    Level 32
    Krakow
    Question about the task Snake (part 13)
    Java Multithreading, Level 2, Lesson 18
    Resolved
    What is wrong with sleep method?What should be done here?
    • 5/15/19
    • 1901views
    • 1comment
    2
  • Mike S
    Level 28
    Saint Louis
    Question about the task Iterating through a file tree
    Java Collections, Level 1, Lesson 2
    Under discussion
    Why Can I Not Even Rename This File??One step forward and two steps back this feels like... I can't even get the file renaming task verified. I even just copied and pasted someone else's code for that section who for-sure was passing that and it doesn't change the name of the file. What the heck?? So aggravating. I can't imagine what c
    • 3/31/23
    • 976views
    • 11comments
    0
  • muchemi
    Level 6
    United States of America
    Question about the task Triangle
    Java Syntax, Level 3, Lesson 6
    Resolved
    Can anyone kindly confirm that my solution is correct? I tested it manually and it appears to be fine. //write your code here Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a >= (b + c) || b >= (a + c) || c >= (a + b)){ System.out.println(TRIANGLE_EXISTS)
    • 4/1/23
    • 563views
    • 2comments
    0
  • Bill Wu
    Level 29
    Wellington
    Question about the task Inner
    Java Multithreading, Level 3, Lesson 4
    Resolved
    where is the problem?I tried many times with different ways of initializing the fields, but always fail. The recommendation from mentor shows that The elements of the innerClasses array must be null. Initialization should only happen in the getTwoSolutions method. But they seem to be satisfied already.
    • 4/12/19
    • 2099views
    • 5comments
    2
  • Bill Wu
    Level 29
    Wellington
    Question about the task Prevent the creation of instances of a class
    Java Multithreading, Level 3, Lesson 2
    Resolved
    how to block the creation of instancesI think the simple private constructor will do, but not verified. I can't figure out why.
    • 4/12/19
    • 1703views
    • 4comments
    2
  • matemate123
    Level 50
    Kraków
    Question about the task Snake (part 17)
    Java Multithreading, Level 2, Lesson 18
    New
    What's wrong?I haven't ideas.
    • 4/3/23
    • 351views
    • 1comment
    0
  • Karolina Napieracz
    Level 25
    Poland
    Question about the task Minesweeper (Part 1/16)
    Games, Level 0, Lesson 0
    Resolved
    How to run game in intellij IDEAHello, What should I do to run the game in intellij IDEA? Run button is disabled. The method shown in https://codegym.cc/help/12750 doesn't work. the only way to check my results is to run the code through the CodeGym website. I am attaching a screenshot, maybe it will help in solving the problem
    • 4/1/23
    • 575views
    • 2comments
    0
  • Mateo
    Level 26
    Zagreb
    Question about the task Minesweeper (Part 9/16)
    Games, Level 0, Lesson 0
    Resolved
    Can somebody explain the last condition?Last condition makes no sense...
    • 7/12/19
    • 1639views
    • 4comments
    1
  • Gellert Varga
    Level 23
    Szekesfehervar
    Question about the task Calculating salaries
    Java Core, Level 9, Lesson 11
    Resolved
    Should they be sorted alphabetically or in ascending order of salaries??I have arranged them in the order of the payments...
    • 10/10/21
    • 602views
    • 1comment
    1
  • shabarish kumar
    Level 20
    Hyderabad
    Question about the task Calculating salaries
    Java Core, Level 9, Lesson 11
    Under discussion
    Last condition is not passing could anyone help me pleaseLast condition is not passing could anyone help me please
    • 5/15/20
    • 935views
    • 1comment
    1
  • Hossein Shams
    Level 1
    Atlanta
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    I think CodeGym hates me!This is 10th time I'm getting the correct answer, even by giving more complicated inputs comparing to CodeGym's example. My code can run over nested HTML, even finds tags nested in another more than once. But it's not getting verified. If there's something specific our code needs to do to be verifi
    • 9/15/19
    • 1667views
    • 3comments
    1
  • Artur Jarosz
    Level 30
    Lublin
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    Not sure why can't pass lastHi all, I'm not sure why can't pass last test. When i'm checking it on my computer, everything works just like it should be IMHO. I would appreciate any help. Thanks!
    • 12/14/19
    • 1265views
    • 1comment
    1
  • Yiheng Niu
    Level 26
    Beijing
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    My program works for the example, but fails the last verification. Can someone help me please?I have tried several inputs and it works fine. But for some reason, it cannot pass the last verification. Can you give me a little hint, please? Any help will be appreciated!
    • 3/7/20
    • 1281views
    • 2comments
    1
  • Anthony Chalk
    Level 30
    London
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    Matches the example output but still failsPlease help
    • 2/11/20
    • 1167views
    • 3comments
    1
  • Maxim Raitin
    Level 20
    Tomsk
    Question about the task Minimum of N numbers
    Java Syntax, Level 8, Lesson 11
    Resolved
    I don't understand taskI don't understand the requirement: "The getIntegerList() method should read the number N from the keyboard and then return a list of N elements, which has been filled with numbers read from the keyboard.". Ok, but what is it N elements?? How many? I don't understand how many numbers I should type o
    • 3/19/21
    • 818views
    • 1comment
    1
  • 1
  • ...
  • 28
  • 29
  • 30
  • 31
  • 32
  • ...
  • 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