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
Finnegan Lukenoff
Level 4
Chesterfield
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Why am I getting an extra number at the end of my loop?
I've been staring at this for hours and cannot figure out why it prints an extra number at the end of each line. Any help would be appreciated! public class Solution { public static void main(String[] args) { //write your code here int i, j; for (i = 1; i <= 10; i++)
7/14/20
517
views
1
comment
0
Marek Pasierbek
Level 9
Poznań
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Why is not OK?
Code is OK, program works.
7/10/20
708
views
5
comments
0
Raj Mishra
Level 2
India
Question about the task
Month number
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
I have used collections here. HashMap . But still its failing.
I have used collections here. HashMap . But still its failing.
7/12/20
730
views
7
comments
0
Sanjeevkumar
Level 22
Mumbai
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Under discussion
How to print something? lol!
I tried a lot but it still ah mesh. it compiles without an error and prints nothing just blank help me to overcome this ,thanks in advance!
7/9/20
513
views
2
comments
0
Erin Garner
Level 5
Greenville
Question about the task
More conversions
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Please help me I've hit a road block.
I have tried multiple solutions to this. I get the output of "2" but it still says it's wrong. Please help
7/13/20
543
views
2
comments
0
Mr Jake
Level 2
Kolkata
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
the loop
i didn't understand the loop
7/12/20
845
views
3
comments
0
Jack
Level 8
Brussels
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Resolved
what did i write wrong?
Hi guys Can please tell me what's wrong with my code? looks ok in the output, what did i miss? thanks
7/12/20
883
views
7
comments
0
Angel Li
Level 18
Fremont
Question about the task
Hello, StarCraft!
Java Syntax
,
Level 3
,
Lesson 4
Resolved
Why does it say illegal start of expression?
How do I fix the problem; it says illegal start of expression when I run it.
5/31/20
730
views
4
comments
1
Erin Garner
Level 5
Greenville
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Please help, what am I doing wrong?
It keeps saying it needs ';' at line 11, position 221. I've double checked everything and made sure that there was a ';' after everything that needed it.
7/11/20
711
views
3
comments
0
Johannes
Level 27
Centurion, Pretoria
Question about the task
So, let's... compare
Java Multithreading
,
Level 4
,
Lesson 2
Under discussion
So I passed this. But have no idea why or how it works.
I don't even understand where the "super" comes in here ? It wasn't a class that was extended from a super class ? public static class A implements Serializable { protected A clone() throws CloneNotSupportedException { return (A) super.clone(); } }
5/4/20
959
views
1
comment
0
Rebekah H
Level 8
Gothenburg
Question about the task
Improving functionality
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Returns the right answer but does not pass.
So this program returns "Minimum = -79" but does not pass the following two requirements. 1. "The class must have a public static min method that takes 5 int arguments." 2. "The min method must return the minimum of the 5 passed numbers. If there are several minimum numbers, return any of them." C
7/9/20
791
views
3
comments
0
Seferi
Level 22
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Works on the IDE but can't pass the test
Any help is appreciated..
7/9/20
586
views
6
comments
0
Mr Jake
Level 2
Kolkata
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
please explain me
please explain me where am making a mistake
7/13/20
564
views
2
comments
0
Marvin Ellis
Level 7
Peoria
Question about the task
Getters and setters for the Dog class
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Whats wrong with line 18?
file com/codegym/task/task05/task0503/Dog.java, line 18, position 302 I don'T understand whats wrong here.
7/13/20
1283
views
1
comment
0
Maxine Hammett
Level 19
San Diego
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Remove Key function is not working
I'm at a loss on this one. It makes sense to me that the code should be working, but it doesn't. Your help is appreciated.
7/10/20
611
views
6
comments
0
dhanush
Level 30
Chennai
Question about the task
OOP: Fix inheritance problems
Java Core
,
Level 5
,
Lesson 2
Under discussion
need help
i don't know what's wrong in this i have almost done everything bu the last condition is not satisfying, please help me
7/12/20
589
views
2
comments
0
Sohail ansari
Level 2
Saharsa
Question about the task
Part of a calculator
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
How to add new line
how can I add new line the program
1/29/20
1150
views
4
comments
1
slyyx
Level 15
New York City
Question about the task
Snake (Part 1/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Error: Be sure that the SnakeGame class includes the following import statement: import com.codegym.engine.cell.*;
Even if i copy and paste the import statement it still says its wrong. Cannot for the life of me figure out the issue
6/22/20
956
views
2
comments
0
Mr Jake
Level 2
Kolkata
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Please some one explain me
Anyone please explain me where am doing wrong
7/13/20
597
views
3
comments
0
Ted404
Level 11
Dubai
Question about the task
HashMap of cats
Java Syntax
,
Level 8
,
Lesson 3
Under discussion
Please help with explanation of everything
Can anyone please explain what exactly is happening here? I feel like I totally don't understand what is happening here. I've passed the previous levels with good understanding. However, HashMaps and in general collections seem really confusing to me. I would also appreciate any additional links for
4/3/20
1340
views
3
comments
3
sourav bamotra
Level 20
jammu
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Resolved
help me out with displaying stuff.
whats actually going wrong with the output stuff. i tried my code in IDE an there as well it is not throwing any output except blank screen.
6/12/20
585
views
4
comments
0
Erin Garner
Level 5
Greenville
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Why is this not working?
Can someone please help me. I don't know what is wrong in this code and I have double checked it multiple times.
7/12/20
673
views
2
comments
0
Tata
Level 16
Hisar, Haryana
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Everything looks fine. please correct me to get right output.
String s1 = "This is a Windows path: ";
5/11/20
1042
views
5
comments
0
Djordje
Level 19
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Resolved
I am confused. Only first condition is satisfied. It even fails to Read 10 lines from the keyboard and add them to the list.
package com.codegym.task.task07.task0717; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.ListIterator; /* Duplicating words */ public class Solution { public static void main(String[] args) throws Exception { BufferedRea
11/15/18
1897
views
2
comments
1
Daniela
Level 8
Barcelona
Question about the task
Cat code won't compile
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Output its ok but task is failing
Can someone help me? Cannot find what is wrong with this
7/12/20
659
views
3
comments
0
David
Level 26
Bucharest
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Whart am I doing wrong?
help, please!
3/28/20
1264
views
9
comments
0
Seferi
Level 22
Question about the task
In decreasing order
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Please help!
Can't figure this one out... Where am I doing wrong?
7/1/20
806
views
5
comments
0
Goran
Level 41
Belgrade
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Resolved
Need new look on this problem
I tested on my files and it is working but not passing third and forth condition. Can someone see mistake ? if (args.length > 0 && (args[0].equals("-u") || args[0].equals("-d"))) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); St
6/13/20
947
views
6
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Bug in equals/hashCode
Java Multithreading
,
Level 1
,
Lesson 5
Under discussion
What is wrong in my code?
I tested my code: Set s = new HashSet<>(); Date d = new Date(); Solution a = new Solution(); Solution sol = new Solution(3, "ala", 2.2, d, a); System.out.println(s.add(sol)); System.out.println(s.add(sol)); output is: true false
5/5/19
1900
views
3
comments
0
Ramilya
Level 20
SPb
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Resolved
Mistake in last condition
Please help. What's wrong in my code? Output is correct.
3/11/19
1591
views
2
comments
2
Show more
1
...
170
171
172
173
174
...
374
Please enable JavaScript to continue using this application.