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
m
Level 13
Lublin
Resolved
why i can't pass requirements?
package pl.codegym.task.task04.task0424; /* Three numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //tutaj wpisz swój kod BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a =
11/10/19
1148
views
2
comments
0
Joel
Level 7
Alsenberg
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Last requirements is not met, but it is
I tested my code with various combinations and it always does it correct, but it says that the numbers are not descending.Why?
11/10/19
1023
views
3
comments
0
Jay
Level 17
Washington
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Where am I going wrong here?
Any help would be appreciated.
7/25/19
1295
views
1
comment
1
Tadas
Level 4
Terneuzen
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Line looks everything OK, but it fails with conditions
Ok Guys Im getting correct line, but failing with condition The displayed text must contain the entered name. The displayed text must fully match the task conditions.
11/9/19
1326
views
2
comments
0
m
Level 13
Lublin
Resolved
I can't pass last requirement, why?
package pl.codegym.task.task04.task0409; /* Closest to 10 */ public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { int c = 10 - a;
11/9/19
892
views
2
comments
0
Tadas
Level 4
Terneuzen
Question about the task
Fill a pool with water
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
what does it means?
Comments on code style were not found! ??
11/9/19
1449
views
1
comment
0
Wali
Level 3
Dhaka
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
my codes out put is fully correct. bt it don’t fulfil last condition. whats the problem
package com.codegym.task.task02.task0216;
11/9/19
1109
views
1
comment
0
Зоран Јањић
Level 8
Teslic
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Any help on this one ?
package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Exception { //write you
11/6/19
1799
views
3
comments
0
Piotr Wikarski
Level 19
Birmingham
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Resolved
Can't pass verification of the second condition
I can't see why it won't verify the second condition. When I run it on my pc without arguments at all or just "-u" or "-d" the program doesn't change the content of the file..
11/9/19
1022
views
0
comments
0
Roman
Level 41
Wieseck
Question about the task
Adding a file to an archive
Java Collections
,
Level 1
,
Lesson 6
Resolved
Fails by Requirements 3 and 4 on CodeGym Server ...
Hi, in this code I've tried to consider all the hints from the previous posts regarding this task. The code works fine on the local machine, but on the CodeGym Server it fails by Requirements 3 and 4. Does anyone have an idea, what is wrong there?
11/3/19
1341
views
2
comments
0
Voris
Level 10
Tashkent
Question about the task
A name is a name
Java Syntax
,
Level 4
,
Lesson 16
Resolved
I can't find my typo, i tried to change order mm/dd/yy to yy/mm/dd, anyway it doesn't work, i think there's error in conditions.
package com.codegym.task.task04.task0443; /* A name is a name */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String name = br.readLine();
4/11/19
1546
views
4
comments
0
Denis
Level 22
Kharkiv
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Under discussion
One condition pls
Need help
6/29/19
1385
views
1
comment
0
Nicolas Huet
Level 41
Provins
Question about the task
Distributing items into baskets with their own lock
Java Multithreading
,
Level 6
,
Lesson 8
Under discussion
lost again
Well, same as the previous task. I really can't find it. (which is worrying me quite a bit for my future in the programing field I must say...). I saw the post of Andrew, I saw he says to look for the concurrentHashMap code to see clues and I saw another guy resolved it with just that. (which worryi
9/7/19
1363
views
7
comments
0
Kimo Kalilikane
Level 15
Jacksonville
Question about the task
Future manager
Java Core
,
Level 3
,
Lesson 2
Archived
This little information will help you with this task
So an important aspect I forgot to remember is that interfaces are not considered classes, therefore it is possible to inherit multiple interfaces with the extends keyword! For example, interface CanFly{ void fly(); } interface CanSwim{ void swim(); } interface All extends CanFly, CanSwim{ }
10/21/19
1118
views
2
comments
1
Jimmy Phan
Level 7
Atlanta
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Just two questions
Thankfully able to pass this task, but I would still like some clarifications. 1. @Override - which class is the toString method overriding belonging to? and 2. - how can the toString method called upon itself when there are no other lines within the program to call to this method? 3. Also, when p
11/7/19
1365
views
7
comments
0
krystian
Level 9
Kozle
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Need help
Could someone please tell me why below code doesn't work? public class Solution {
11/8/19
1371
views
2
comments
0
ddi
Level 18
Dortmund
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Under discussion
Help needed! :)
I am receiving a failure that he won´t recognize the hen = new AfricanHen(); hen = new NorthAmericanHen(); hen = new EuropeanHen(); hen = new AsianHen(); any new objects, classes are created. the object should be created... What am i missing?
8/27/19
1428
views
1
comment
0
Chotan Barua
Level 7
New York City
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Not sure what the error means.. Please help ?
11/5/19
1141
views
3
comments
0
theCalculator
Level 3
Warren
Under discussion
Please explain the thinking behind the hint in this problem.
If you look at my attempt it looks logical to me yet it is not logically correct. How do you see modulo and division symbols as a method to this problem.
11/7/19
936
views
1
comment
0
Bhakti
Level 10
Sydney
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Please help.Getting correct output but validation fails.
Getting correct output but validation fails.
11/6/19
1174
views
2
comments
0
Jimmy Phan
Level 7
Atlanta
Question about the task
Notepad for new ideas
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
SoS
Any reasons to why my reference idea cannot call to the getDescription method? The printIDEA is in the Solutions class and not the IDEA class. By the way, if you can, can you briefly summarize what the methods are doing? Is the printIDEA method calling to the getDescription method to return the St
11/6/19
1488
views
4
comments
0
Anthony Chalk
Level 30
London
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Really not sure what to do
In line 37, I'm trying to find the index of the element. I'm not sure this would be an effective way to solve the task anyway. Any help appreciated.
11/7/19
1089
views
1
comment
0
Jay
Level 11
Question about the task
Set of cats
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Error in compiling on line 3?
I'm getting the following error when I attempt to compile: Error in com/codegym/task/task08/task0819/Solution.java on line 3 cannot find symbol symbol: class Cat location: package com.codegym.task.task04.task0403 What's going on? Is it not detecting that I created the Cat class?
11/7/19
1344
views
2
comments
0
Jay
Level 11
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
I don't understand what's wrong this time
So I've made it so I'm not removing from the loop I'm iterating through in addition to adding a nested loop that removes if the string is the same. How would I go about fixing this? I believe I'm on my 10th or so attempt.
11/7/19
1259
views
1
comment
0
Boris Penchev
Level 8
Sofia
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Hi I have problem with this task. Can you help me?
First, two task pass but can`t print right longest and shortest string. Thank you.
11/5/19
1725
views
8
comments
0
ddi
Level 18
Dortmund
Question about the task
Whether it's a bird or a lamp
Java Core
,
Level 2
,
Lesson 2
Resolved
Not getting what should i do!
I am no understading what should i do, can someone help?
7/30/19
1447
views
6
comments
0
Evghenii Seremet
Level 41
London
Question about the task
Rectangle algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
Could someone point where the problem is?
The output completely matches conditions. The only thing i can think about is, every time i find a rectangle i set it's 1s to 0s. But it doesn't say in conditions you can't change arrays. Thanks.
11/7/19
1503
views
3
comments
0
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
1129
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
1239
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
1451
views
2
comments
0
Show more
1
...
263
264
265
266
267
...
374
Please enable JavaScript to continue using this application.