Promotion
CodeGym University
Learning
Course
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
Brandon
Level 7
Houston
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Failing test even though it matches task conditions. Why?
I've run and tested this code over and over and it seems to me to match the task conditions, however its not passing the tests? Does anyone know why?
22.05.2019
1125
views
5
comments
0
Djole
Level 41
Belgrade
Question about the task
MVC (part 3)
Java Multithreading
,
Level 4
,
Lesson 14
Resolved
Do you have the same problem with verifying the last condition?
public class UsersView implements View{ private Controller controller; @Override public void refresh(DataModel dataModel) { System.out.println("All users:"); for(User user : dataModel.getUsers()){ System.out.println("\t" + user); } //dataModel
16.04.2019
1193
views
4
comments
0
Ankush Rajput
Level 25
Bhopal
Question about the task
What sort of list is that?
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Why the program doesn't work ? it passes when i use add() but not with set(). Throws array-out-of bounds exception. The list isn't getting initialized to capacity 5.
package com.codegym.task.task07.task0707; import java.util.*; /* What sort of list is that? */ public class Solution { public static void main(String[] args) throws Exception { //write your code here ArrayList string = new ArrayList(5); string.set(0,"r1");
06.09.2018
1769
views
6
comments
0
Finn
Level 11
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Please Help - third test fails!
My code is not passing the third test even if it works correctly in the IDE
22.05.2019
1155
views
2
comments
0
dean
Level 8
Deutschland
Question about the task
Display numbers in reverse order
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
immeditate initialize error
immediate initialize error:
23.05.2019
1490
views
3
comments
0
Djole
Level 41
Belgrade
Question about the task
2048 (part 13)
Java Multithreading
,
Level 10
,
Lesson 15
Resolved
i was sure about this one, but failed 2nd requirement
... if(model.canMove()) view.isGameLost = true; ... case KeyEvent.VK_R: model.randomMove(); break; ...
21.05.2019
953
views
3
comments
0
Ash Ka
Level 13
Calgary
Question about the task
HashMap of 10 pairs
Java Syntax
,
Level 8
,
Lesson 3
Resolved
The last step of verification fails
What's the mistake here
22.05.2019
1813
views
3
comments
0
Pioniio
Level 22
Schaffhausen
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Solution seems to work in Intellij but Verification fails
Helo My solution seems to work fine, i get double values each on new line. Am I missing something here? please help, thanks
22.05.2019
1970
views
3
comments
0
Serghei
Level 3
Balti
Question about the task
Time conversion
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
Where i make a mistake?
public class Solution { //write your code here public static convertToSeconds(int hour) { int s = hour * 3600; return s; } public static void main(String[] args) { //write your code here System.out.println(convertToSeconds(1)); System.out.prin
07.03.2019
1757
views
5
comments
0
MultiZero
Level 13
Torino
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Everything works exactly as instructed but cannot verify?
Can somebody explain why the last condition is not met although the output text and result are exactly the same as in the example output?
22.05.2019
1212
views
5
comments
0
dean
Level 8
Deutschland
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
java heap memory
error
22.05.2019
1393
views
9
comments
0
dean
Level 8
Deutschland
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
why i fall most tests?
why i fall most tests?
22.05.2019
1315
views
11
comments
0
Deepak Joshi
Level 17
Nainital
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
What is the reason?
01.05.2019
1110
views
1
comment
0
Jishnujith
Level 7
Bengaluru
Question about the task
Shuffled just in time
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Whats wrong with code? I'm getting output correctly, but not verifying
I'm getting output correctly, but not verifying
22.05.2019
1379
views
2
comments
0
Deepak Chandra
Level 16
Visakhapatnam
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Help please!
I need some help
22.05.2019
1598
views
2
comments
0
satish
Level 15
kadapa
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
why we should use Integer.MIN_VALUE
what is the use of Integer.MIN_VALUE
22.05.2019
1049
views
1
comment
0
hidden #10455345
Level 2
Question about the task
The great purge
Java Syntax
,
Level 1
,
Lesson 8
Resolved
Can someone please explain me what am I doing wrong?
I checked my code like a 1000 times, but still get an error "You need to comment out the unused variables." I thought I did comment them out. Does anybody see my mistake?
22.05.2019
1155
views
1
comment
2
dean
Level 8
Deutschland
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
What am i missing here?
package com.codegym.task.task06.task0621; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Cat relations */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(
22.05.2019
1213
views
5
comments
0
Aastha Khanna
Level 5
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
What is wrong with this code?
public class Solution { public static int min(int a, int b, int c, int d) { //write your code here int m1,m,x; m1=min(a,b); m=min(c,d); x=min(m1,m); System.out.print(x); } public static int min(int a, int b) { //write your code her
21.05.2019
895
views
2
comments
0
Cheikh Sambakhe
Level 4
Louga
Under discussion
Can someone explain me why it's not coming? Issues with my code and my understanding of objects and classes
Hello Guys, I've just done that exercise. But don't really understand why the code below is coming. package com.codegym.task.task03.task0315; /* Roy G. Biv… */ public class Solution { public static void main(String[] args) { //write your code here //Creation objects
20.05.2019
1134
views
3
comments
0
arun et
Level 11
Chennai
Question about the task
You can't buy friends
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
I Have no idea what is wrong?
21.05.2019
1250
views
3
comments
0
Maria Habib
Level 5
Jhelum
Question about the task
Don't think about seconds…
Java Syntax
,
Level 3
,
Lesson 8
Resolved
whats the error
;(
20.09.2018
2755
views
5
comments
0
Satya Vath
Level 31
Vijayawada
Question about the task
Externalizable Person
Java Core
,
Level 10
,
Lesson 7
Under discussion
Where is the Error
I am Sure That It is Working Properly
22.04.2019
1164
views
3
comments
0
Павел Артеменко
Level 41
Krasnodar
Question about the task
Chat (part 11)
Java Multithreading
,
Level 6
,
Lesson 15
Resolved
Timeout on validation
Getting timeout on validation, while debugging with JMeter keep getting exception in Connection constructor while calling socket.getInputStream(): java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2681) at java.io.ObjectInputStream$BlockDataInputS
12.05.2019
1359
views
3
comments
0
dean
Level 8
Deutschland
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
a question
package com.codegym.task.task07.task0711; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* Remove and insert */ public class Solution { public static void main(String[] args) throws Exception { //write your code here ArrayList
21.05.2019
1388
views
7
comments
0
dean
Level 8
Deutschland
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
What am i missing here?
thanks
21.05.2019
1105
views
3
comments
0
Thomas
Level 12
Scottsdale
Under discussion
Hints --- AddTenPercent --- additional step to highlight the math ( number + percentage increase = new total )
I added an extra step to calculate to ADD the Percentage INCREASE onto the int value passed into the formula ( value + % increase = Total ) double pct = .10; double moreTotal = i * pct; double increase = moreTotal + i; // Consider this example: return 123
19.05.2019
974
views
1
comment
0
IrnBruKing
Level 7
Falls Church
Under discussion
A better way of doing it?
Hello, Is there a better, more concise way of writing the code? Is there a way of shortening the below code? /* Hello, StarCraft! */ public class Solution { public static void main(String[] args) { Zerg z1 = new Zerg(); z1.name = "Drone"; Zerg z2 = new Zerg();
20.05.2019
1012
views
1
comment
0
hidden #10444258
Level 4
Under discussion
problem login Chrome
I cannot login by Google Account in Chrome Browser. I am logged on Edge but I would like to use Chrome because of its Translate page option. When I try to login in with Google account i get this error: Error 404. Sorry, the page wasn't found. What can I do?
20.05.2019
1113
views
2
comments
0
dean
Level 8
Deutschland
Question about the task
Create a Rectangle class
Java Syntax
,
Level 5
,
Lesson 9
Resolved
How to create a copy of another rectangle passed in as an argument?
hey this code doesn't work i know it something to do with th way i create a copy of another rectangle passed in as an argument ON LINE 36~.. what am i missing? thanks! package com.codegym.task.task05.task0520; /* Create a Rectangle class */ public class Rectangle { //write your code here
25.04.2019
2537
views
15
comments
0
Show more
1
...
314
315
316
317
318
...
366
Please enable JavaScript to continue using this application.