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
Sabine Meijran-Prins
Level 7
Enschede
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
How do you place every arraylist item on a new line?
I am on this task for hours. I really do not know how print the Arraylist items on a new line.
2/13/19
2321
views
8
comments
0
Avinash Rana
Level 7
Kolkata
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
As per conditions my program follows but why its giving error?
What to do?
8/26/19
1120
views
2
comments
0
Online Learner
Level 6
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
heya can you solve this ??
my code is
6/29/19
1735
views
7
comments
0
// Java Poser
Level 18
Cincinnati
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
Please someone help
Been stuck here for an hour. I meet all conditions but CodeGym won't let me verify. please, any input will be much appreciated
3/21/19
2267
views
3
comments
0
Agalaivan
Level 8
Chennai
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
why wrong
package com.codegym.task.task08.task0812; import java.io.*; import java.util.ArrayList; import java.util.Collections; /* Longest sequence */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamR
7/20/19
1611
views
2
comments
0
RS
Level 13
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Can't figure it out.
Can anyone take a look at my solution?
7/14/19
1387
views
2
comments
0
Muhsin Ak
Level 10
Thiruvananthapuram
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
whats wrong?i got the output correctly.
package com.codegym.task.task08.task0812; import java.io.*; import java.util.*; /* Longest sequence */ public class Solution { public static void main(String[] args) throws IOException { //write your code here ArrayList numbers = new ArrayList(); Scanner sc = new Scan
7/28/19
1136
views
1
comment
0
SefoBe
Level 16
Paris
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Output is okay but failed
What's wrong with it ?
8/13/19
1141
views
4
comments
1
Angeget
Level 22
Potsdam
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Resolved
I tried everything - and now i a relly tired on this task - could any one help me to find what is wrong? Please and please
I tried everything - and now i a relly tired on this task - could any one help me to find what is wrong? Please and please
2/25/19
1777
views
7
comments
2
Carlos Cortázar
Level 17
Madrid
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
the program does not verify my solution
I check my solution and it runs well in all the cases, but when i press 'verify' the program fails. Why?
8/24/19
1127
views
4
comments
0
Bartek J.
Level 13
Zielona Góra
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Problem with adding
My code adds only adds every second input. Does anybody know why?
8/20/19
1229
views
2
comments
0
Jesús de Llera
Level 23
Badajoz
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Under discussion
Confused with Example output
Produces this result: But I don't get where the second 'Leela Turanga' line is coming from. Shouldn't the output consist of just 3 lines? Without the highlighted line in red??
7/3/19
1550
views
3
comments
1
Teemu-Petteri Remes
Level 16
Oulu
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
Last condition not meet? What is wrong?
I take N and made sure it cant be negative, don't understand what is wrong?
8/24/19
1234
views
1
comment
0
hidden #10468516
Level 5
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
help!!
i am not able to find whats wrong in my code
7/21/19
1581
views
5
comments
0
SefoBe
Level 16
Paris
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Why is that wrong ?
How can you explain it ?
8/21/19
924
views
1
comment
0
hidden #10462592
Level 8
Question about the task
Let's put together a rectangle
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
satisfied all conditions but...
what is this one line that reads " copy another rectangle" ?? what does it actually mean? I haven't written any method for copying of parameters but yet it passed. How to create a copy function?
8/17/19
1596
views
2
comments
0
Nobody
Level 37
Seattle
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Under discussion
an anyone help me out please
can anyone help me out of this please
5/23/19
1370
views
2
comments
0
Alexander Shtunder
Level 41
San Francisco
Question about the task
UnsupportedFileName
Java Core
,
Level 8
,
Lesson 8
Resolved
2 or 1?
In this task, is it generally possible to avoid creating two objects of the FileInputStream class as in my code? public class TxtInputStream extends FileInputStream { public TxtInputStream(String fileName) throws Exception { super(fileName); if (fileName.endsWith(".txt")) {
8/22/19
1459
views
2
comments
0
Sk Nazim Uddin
Level 2
Barddhaman
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
it is saying "In the main method, create a Person object and immediately assign a reference to it to the variable person." in level 2 , i cant understand what is it trying to say?
In the main method, create a Person object and immediately assign a reference to it to the variable person.
8/12/18
2651
views
7
comments
0
ilian44
Level 30
Veliko Turnovo
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Error
Hi, Strange on my local pc is ok but the Validation doesnt accept it. What would be the problem?
8/21/19
1267
views
7
comments
0
Denis
Level 22
Kharkiv
Question about the task
Arranging calls to join()
Java Core
,
Level 6
,
Lesson 5
Under discussion
Last condition pls
I understand all condition, but i cant do this. Pls give me the full code.
6/27/19
1200
views
2
comments
0
hidden #10451198
Level 14
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Its impossible
I can't do anything more. I'm trying many many other codes and I can't do anything to run it properly. What I need to change there to run this?
5/18/19
1725
views
5
comments
0
Mikica
Level 15
Novi Sad
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
need help...cant figure out whats wrong...
need help
8/23/19
1208
views
1
comment
0
SefoBe
Level 16
Paris
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
How to separate by space
What can I do to separate numbers by spaces ?
8/20/19
1365
views
4
comments
0
Emanuele Gurini
Level 18
Porto Recanati
Question about the task
Tom, Jerry and Spike
Java Core
,
Level 3
,
Lesson 6
Under discussion
Why STATIC here?
Hey guys, i have a question although i made right the exercise; so, the question is: why i need to write Dog, Cat and Mouse classes STATIC here? Thank's a lot, i love you all!
8/23/19
1127
views
2
comments
0
Vikrant.
Level 1
Delhi
Under discussion
task07.task0713: What is wrong with the while loop, though program works with for loop
package com.codegym.task.task07.task0713; import java.io.BufferedReader;z import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Playing Javarella */ public class Solution { public static void main(String[] args) throws Exception { //write your code
8/22/19
1264
views
2
comments
0
Mikica
Level 15
Novi Sad
Under discussion
Getting really strange bug when typing anything...for a single letter typed i get additional letter written that i previously typed...
for example i type "a" program types a but after for each additional letter program types every letter i typed before...
8/22/19
921
views
4
comments
4
Andrea
Level 20
Question about the task
Animal identification
Java Core
,
Level 2
,
Lesson 2
Resolved
Mentor is saying Incorrect Value of Pig - However not seeing it
The output is correct, but the mentor says - Incorrect value for a Pig object. However I'm sending the correct value for the Pig object, since its' output is correct. Please advise.
8/22/19
1662
views
1
comment
0
John
Level 8
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
Can't get the objects to print correctly
My code as attached prints the hashCode for each object, 1 per line, but this doesn't meet the requirements. I'm trying to override the toString() method to correct this. But (after un-commenting lines 16-19), whatever I try to return causes an error. How do I fix this?
7/19/19
1578
views
11
comments
2
AISHWARYA ANIL BHOSALE
Level 12
Pune
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Cannot pass the test case
What's the problem with this code? I can't pass the case.
4/17/19
1234
views
4
comments
0
Show more
1
...
287
288
289
290
291
...
374
Please enable JavaScript to continue using this application.