CodeGym University
Learning
Course
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
Felipe Fallas
Level 3
San Jose
Under discussion
whats wrong with my variables
public class Solution { public static void main(String[] args) { int a = 5; int b=7; int sum = a+b; int product=a*b; System.out.println(sum); System.out.println(product); } } so yeah i don't get what do they mean with declare the var
02.12.2019
720
views
2
comments
0
Willard Roseberry
Level 11
Brigham City
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
can not figure it out. Any help with n?
02.12.2019
1310
views
0
comments
0
Robert Constantinescu
Level 25
Bucharest
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Resolved
Is anyone having a sample input?
I think the below code works, but to be fair, i have tested it with the below arguments -c Christian "m" 04 15 1990 is anyoane knowing how the input for this task is? Thanks
01.12.2019
1437
views
2
comments
0
oli blaustrom
Level 18
Luzern
Question about the task
The end
Java Syntax
,
Level 7
,
Lesson 12
Resolved
As far as I can tell output is correct but fails // Display the list, each value on a new line.
Can't figure it out. Someone earlier had an empty string in the list, I checked for that. This program doesn't. Any insight?
30.11.2019
1404
views
2
comments
0
Vaibhavi
Level 5
Vijayawada
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
please help
Please tell where I am going wrong
02.12.2019
827
views
1
comment
0
david
Level 8
Edgewater
Under discussion
Help!
Well, the site keeps showing the message to me that my code do not pass the last two verifications, even when my code works perfectly fine. Does anyone have any idea why my code doesn't work? package com.codegym.task.task07.task0708; import java.io.BufferedReader; import java.io.InputStreamReade
02.12.2019
819
views
2
comments
0
Vaibhavi
Level 5
Vijayawada
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
lesson unbale to understand
please explain
29.11.2019
872
views
2
comments
0
Vaibhavi
Level 5
Vijayawada
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
unable to understand
Please help
29.11.2019
1001
views
2
comments
0
jamylam
Level 26
Nairobi
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
kindly assist stubborn error
I dont understand the error am getting that each element should be displayed on a new line. That is the result am getting when its displayed so I cant see the mistake i have done..
01.12.2019
955
views
2
comments
0
AP
Level 15
Bodmin
Under discussion
Not able to run the code in intellij
I have installed intellij and also the codegym plugin however, when I write the solution, I am not able to run it in intellij. I can only verify it. I want to run the code in intellij similar to what we have in condegym site. Can someone help?
01.12.2019
962
views
1
comment
0
yehuda b
Level 23
Beersheba
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
Was trying an out of the box solution, and I got: Exception in thread "main" java.lang.StackOverflowError, could someone explain why?
package com.codegym.task.task04.task0427; /* Describing numbers */ import java.io.*; import java.util.Scanner; public class Solution { static Scanner scan = new Scanner(System.in); static int number = scan.nextInt(); Solution solu = new Solution(); int newNumber() { numb
28.11.2019
898
views
4
comments
0
Nathan
Level 14
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
Help On - Expressing ourselves more concisely
I don't understand why my variable "len" doesn't take on the shortest string? I don't believe I'm using the length() method incorrectly. Please help. package com.codegym.task.task07.task0709; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* Express
01.12.2019
722
views
1
comment
0
Andres
Level 4
Reedley
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
where did i go wrong
can anyone tell me where i went wrong
01.12.2019
765
views
1
comment
0
Andres
Level 4
Reedley
Question about the task
Display right away
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
can some one tell me where I went wrong
package com.codegym.task.task03.task0302; /* Display right away
30.11.2019
759
views
2
comments
0
Alvin B
Level 8
Newark
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Conditions for not displaying color not met. WHY?
Please offer any suggestion why the compiler won't accept this program. Thanks
28.11.2019
1203
views
3
comments
0
Willard Roseberry
Level 11
Brigham City
Question about the task
Maximum in an array
Java Syntax
,
Level 7
,
Lesson 4
Resolved
int cannot be converted to int [] this is the error I am getting with my return max value on line 42. Any idea on how to fix this? Thanks
package com.codegym.task.task07.task0701; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; /* Maximum in an array */ public class Solution { public static void main(String[] args) throws Exception { int[] array =
30.11.2019
2690
views
2
comments
1
Błażej Kuśmirek
Level 13
Wroclaw
Under discussion
Is it working as it should?
I'm only able to proceed with solving tasks which are already translated to my native language (polish). I'm not able to see requirements of tasks in English. I can spent dark matter to unlock further lessons, but without any practice tasks. Is this app designed to work that way?
29.11.2019
833
views
1
comment
2
James
Level 5
Cincinnati
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
I'm getting an error due to a typo.
This code works as intended. I've run it multiple times and get the correct text printing to the screen. I've printed out each variable separately to confirm that they contain the correct values and they do. Although my code compiles with no issues, I'm getting an error due to a typo that ISN'T ther
30.11.2019
858
views
1
comment
0
catalinene
Level 29
Greven
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Ouput looks good, task is not validated
If I understood correctly, as soon as a person shares the same first name with a 2nd person, then we remove them from the map. And my code does that, however it fails validation: " The removeFirstNameDuplicates() method must remove from the map all people who have the same first name. " Thanks in a
29.11.2019
1281
views
5
comments
0
Aastha Khanna
Level 5
Question about the task
1 to 10
Java Syntax
,
Level 4
,
Lesson 10
Under discussion
Why does this loop print 1 indefinitely?
int i=1; while(i<=10) { System.out.println(i); i=i++; }
31.05.2019
1226
views
7
comments
0
Paul
Level 24
Vienna
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
I don't understand why it won't pass testing
the result is: grandfather grandfather grandmother grandmother ... ... ... That is how it should be, right?
19.11.2019
1108
views
2
comments
0
MecoS
Level 16
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Please Help... i think i don't Understand the question discussed. Why it can't function?
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 { ArrayList da
28.11.2019
996
views
2
comments
0
Niladri pradhan
Level 33
Mumbai
Question about the task
Chat (part 16)
Java Multithreading
,
Level 6
,
Lesson 15
Under discussion
whats wrong
Exception condition
28.11.2019
835
views
1
comment
0
Kris
Level 9
Englewood
Resolved
Correct output, but not satisfying conditions
public class Solution { public static void main(String[] args) throws IOException { BufferedReader buff = new BufferedReader(new InputStreamReader(System.in)); //write your code here int max = Integer.MAX_VALUE; ArrayList<String> list = new ArrayList<&g
29.11.2019
808
views
7
comments
0
krystian
Level 9
Kozle
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Help!!!
29.11.2019
743
views
1
comment
0
Azamat Aminov
Level 41
Tashkent
Question about the task
Sorting bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
Condition 3 is not satisfied.
.
29.11.2019
946
views
2
comments
0
TYLOR WAITS-MONDRAGON
Level 13
Chicago
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Any help on why this won't pass codegym tests?
My solution is displaying the longest string or strings, but codegym validator is not happy with the third and fourth criteria. Anyone have any suggestions on what I can alter to make it happy?
29.11.2019
732
views
1
comment
0
Vaibhavi
Level 5
Vijayawada
Question about the task
Sam I Am
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
What is wrong with this question
tried with all possible combinations still the answer shows it as wrong
29.11.2019
1184
views
1
comment
0
Kent Hervey
Level 19
Question about the task
Family census
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
can a class have an reference variable of declared type of that class
Can a class have an reference variable of declared type of that class?? This assignment seems to say "yes", but that is really surprising. private Human father; and private Human mother; I thought well maybe codegym.cc wants us to make father and mother static, but then that would not work with
23.11.2019
1168
views
3
comments
0
ilian44
Level 30
Veliko Turnovo
Question about the task
Rarest bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
output all keys who's value's are equal to min and still the task failed??
28.11.2019
1047
views
2
comments
0
Show more
1
...
244
245
246
247
248
...
366
Please enable JavaScript to continue using this application.