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
hidden #10528391
Level 6
Under discussion
Note that 0 is not a positive or negative number. whats that mean
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader (new InputStreamReader(System.in)); int a = Integer.parseInt(reader.readLine()); int b = Integer
9/28/19
1483
views
2
comments
0
Henry
Level 6
Stuttgart
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
hello
The output was correct when i tested the code but the verification shows that i didnt meet the third requirement.Please,i would appreciate if anyone can help check where i made error.Thanks.
9/25/19
1542
views
2
comments
0
季军
Level 38
Shanghai
Question about the task
Aggregator (part 8)
Java Collections
,
Level 8
,
Lesson 15
Under discussion
Which site should i use?
The cached page cannot pass the first requirement, does that mean that i should just use the real page for this task?
9/29/19
1100
views
1
comment
0
Ivan
Level 22
Nope
Question about the task
Ascending numbers
Java Syntax
,
Level 6
,
Lesson 11
Resolved
How to print each number on a different line?
Guys, I've tried with and without loop, with and without print / println. Still can't pass the requirements... Please help me out! ... //printing the Arrays properly for (int a = 0; a < 1;a++) { System.out.println(Arrays.toString(numbers)); } ...
10/1/19
1890
views
2
comments
0
GCPix
Level 15
Glasgow
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
Not sure what I am missing, father will not validate
See code below. Everything apart from the father will validate. My guess was it was a typo in the sentence but I can't see it. The logic works as it prints the correct sentence and the mother prints and validates so why won't the father? TIA
9/5/19
1468
views
2
comments
0
carter
Level 8
Middletown
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Im getting the right results Ive looked over the for loops and I can't see what situation my code wouldn't maybe Im missing something please help
Tried looking at the other issues people had I am not able to find the issue. Also I am receiving the right output
9/30/19
1336
views
2
comments
0
hidden #10459091
Level 28
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Resolved
Fail 4th requirement
Tried to rework this code many times (even changed exception type in try-catch block) without any success. Please help me find the bug. Any help would be greatly appreciated.
7/9/19
1482
views
3
comments
1
Lukas Smetana
Level 10
London
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
Again, doesent work.
It's printing beautiful rectangle but it's not passing your test. why?
7/23/19
1109
views
2
comments
0
Raj Mishra
Level 2
India
Question about the task
Calling a constructor from a constructor
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
Why my 4th validation is failing?
Could anyone please tell me why my 4th validation is failing? I have called a constructor with appropriate parameters.
10/1/19
1414
views
1
comment
0
romeo
Level 5
Paramaribo
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Archived
This Code is CORRECT!?
Why when I try to validate it gives me errors on the last 2 conditions? This code is immaculate!!! Couldn't have been written better than The Creator, James Gosling himself... Yet both on IntelliJ and The webpage IDE I get errors on the last 2 conditions. (When the code is ran it meets all the requi
5/28/19
1785
views
8
comments
0
Azhar Iqbal
Level 18
Multan
Question about the task
Buggy initializeIdAndName
Java Core
,
Level 3
,
Lesson 2
Under discussion
What's the Problem ??
A little hint is appreciated.
9/26/18
1740
views
10
comments
0
John
Level 27
Washington DC
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Not seeing why this is wrong...
Not seeing why this is wrong...
9/30/19
994
views
1
comment
0
Jeremy Simons
Level 7
Peterborough, Cambridgeshire, UK
Question about the task
Minimum number of statics
Java Syntax
,
Level 6
,
Lesson 11
Resolved
I think my code should pass testing, so why doesn't it?
Looking at my code which condition do I fail to satisfy?
9/17/19
1284
views
3
comments
0
TONDO YOYA Ariel Christopher
Level 16
Rennes
Under discussion
what is wrong with my code??
package com.codegym.task.task04.task0412; /* Positive and negative numbers */ import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner myObj = new Scanner(System.in);
9/30/19
1036
views
1
comment
0
rani
Level 7
Bothell
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
task07.task0708 - Longest string program works fine but not getting verified
package com.codegym.task.task07.task0708; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Longest string */ public class Solution { private static List strings; public static String l; public static ArrayList fin = new
9/30/19
1357
views
1
comment
0
Nikolaos
Level 22
Vrontados
Question about the task
Fix four mistakes
Java Core
,
Level 4
,
Lesson 8
Resolved
What's wrong here? Any suggestion?
"The printListValues method should display the contents of the resulting list." But i don't understand why it doesn't..
9/25/19
1866
views
2
comments
0
Patrick freeman
Level 14
Buffalo
Question about the task
Hello, StarCraft!
Java Syntax
,
Level 3
,
Lesson 4
Resolved
Hello, Starcraft!
Hello, I feel this task should be really easy, but I can't seem to set a name for each object. This is what I've tried thus far, and it doesn't pass verification. Thank you in advance for your help!
9/21/19
1906
views
7
comments
0
hidden #10462592
Level 8
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
last condition????
It works fine when I enter a positive number, but then there is an unwanted incrementation when the input is negative. How to satisfy the last condition? I even used the letters 'a' & 'b' as depicted in the question. Thanks in advance!
9/5/19
1511
views
5
comments
0
Tara Edwards
Level 6
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Right answer, but failed requirements.
So.. with a little help from @Heavy I got the program to run..but while I'm getting the correct output I'm faiing multiple requirements. Hmmm
9/18/19
1362
views
5
comments
0
Kris
Level 9
Englewood
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Resolved
The Code though longer works in IDEA but still I get errors for the last 3 conditions
The Code though longer works in IDEA but still I get errors for the last 3 conditions
9/26/19
1444
views
6
comments
0
Kris
Level 9
Englewood
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Hi,
Hi, Does anyone have an idea why this code is not working ? Btw I also tried with && and still not working -->>> public class Solution { public static void main(String[] args) { checkSeason(12); checkSeason(4); checkSeason(7); checkSeason(10);
9/25/19
1062
views
2
comments
0
Siddharth
Level 14
Seattle
Question about the task
Cat and Dog objects: 50,000 each
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Time out, the program ran too long and was closed?
What have I donewrong?
7/30/19
1293
views
2
comments
0
Laurap5
Level 9
Vilnius
Question about the task
Somehow average
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Please help,
Doesn't working when I'm trying to test 1 3 2, receiving 3
11/15/18
1609
views
5
comments
0
carter
Level 8
Middletown
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
getting the desired output under all circumstances yet still not meeting conditions.
Maybe there is a different way to write the code that "meets the requirements" but is there anything fundamentally wrong with the way I am getting the answer ????
9/30/19
1193
views
1
comment
0
fifi deng
Level 22
Paris
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
Nothing wrong i think so
cause why it cant fit the lase request~~
9/28/19
1596
views
7
comments
0
Mikayla Pace
Level 27
Salt Lake City
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Am I iterating correctly?
Not sure why my removeFirstNameDuplicates method doesn't remove duplicate values.
9/27/19
1565
views
1
comment
0
Antonia
Level 10
Question about the task
Display today's date
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
help
?
7/15/19
1257
views
4
comments
0
Denis
Level 22
Kharkiv
Question about the task
Sorting bytes
Java Core
,
Level 8
,
Lesson 3
Under discussion
give me your help pls
need help
6/28/19
1074
views
1
comment
0
Andriy
Level 22
Toronto
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Under discussion
What is the problem?
The second half of the bytes in the first file must be written to the third file??
9/27/19
1040
views
1
comment
0
Antonio
Level 12
Rotterdam
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Output is correct
Who can help me out????
9/23/19
932
views
1
comment
0
Show more
1
...
276
277
278
279
280
...
374
Please enable JavaScript to continue using this application.