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
All quests
All levels
Any status
Questions about tasks
Hot
Denis
Level 22
Kharkiv
Question about the task
Returning a stack trace
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
give me the solution. pls
only solutoin pls
20.06.2019
1884
views
4
comments
1
Angus McDonald
Level 5
Sydney
Question about the task
Hippodrome (part 6)
Java Multithreading
,
Level 1
,
Lesson 16
Resolved
Something not right..
Hi everyone.. I've tried a number of variations on the below but can't seem to get it working. For example, I've tried using all kinds of constructed 'game' variables.. to no effect. I've created an empty constructor with no parameters and used in Main Method.. to no effect. I've tried a couple dif
06.07.2020
474
views
2
comments
0
Sindhura
Level 15
Delhi
Question about the task
We're all friends here, even the exceptions
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
what is wrong with his-declared two checked and two unchecked but still not verifying
package com.codegym.task.task09.task0918; /* We're all friends here, even the exceptions */ import java.io.*; public class Solution { public static void main(String[] args) { } static class MyException extends Exception { public void test(){ try{
10.10.2018
2420
views
6
comments
0
Henk
Level 19
Pretoria
Question about the task
Cats
Java Core
,
Level 4
,
Lesson 4
Resolved
why does THIS work, but THIS does not ?
Did not work: ----------------- BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); while (true){ if (reader.readLine().equals(" ")){ break; } Cat cat = CatFactory.getCatByKey(reader.readLine());
17.05.2019
1594
views
2
comments
1
Henk
Level 19
Pretoria
Question about the task
Overloading constructors
Java Core
,
Level 5
,
Lesson 12
Resolved
Anyone sure what this task is actually requiring ?
I tried various things, not getting any luck.
22.05.2019
1597
views
6
comments
0
Brad Reed
Level 19
Hartford
Question about the task
Labels and numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
I must have a mistake/typo...cant find it though.
Hey all. well it works for everything but the negative odd numbers. I've looked over the code a bunch and I don't see the issue. which means its probably staring me in the face. help! ps don't try this stuff whilst working midnight shift, you'll make errors you miss a lot and feel bad about it late
21.06.2020
657
views
1
comment
0
Tian Pro
Level 23
Cape Town
Question about the task
Refactoring methods
Java Multithreading
,
Level 1
,
Lesson 10
Resolved
Wow, this is harder than I thought. Please help!
So I've reset this task so many times, trying different things, done research quite a bit, but I seem to have a mental block with this try-with-resources concept! Finally, I found this https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html which helps but for some reason
06.03.2020
1308
views
3
comments
1
Tata
Level 16
Hisar, Haryana
Question about the task
Logging stack traces
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
Could anyone tell me where i am wrong.
pls..
06.07.2020
388
views
1
comment
0
Seferi
Level 22
Question about the task
Census
Java Syntax
,
Level 8
,
Lesson 8
Resolved
why doesn't it work?
Can someone help?
04.07.2020
446
views
4
comments
0
Seferi
Level 22
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
It's working on the IDE but fails the test..
Help is appreciated..
05.07.2020
498
views
1
comment
0
Massimo Lorenzi
Level 2
milano
Under discussion
where i am wrong
kindly there is someone who can tell me where i am wrong
06.07.2020
355
views
1
comment
0
Varma7590
Level 16
Hyderabad
Question about the task
Catching checked exceptions
Java Syntax
,
Level 9
,
Lesson 8
Resolved
Multiple Exceptions ???
Please anyone give me the idea how can we catch multiple exceptions with a single catch block ???
20.10.2018
2422
views
14
comments
0
Divakar Reddy
Level 15
Nandyal
Question about the task
Exceptions. Just exceptions.
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
can anyone help me whats wrong
whats wrong can anyone explain
18.07.2019
1172
views
4
comments
0
Alessio
Level 4
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Resolved
my loop doesn't work i get 121 printed
what's wrong with the code... i really can't figure it out... please help.
06.07.2020
551
views
2
comments
0
Ovo Leslie
Level 26
Lagos
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Tell me what's wrong here
The condition for String and count is not verifying and but when I run it, it is runs correctly i.e the string s is printed count times.
19.03.2019
1428
views
6
comments
0
Angel Li
Level 18
Fremont
Question about the task
Bridges
Java Core
,
Level 4
,
Lesson 8
Resolved
Randomly gives null pointer exception???????????
There's probably some obvious reason but I just can't see it. It gives a null pointer exception and won't verify. The 6th requirement where it says to display things doesn't pass.
05.07.2020
500
views
2
comments
0
Anthony Mack
Level 1
Waukesha
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
What's causing the NullPointerException
I don't know what's causing the nullpointerexception.
29.06.2020
391
views
2
comments
0
Chris Hilborne
Level 26
Sanlucar de Barrameda
Question about the task
Build a WHERE query
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
Still can't get this to pass!
I'm sure my returned string meets the requirements - is there a 'special' case I haven't thought of? public static String getQuery(Map params) { StringBuilder sb = new StringBuilder(); Formatter fm = new Formatter(sb); Iterator> iterator = map.entrySet().iterat
12.06.2020
410
views
1
comment
0
fifi deng
Level 22
Paris
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
can not valider,but ouput is right, i think
package com.codegym.task.task10.task1012; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; /* Number of letters */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader r
02.07.2020
597
views
5
comments
0
Jordan
Level 6
Muncie
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
I have tried every variation of numbers and my code works but will not pass verification? Any thoughts?
package com.codegym.task.task04.task0419; /* Maximum of four numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader read1 = new BufferedReader(new InputStreamReader(System.in));
05.07.2020
572
views
4
comments
0
hidden #10473715
Level 13
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Need your help
All requirements except: The sort() method should sort the array of numbers from highest to lowest. are right Thank you for your help
29.07.2019
1567
views
2
comments
0
Jaisingh
Level 14
Hyderabad
Question about the task
Task No. 7 about integer type conversions
Java Syntax
,
Level 10
,
Lesson 4
Resolved
how to solve this ?
04.10.2018
3494
views
10
comments
0
Michal
Level 26
Lodz
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
When were the arrays intruduced to the course and explained?
When were the arrays intruduced to the course and explained?
28.02.2020
1114
views
2
comments
1
Riley Terwilliger
Level 4
Asheville
Question about the task
Come on, lucky seven!
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Is there an easier way to do this?
I was just wondering if there was an easier way to put this/ shorter way. Thank you a bunch.
04.07.2020
642
views
3
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
Display numbers in reverse order
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Can't get the array list to print variables backwards
I'm confused on this one. Your help is appreciated.
04.07.2020
953
views
2
comments
0
andy 6473
Level 9
Bangalore
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
unable to understand the new question
i am unable to understand the requirements what the admin has given . kind me let me me know what is wrong
04.07.2020
700
views
1
comment
0
Augustine Mondal
Level 2
Mumbai
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Please help me in the issue I am facing.
This is my code. Please help me in what's wrong in it. package com.codegym.task.task02.task0201; /
06.06.2020
744
views
3
comments
0
Tian Pro
Level 23
Cape Town
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Under discussion
but why :O (help needed!)
Well now, this is one of those "it's correct tho" situations. Either the verification is stupid or I am, but yeah I'll let y'all decide that. Please lemme know what's wrong :)
16.03.2020
769
views
1
comment
0
Onome Brownly-Otiede
Level 9
Galway
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
pls help
i dont know if it is too much data so please help me reduce the line count
02.07.2020
398
views
4
comments
0
Beata
Level 8
Essen
Question about the task
Maximum in an array
Java Syntax
,
Level 7
,
Lesson 4
Resolved
it's always return 0
need help
03.07.2020
607
views
2
comments
0
Show more
1
...
170
171
172
173
174
...
371
Please enable JavaScript to continue using this application.