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
All quests
All levels
Any status
Questions about tasks
Hot
Bryce Lindley
Level 9
Olympia
Question about the task
Minimum of two numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Getting Errors in this code. Not sure why but the ELSE-IF statements are throwing errors.
21.02.2019
1926
views
8
comments
2
Andrew
Level 29
Seattle
Question about the task
Mastering the static block
Java Core
,
Level 5
,
Lesson 12
Resolved
If the input string is "plane", a Plane object should be stored in the variable result.
I'm stuck here. Not sure why this wouldn't be working.
01.02.2019
1937
views
3
comments
1
karina abad
Level 11
Daly City
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Cannot figure out how to fix the problem
So I think my problem is with the last index. I lowered down the number of words for the checking of the code so I know that's not a ten, but I just need to figure out the logic first and so far this is what I have. I'm not sure if I'm thinking about this right or doing this right. Please help!
29.08.2019
1399
views
1
comment
0
Balen Asangbeh
Level 23
Douala
Question about the task
Reading and writing to a file: Human
Java Core
,
Level 10
,
Lesson 2
Archived
pls for some hints am really confused
pls for some hints am really confused
06.04.2019
1396
views
6
comments
0
Brandon Horvatic
Level 27
Johannesburg
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Resolved
How do you test output with args[0]? I get an ArrayOutOfBounds Exception and cannot see my data output
How do you test output with args[0]? I get an ArrayOutOfBounds Exception and cannot see my data output
28.09.2019
1358
views
2
comments
0
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
28.09.2019
1385
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.
25.09.2019
1442
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?
29.09.2019
1018
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)); } ...
01.10.2019
1807
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
05.09.2019
1369
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
30.09.2019
1246
views
2
comments
0
Kotlet
Level 28
Wroclaw
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.
09.07.2019
1408
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?
23.07.2019
1033
views
2
comments
0
Raj Mishra
Level 15
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.
01.10.2019
1324
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
28.05.2019
1673
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.
26.09.2018
1658
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...
30.09.2019
908
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?
17.09.2019
1211
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);
30.09.2019
960
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
30.09.2019
1266
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..
25.09.2019
1761
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!
21.09.2019
1807
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!
05.09.2019
1400
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
18.09.2019
1260
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
26.09.2019
1360
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);
25.09.2019
989
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?
30.07.2019
1217
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
15.11.2018
1528
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 ????
30.09.2019
1120
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~~
28.09.2019
1491
views
7
comments
0
Show more
1
...
274
275
276
277
278
...
372
Please enable JavaScript to continue using this application.