Promotion
CodeGym University
Java FullStack
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
SammyGammy
Level 4
Chico
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I get the correct numbers, but it still doesnt work?
I am not sure what I am missing.
7/7/20
549
views
1
comment
0
Yip Mun Allen
Level 8
London
Question about the task
Cat and statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Infinite Loop?
Why does this create an infinite loop if the condition is stated?
1/28/20
1577
views
7
comments
0
Abhilash Ravichandran
Level 10
Kigali
Question about the task
Who called me?
Java Syntax
,
Level 9
,
Lesson 2
Resolved
Return the line number of the code from which it was called?
What am I asked to do?
11/3/18
2380
views
4
comments
0
Edddieg
Level 15
Providence
Question about the task
Animal set
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
please explain
can someone please explain this to me ... I solved it but can't understand it... thank you
7/4/20
536
views
0
comments
0
SammyGammy
Level 4
Chico
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
What do I do?
I do not know why this is not working. I feel like I have the code right, but it shows up with an error everytime. error: cannot find symbol symbol: method readline() location: variable reader of type java.io.BufferedReader. file com/codegym/task/task03/task0319/Solution.java, line 14, position 30
7/6/20
652
views
2
comments
0
BlueJavaBanana
Level 37
Question about the task
Build a WHERE query
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
Can someone please post the specific instructions for this task?
The task instructions are very ambiguous. Could someone please tell me EXACTLY what the task requires? The Map params - does it contain two parameters per ? Or are the parameters for the query ONLY in the value not the key ? Thanks in advance.
7/6/20
840
views
4
comments
0
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
6/20/19
2015
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
7/6/20
600
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/18
2768
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());
5/17/19
1754
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.
5/22/19
1793
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
6/21/20
791
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
3/6/20
1538
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..
7/6/20
502
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?
7/4/20
591
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..
7/5/20
622
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
7/6/20
477
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 ???
10/20/18
2731
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
7/18/19
1312
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.
7/6/20
695
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.
3/19/19
1577
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.
7/5/20
638
views
2
comments
0
Anthony Mack
Level 2
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.
6/29/20
518
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
6/12/20
533
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
7/2/20
764
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));
7/5/20
720
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
7/29/19
1720
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 ?
10/4/18
3691
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?
2/28/20
1255
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.
7/4/20
808
views
3
comments
0
Show more
1
...
173
174
175
176
177
...
374
Please enable JavaScript to continue using this application.