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
Yuvavimal
Level 12
coimbatore
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Resolved
why last two requirement pass?
package com.codegym.task.task06.task0611; /* StringHelper class */ public class StringHelper { public static String multiply(String s) { String result =""; //write your code here for (int i = 0; i < 5; i++) { result = s; // System.out.println(
22.07.2020
541
views
1
comment
0
Fabian Andiel
Level 25
Vienna
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Archived
Returns too few lines
Hi guys, can you help me I get the error message "returns too few lines". What is wrong here? greetings Fabian
22.07.2020
367
views
3
comments
0
hidden #10362262
Level 9
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
The verify is telling me that I am not getting the correct variables and output
Not sure what's happening, but can anyone proofread my code. Trying to see what I am doing wrong. Thank you!
02.12.2018
1551
views
4
comments
0
vamsi mokari
Level 13
Hyderabad
Question about the task
Man and woman
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
What's wrong here I created two objects both types
What's wrong here I created two objects both types
22.07.2020
485
views
2
comments
0
Rebekah H
Level 8
Gothenburg
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Gives correct output but does not compile?
Could someone have a look at what is wrong with my code please? :)
14.07.2020
576
views
3
comments
0
hidden #10538281
Level 10
Question about the task
Cat and Dog objects: 50,000 each
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
I think it should be working...
I get a compiler error saying "error: variable declaration not allowed here". I don't understand why... Thank you for your help!
09.02.2020
1237
views
2
comments
0
Dyrits
Level 1
Question about the task
Logging stack traces
Java Syntax
,
Level 9
,
Lesson 2
Resolved
What's wrong?
I have the correct output.
22.07.2020
624
views
1
comment
0
ishu
Level 6
Maharashtra
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
got tired by trying it
what should I change?
20.07.2020
622
views
4
comments
0
ishu
Level 6
Maharashtra
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
MismatchException?
I didn't get y?
18.07.2020
647
views
4
comments
0
hidden #10645646
Level 16
Question about the task
Task about algorithms
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
program works but validator is wrong.
My program works, but the validator won't accept it. I've tried it with randomly capitalizing characters in words, having words with all caps, having words with no caps, it returns a completely alphabetical list but I'm not passing the hidden "mystery condition" - which I'm really getting sick of th
21.07.2020
461
views
1
comment
0
Mankin Lee
Level 9
Manchester
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Been stuck for three days....
My aim is to iterate through the values (Date objects) of the hashmap, convert them into Strings, then remove any that contain the three months. Please help.
20.07.2020
427
views
6
comments
0
A.V.
Level 2
Vegeta
Question about the task
Distance between two points
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Where about am I getting the mistake...
Where about am I getting the mistake...
04.05.2020
954
views
2
comments
0
Artur Jarosz
Level 30
Lublin
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
Can't pass last requirement.
Hi all, I can't pass last requirement here. The result is OK and looks like in the example. I was even drawing trees with all possibilities and following them with debugging to check if all works fine and it does. Can somebody help me out here? I would appreciate it!
26.01.2020
1396
views
2
comments
1
Angus McDonald
Level 5
Sydney
Question about the task
Build a WHERE query
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
I feel like I'm SO close..
Excuse the commented sections.. for testing purposes. My gut tells me the problem could be one or many of the below: 1. Map loops spit out results that don't match the name first structure in the instructions 2. I'm not testing for the null values correctly.. 3. I'm not deleting the last characters
07.07.2020
1075
views
5
comments
1
Denis
Level 22
Kharkiv
Question about the task
Implement the printMainInfo method
Java Core
,
Level 4
,
Lesson 8
Under discussion
What i must be changed?
help pls
26.06.2019
1261
views
4
comments
0
Angeget
Level 22
Potsdam
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Resolved
No idea why the last requirement is not satisfied. Need help please
No idea why the last requirement is not satisfied. Need help please
12.01.2019
1994
views
6
comments
2
WatWat
Level 9
Vancouver
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Tested in Repl but wont pass
What is wrong with my code... It works :\ EDIT: Resolved on my own. Apparently we're living in an alternate universe where indices aren't 0 based. import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedRea
08.10.2018
2331
views
5
comments
1
Marek Pasierbek
Level 9
Poznań
Question about the task
Catching unchecked exceptions
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
Why I can't understand it?
Theme try/catch/exceptions is not dificoult so why I can't understand what I should to do in this task? My code is OK but not acceptable. I should catch all exceptions without Null, Index and Number?
21.07.2020
713
views
4
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
So Lost
I'm just not getting this task assignment. It's not passing verification on the copy tasks. Your help is appreciated.
21.07.2020
321
views
1
comment
0
Ian De Bie
Level 28
Austin
Question about the task
Snake (Part 17/20)
Games
,
Level 0
,
Lesson 1
Resolved
Why isn't my SnakeGame onKeyPress() method passing?
The failing message is: The onKeyPress(Key) method must call the createGame() method if the passed argument is Key.SPACE and the game is stopped (isGameStopped == true). Recommendation from mentor is: Be sure that the onKeyPress(Key) method does not call the createGame() method if the key pressed w
21.07.2020
389
views
1
comment
0
Rebekah H
Level 8
Gothenburg
Question about the task
Calculator
Java Syntax
,
Level 6
,
Lesson 8
Resolved
is this int to double conversion not correct?
It runs fine but it does not accepted this solution. Is the division done before the conversion or why do I not pass? public static double divide(int a, int b) { //write your code here double div=a/b; return div;
21.07.2020
488
views
2
comments
0
Brad Reed
Level 19
Hartford
Question about the task
Bridges
Java Core
,
Level 4
,
Lesson 8
Resolved
not sure how it wants me to fix that...
the failure is because the println method doesn't have a public access modifier, which is clearly there. help??
20.07.2020
483
views
6
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
What's today's date?
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Output is alwasy January
I'm not sure what's wrong with my code. When I run it the output is always set to January regardless of what input date is entered. Your help is appreciated.
21.07.2020
474
views
3
comments
0
hidden #10625598
Level 23
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
can somebody tell me my mistake?
21.07.2020
406
views
3
comments
0
andy 6473
Level 9
Bangalore
Question about the task
Setting the number of cats
Java Syntax
,
Level 4
,
Lesson 2
Under discussion
Kindly let me know how code 1 is diferent from code 2
code 1) public class Cat { private static int catCount = 0; public static void setCatCount(int catCount) { //write your code here } public static void main(String[] args) { } } code 2) public class Cat { private static int catCount = 0; public void setCatCoun
19.03.2020
1279
views
2
comments
1
fifi deng
Level 22
Paris
Question about the task
Symbol frequency
Java Core
,
Level 8
,
Lesson 11
Under discussion
help, using casting type methods
output is right,but not verfying
19.07.2020
466
views
10
comments
0
Yuvavimal
Level 12
coimbatore
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
please check my code. it's print output is correct. but task not to meet ,what is a wrong
package com.codegym.task.task05.task0532; import java.io.*; import java.util.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); // Scanner
21.07.2020
441
views
1
comment
0
Dyrits
Level 1
Question about the task
Snake (Part 14/20)
Games
,
Level 0
,
Lesson 1
Resolved
I don't know what I'm doing wrong...
The move(Apple) method must call the checkCollision(GameObject) method with the new head as the argument before the new snake segment is added to the snakeParts list. Isn't it what I'm doing ? public void move(Apple apple) { GameObject newHead = createNewHead(); boolean outOfA
17.07.2020
620
views
2
comments
0
Jaxsen Chew
Level 29
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Can't seem to figure out where the copying goes wrong
Tried looking at the other questions on this task but to no avail. Someone recommended using a for loop with the try-catch inside but it seems redundant to me. Anyone has any ideas on what to change to get my code working?
06.05.2020
743
views
2
comments
0
Iasu
Level 18
Question about the task
Time conversion
Java Syntax
,
Level 3
,
Lesson 5
Resolved
Do i have to convert to double datatype to pass requirement 2?
I don't understand why I'm getting an error on req.2? I have tried "hour = hour/36000", I get the same error.
30.11.2018
1972
views
3
comments
0
Show more
1
...
163
164
165
166
167
...
371
Please enable JavaScript to continue using this application.