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
Ask a question
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
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
478
views
2
comments
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
554
views
4
comments
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
504
views
3
comments
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 validation
The code seems to be working but is failing validation. Cam someone pls tell why?
2/9/23
421
views
1
comment
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
464
views
1
comment
1
seanyt
Level 2
Bangkok
Under discussion
tivsub
u
4/13/23
397
views
1
comment
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
395
views
1
comment
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
1194
views
10
comments
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 requirements
Not 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
1664
views
6
comments
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
472
views
5
comments
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 shown
please help
3/24/23
507
views
2
comments
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
441
views
0
comments
0
Anonymous #10758878
Level 0
Under discussion
how do i sign. out
2
6/19/21
1116
views
5
comments
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 Anything
I think the heading says it all here...
4/5/23
452
views
3
comments
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
3220
views
8
comments
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
1901
views
1
comment
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
976
views
11
comments
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
563
views
2
comments
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
2099
views
5
comments
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 instances
I think the simple private constructor will do, but not verified. I can't figure out why.
4/12/19
1703
views
4
comments
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
351
views
1
comment
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 IDEA
Hello, 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
575
views
2
comments
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
1639
views
4
comments
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
602
views
1
comment
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 please
Last condition is not passing could anyone help me please
5/15/20
935
views
1
comment
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
1667
views
3
comments
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 last
Hi 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
1265
views
1
comment
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
1281
views
2
comments
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 fails
Please help
2/11/20
1167
views
3
comments
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 task
I 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
818
views
1
comment
1
Show more
1
...
28
29
30
31
32
...
374
Please enable JavaScript to continue using this application.