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
LucGar
Level 22
Bilbao
Question about the task
Maximum in an array
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
i found the solution but i have a ask
Why the program use the method " public static int[] initializeArray() "? it is confused me. it would not be easier to put it directly in the main method by omitting this method
25.12.2019
1187
views
2
comments
0
Jason
Level 16
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Under discussion
.equals apprach vs. switch comparing String
Why does the continent.equals approach work here but not the switch? I don't understand why the switch doesn't evaluate correctly in this scenario. Thanks static class HenFactory { static Hen getHen(String continent) { Hen hen = null; //write your code here
26.12.2019
961
views
1
comment
0
jajaceek
Level 23
Warszawa
Question about the task
Only for the rich
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Why it doesn't work
Hi, I made the solution in the was which is at the comments. But I would like to make it in other way - like it this way. ____________________________ public static void removeItemFromMap(HashMap map) { // int level = 500; Iterator> iter = map.entrySet().iterator(); w
22.12.2019
1057
views
2
comments
0
Shawn
Level 3
Dallas
Question about the task
Hello, StarCraft!
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
I actually have ttis game!
Cannot believe this! I should make these units for real in the game and then just take pics and apply them to this task XD lol problem solved
13.12.2019
1117
views
1
comment
0
William Hoang
Level 10
Hanoi
Question about the task
Space Invaders (Part 1/34)
Games
,
Level 0
,
Lesson 6
Under discussion
Could anyone help me to this task
I just create a class SpaceInvadersGame like below, and still not true :|
16.12.2019
960
views
1
comment
0
YSS
Level 16
New York City
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Under discussion
Test not passing - Works as requested with the examples, thanks for the help
On a scale of 1 to 10, this is reaching number 10 of frustration, The test urls work, I even added a check that if you enter a non url it still prints it out. thanks for the help.
21.12.2019
1021
views
2
comments
0
Anthony Chalk
Level 30
London
Question about the task
Take your turn!
Java Core
,
Level 6
,
Lesson 13
Resolved
Threads not running sequentially
The program currently reads the output from the first thread and adds it to the list of the second thread e.g. Input a b c Output a b c Input a b Output a b ca b edit: I got rid of line 33, didn't notice line 9 originally
25.12.2019
1582
views
1
comment
0
Rafał Szrajnert
Level 7
Poddebice
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
to me it looks correct
Hi, I checked witn negative, positive and mixed numners. code seems to work good, but not accepting task
26.12.2019
1217
views
2
comments
0
George Leonardo
Level 9
Bucharest
Question about the task
Snake (Part 10/20)
Games
,
Level 0
,
Lesson 1
Under discussion
What is the problem with the draw method?
I am struggling to find the bugs inside the method draw.Can anybody help me? Is the logic behind the implementation wrong or is it just a little bug that i do not know how to find? Thanks in advance!
25.12.2019
1369
views
1
comment
0
Jennifer Boutell
Level 7
Tacoma
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Works but fails testing
Hmmm. My code works in all cases as far as I can see in testing, but it keeps failing the last requirement. Any idea?
25.12.2019
978
views
1
comment
0
yongen charleslim
Level 10
Singapore
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Resolved
what's wrong with my code?
zzz
23.12.2019
1120
views
1
comment
0
Denis
Level 22
Kharkiv
Question about the task
Fixing bugs
Java Core
,
Level 4
,
Lesson 8
Under discussion
Help me pls with this
give me pls the solution
25.06.2019
1566
views
6
comments
0
Rafał Szrajnert
Level 7
Poddebice
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
entering nmbers work
hi, when I try differen combinations console prints good answers but it is not letting me pass, any idea?
25.12.2019
893
views
2
comments
0
Ronaldo M
Level 2
Chennai
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Why does the last test case fail?
package com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { int b; b=a+1000; System.out.println("Your Salary is: "+b+" d
24.07.2019
1146
views
2
comments
0
Steve
Level 9
Denver
Question about the task
Family census
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
This is funny,, I passed the requirements with the below for loop,,, that does not work,, any thoughts??
Here is the for loop,, I hope this is not considering attaching a solution to the question? Thank You! Human h1 = new Human("GrandFather1",true,23 ); Human h2 = new Human("GrandMother1",false,20); Human h3 = new Human("GrandFather2",false,12); Human h4 = new Human("GrandMot
25.07.2019
1358
views
2
comments
0
yi
Level 20
Toronto
Question about the task
All that moves
Java Core
,
Level 3
,
Lesson 2
Under discussion
Please help me with this one
Can someone tell me how to return a double ? Thx
15.12.2019
1455
views
4
comments
0
Alec Jensen
Level 5
Arlington
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Please explain what is wrong in this code
I am using or in my code but not returning anything but errors. Can anybody explain?
20.12.2019
1384
views
3
comments
0
Seán de Roo
Level 4
Utrecht
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
How come I get an error on the third item?
Please someone help me
24.12.2019
1204
views
1
comment
0
JaclynTJY
Level 4
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Are there anyways to make this work?
I know there's another way to do this, but I wannna try to make this work. Thanks in advance
15.12.2019
1160
views
2
comments
0
Rani Rauniyar
Level 3
Noida
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
where ' ; ' is expected. Please help me to know what's wrong in my program and with full details please
THIS IS MY PROGRAM WHAT I HAVE WRITTEN. package com.codegym.task.task02.task0204;
20.12.2019
1349
views
8
comments
0
Richard Melton
Level 7
St Louis
Question about the task
Labels and numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
Hey anybody have any suggestions? Is my logic off or my syntax? I am stumped.
package com.codegym.task.task04.task0426; /* Labels and numbers */ import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); String a
16.12.2019
2288
views
8
comments
1
Kirsten de Wit
Level 17
Cape Town
Question about the task
Display today's date
Java Syntax
,
Level 5
,
Lesson 12
Resolved
I am getting the correct date, but it is not accepted.
I am getting the correct date, but it is not accepted.
31.10.2019
1816
views
2
comments
1
Sven
Level 19
Hanover
Question about the task
Picking out numbers
Java Core
,
Level 9
,
Lesson 5
Resolved
TimeOut Error
If I test this with a basic tesfile it seems to work just fine. But for some reason there is something wrong when verifying and the programming won't finish. Any ideas?
25.10.2019
1565
views
6
comments
0
Alan Heffernan
Level 17
Anwoth
Question about the task
What's today's date?
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Help with fixing final output
If i input the Date "2013-08-18" the output is "DEC 31, 2013", after doing some debugging the error is happening on line 24 where i parse the string to a date variable. Any idea why this is happening?
12.05.2019
1564
views
4
comments
1
waseem khan
Level 13
Rawalpindi
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
please help ?
what's wrong with this solution i tried many inputs program gives correct output in each case but still last condition fails to satisfy ?
21.08.2019
1040
views
2
comments
0
Davedabull
Level 22
New York City
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Better way to print?
package com.codegym.task.task08.task0824; /* Make a family */ import java.util.*; public class Solution { public static void main(String[] args) { //write your code here Human daughter = new Human("Lili",false,2); Human son = new Human("Xing",true,1); Human
22.12.2019
1181
views
2
comments
0
Noam Tam
Level 8
Haifa
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Please help me to understand what is wrong here
Please help me to understand what is wrong here
22.12.2019
1167
views
1
comment
0
Shawn
Level 3
Dallas
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Still don't get this!!!
error: The min method must return the minimum of numbers a, b and c. My code: package com.codegym.task.task02.task0216; /* Minimum of three numbers
11.12.2019
1412
views
5
comments
0
Jeremy Simons
Level 7
Peterborough, Cambridgeshire, UK
Question about the task
Maximum in an array
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
please advise
originally I wrote this to return the maximum positive integer. I read somewhere that the condition for the largest integer is only concerned with the size of the integer regardless of if it's positive or negative?
09.12.2019
1216
views
7
comments
0
Maja Mal
Level 4
Sanok
Question about the task
Minimum of two numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Wrong last condition.
hi! any hint for me about wrong last condition, please? :)
17.12.2019
1544
views
2
comments
0
Show more
1
...
243
244
245
246
247
...
371
Please enable JavaScript to continue using this application.