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
Cristian
Level 16
Bucharest
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
What's wrong with my code? The last requirement isn't satisfied. Thank you very much!
/import java.io.BufferedReader; import java.io.IOException; //import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Scanner; //import java.util.*; /* Checking the order */ public class Solution { public static void main(String[] args) throws IOException { Scan
11/6/19
1147
views
1
comment
0
Petr Svitil
Level 2
Prague
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Error despite correct Output
Please help.. The Output seems correct. I even copied and pasted the System.out.println statement from the help forums. But the last check keeps failing.. Will be grateful for any help!
11/6/19
1252
views
3
comments
0
Timothy Strong
Level 4
San Diego
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What is wrong with the expression for calculating the winter months please.
package com.codegym.task.task04.task0411; /* Seasons on Terra */ public class Solution { public static void main(String[] args) { checkSeason(12); checkSeason(4); checkSeason(7); checkSeason(10); } public static void checkSeason(int month) {
11/6/19
1466
views
2
comments
0
Brandon Nicolle
Level 5
Edmonton
Question about the task
Calculate the circumference of a circle
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
I solved this but I don't understand how, can somebody explain please.
So I solved this but I don't understand how the program draws the radius variable since nowhere in the code do we write: radius = 5 Can somebody explain how our script draws radius to equal 5 without us assigning it?
8/10/19
1475
views
5
comments
0
Diogo Dias
Level 4
Regensburg
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
output is right. why isnt validating?
The output is 15 but not passing the validation. why?
10/24/19
1370
views
3
comments
0
Wei Cui
Level 39
Newark
Question about the task
Problem solving
Java Core
,
Level 9
,
Lesson 8
Under discussion
Meet the output, but last condition fail
I tested code and meet goal, but cant pass the last condition. please help.
11/6/19
1371
views
2
comments
0
Anonymous #10410173
Level 22
Delhi
Question about the task
Greater than 10? You're not a good fit for us
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Stuck in last condition
where i am wrong
10/14/19
1351
views
3
comments
0
Hossein Shams
Level 1
Atlanta
Question about the task
Snake (part 11)
Java Multithreading
,
Level 2
,
Lesson 18
Resolved
Help needed (I guess nobody had faced this issue!)
createMouse method don't pass the verification
11/4/19
1304
views
5
comments
0
MRITUNJAY KUMAR SINGH
Level 25
Pune
Question about the task
Snake (part 10)
Java Multithreading
,
Level 2
,
Lesson 18
Under discussion
first three requirement not verifying
.......
9/3/19
1343
views
1
comment
0
Bogdan Codreanu
Level 23
Question about the task
Deserialization
Java Core
,
Level 10
,
Lesson 10
Under discussion
??? some help please???
i can't see the mistake
9/4/19
1205
views
1
comment
0
Anoop Negi
Level 15
Meerut
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
What ' s wrong with condition 4
what ' s wrong with condition 4 please help me to solve this
10/17/18
1763
views
4
comments
0
Paul
Level 24
Vienna
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
works, but wont pass
It works with all numbers I entered, still I don't pass the last requirement. Any suggestions?
11/6/19
1716
views
1
comment
0
theCalculator
Level 3
Warren
Question about the task
The humble programmer
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Last condition not fulfilled.
I have looked at this problem several times. Does anyone have an idea why this is unresolved? The input shows the name Sara was entered and the output shows the remaining text. I'm not seeong it.
11/6/19
1129
views
1
comment
0
Chris Chou
Level 2
Santa Barbara
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Im still getting the last task wrong. Im not sure what I did wrong.
package com.codegym.task.task01.task0130; public class Solution { public static void main(String[] args) { System.out.println(convertCelsiusToFahrenheit(41)); } public static double convertCelsiusToFahrenheit(int celsius) { double TC = 41; double TF = 1.8*TC+32;
10/31/19
1373
views
6
comments
0
Naweeda Qeyam
Level 3
Pleasanton
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Does somebody know the issue?
I am stuck at "The min(a, b, c, d) method must return the minimum of the numbers a, b, c, and d", I appreciate any help or idea.
11/4/19
1192
views
2
comments
0
Taronuz
Level 0
Resolved
New containing name and phone?!
Hey there, I am currently trying to finish that task. My code so far is: public String[] addressBook(String[] names, String[] numbers) { String[] Result= { names[0] + numbers[0] + ", " + names[1] + numbers[1] + ", " + names[2] + numbers[2]}; return Result; However it always give
11/5/19
917
views
1
comment
2
Prasenjit
Level 1
Kolkata
Question about the task
Bugs and features
Java Syntax
,
Level 0
,
Lesson 8
Under discussion
Why the last condition is not matching?
package com.codegym.task.task01.task0106; /* Bugs and features */ public class Solution { public static void main(String[] args){ System.out.println("It's not a bug-it's a feature."); } }
9/13/18
1423
views
2
comments
0
Chris Chou
Level 2
Santa Barbara
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
I dont get why my last task is not being fulfilled
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 = a + 1000; System.out.println("Your salarty is " + (b+1000) + " dollar
11/4/19
1519
views
2
comments
0
Picvajzmen
Level 20
Belgrade
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Resolved
I managed to solve this problem with BufferedReader, but im interested in what is wrong with this solution if anybody can tell me please!
import java.io.BufferedReader; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
11/1/19
1873
views
2
comments
0
Tian Pro
Level 23
Cape Town
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Why wont the last requirement be fulfilled?
Is my math correct, or too complicated or something?
11/4/19
1295
views
4
comments
0
Emre BELEN
Level 1
Istanbul
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Under discussion
I couldn't find where the logic fails
Hey, I'm trying to implement mine sweeper game's 6th part but couldn't achieve the goal that indicated at 3rd condition. Could one of you guys please help me to understand the problem ? Thanks
8/15/19
1117
views
1
comment
0
Cyrus
Level 3
Under discussion
insert an element into an array
How can I add a symbol between the elements in array for example add(a, b, c) to add(*a*, *b*, *c*): public class exercise { public static String[] add(String[] strings) { String array[] = {""}; String output = "*" + Arrays.toString(array); return array; } } publi
10/30/19
1058
views
1
comment
0
Jay
Level 11
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
What's going on?
As far as I can tell the logic is all there..
11/4/19
1191
views
4
comments
0
Shujaat Mirza
Level 3
Houston
Question about the task
Parenthetical brainteaser
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
i cant solve it please help
package com.codegym.task.task03.task0306; /* Parenthetical brainteaser//2 * (3 + 4 * (5 + 6 * 7)) */ public class Solution { public static void main(String[] args) { System.out.println((2 * 3) + 2 * 5 + (9 * 40) + 6);
11/3/19
1409
views
2
comments
0
S V Aditya
Level 4
Delhi
Question about the task
Snake (Part 7/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Why can't i Iterate?
The screenshot as it is works. If I instead try to iterate over the snakeParts list, it all goes to hell. (The commented code is used instead of calling each element over and over for that.) What am I doing wrong? Error Trace It's all Greek down here, but I think it's a NoSuchElement Exception. But
11/4/19
994
views
1
comment
0
Jerrod Molnar
Level 18
Stoystown
Question about the task
Factorial
Java Core
,
Level 5
,
Lesson 12
Under discussion
Confused
I get all the right output I am completely stumped
1/25/19
1780
views
5
comments
1
Anthony Chalk
Level 30
London
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
I don't know what to do
Can anyone help me with this exercise and also point me to some resources regarding the Iterator class, I really don't understand it that well. Thank you
11/3/19
908
views
1
comment
0
Jarosław Wyka
Level 3
Tarnow
Under discussion
I can't choose task
Hello. When i want choose a task i have an error: Uknown error. And i also can't find my avaible tasks in Select Tab bar. please help.
11/1/19
1005
views
1
comment
0
curiousmittu
Level 15
Downers Grove
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Not sure what is missing from my solution. I have tested several scnearios at it looks to work fine. Any help is appreciated ?
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 = new ArrayList(); public static void main(Strin
11/2/19
1042
views
1
comment
0
hidden #10426395
Level 2
Under discussion
My task is to make the Button component change the text on my TextView with onClick method. How shoud I do this on below given code?
import android.os.Bundle; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_mai
11/3/19
891
views
1
comment
0
Show more
1
...
264
265
266
267
268
...
374
Please enable JavaScript to continue using this application.