Promotion
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
Jason
Level 26
Rancho Cucamonga
Question about the task
Transactionality
Java Core
,
Level 7
,
Lesson 10
Resolved
I need some outside input. I can't figure out what is going wrong.
I have been messing with this for what feels like ages now please please tell me there is still hope
03.10.2019
1128
views
3
comments
2
Boris Penchev
Level 8
Sofia
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Why my code no was verify? Pls. help me. Thank you.
This is my code and it doesn`t work. public class Solution { private static List strings; public static void main(String[] args) throws Exception { int max = 0; strings = new ArrayList(); BufferedReader z = new BufferedReader(new InputStreamReader(System.in));
01.11.2019
1116
views
1
comment
0
Radames Sanchez
Level 5
Las Vegas
Under discussion
Can somebody explain me what is wrong with my code? It does not compile because it takes the && as the part of a boolean (?)
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) {
26.10.2019
780
views
3
comments
0
Radames Sanchez
Level 5
Las Vegas
Question about the task
Do we have a pair?
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Any suggestions?
I really can't figure out why the requirements are not met
01.11.2019
990
views
2
comments
0
Abhirami
Level 17
Bangalore
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Failed to pass the last requirement!
Is there anything wrong in my logic? please help.
01.11.2019
823
views
1
comment
0
Cristian
Level 16
Bucharest
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
I don't know how to code the last requirement. Thanks a lot!
package com.codegym.task.task07.task0709; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Scanner; /* Expressing ourselves more concisely */ public class Solution { public static void main(String[] args) throws Exception {
31.10.2019
962
views
4
comments
0
Jimmy Phan
Level 7
Atlanta
Question about the task
Somehow average
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
All conditions are met?
All conditions that are given to me are correct. Am I missing something? Thanks in advance!
28.10.2019
993
views
7
comments
0
Au Ivan
Level 17
Hong Kong
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Resolved
it should be working, but...
java.lang.NullPointerException at com.codegym.task.task09.task0930.Solution.main(Solution.java:18) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
27.09.2019
1178
views
2
comments
2
Cristian
Level 16
Bucharest
Question about the task
What sort of list is that?
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
A have a problem with the last requirement. Why? Thanks a lot.
package com.codegym.task.task07.task0707; import java.util.ArrayList; /* What sort of list is that? */ public class Solution { public static void main(String[] args) throws Exception { //write your code here ArrayList list = new ArrayList(); list.add("s1"); l
31.10.2019
1097
views
4
comments
0
Serg
Level 23
Tyumen
Question about the task
The whole duck isn't enough
Java Syntax
,
Level 5
,
Lesson 12
Resolved
implementation of the toString method for the Dog class
Strange mistake! Why not like the implementation of the toString method for the class Dog package com.codegym.task.task05.task0525; public class Solution { public static void main(String[] args) { Duck duck1 = new Duck(); Duck duck2 = new Duck(); System.out.println(d
14.05.2019
1532
views
2
comments
1
kalyan
Level 7
hyderabad
Question about the task
Snake (Part 6/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Please somebody help me out with this..
Two of the requirements are not getting satisfied. Can anyone please tell me where I made the mistake?
21.10.2019
1554
views
2
comments
0
Avi
Level 0
Question about the task
Minesweeper (Part 1/16)
Games
,
Level 0
,
Lesson 0
Under discussion
what is the problem with my code?
I don't know why it doesn't work
11.08.2019
1335
views
1
comment
0
Denis
Level 22
Kharkiv
Question about the task
AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Under discussion
I tired. Help me pls with this
Give me a solution pls
28.06.2019
1110
views
1
comment
0
Tadas
Level 4
Terneuzen
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Hi guys, answer looks like is correct but still something not good
*/
31.10.2019
941
views
2
comments
0
Tadas
Level 4
Terneuzen
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Can somebody look at my code?
How I supposed to call min a, b function??
31.10.2019
1007
views
2
comments
0
Anita Pal
Level 14
Question about the task
Greater than 10? You're not a good fit for us
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
what is wrong in my code
package com.codegym.task.task08.task0814; import java.util.HashSet; import java.util.Set; /* Greater than 10? You're not a good fit for us */ public class Solution { public static HashSet createSet() { HashSet set = new HashSet<>(); for(int i = 1;i<=20;i++){
30.10.2019
861
views
2
comments
0
Olek
Level 41
Amsterdam
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
conditions 3 and 4 fail
Hi all, Can you help to understand why it fails on conditions 3 and 4? On the test input it produces the correct output. Input: grandfather grandmother daughter program car Output: grandfather grandmother
30.10.2019
1079
views
1
comment
0
SAYAN SAMANTA
Level 10
Bangalore
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Resolved
wherere is the problem?
package com.codegym.task.task08.task0817; import java.util.HashMap; import java.util.Map; /* We don't need repeats */ public class Solution { public static HashMap<String, String> createMap() { HashMap<String,String> map = new HashMap<String,String>(); ma
29.08.2018
1753
views
2
comments
0
Prabhanjan Pandey
Level 2
pune
Question about the task
Minimum of two numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
min of two nos
i am returning the value but then also it is saying that min method must return the minimum of both numbers.
12.08.2018
3030
views
13
comments
1
Julien
Level 15
Paris
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Resolved
Is there a best way to approach this ?
Hello guys, i'm looking to refactor this method. It split an Array of integers int[] in two smaller ones (array1 and array2) and return those as an Object[]{array1,array2} I'm pretty sure i can give some fresh to this algorithm. Someone would like to review this code ? private static Object[] in
10.05.2019
1091
views
7
comments
1
Whitney
Level 14
Onalaska
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
Output seems to be correct, but I'm not sure where the error is?
Example output: The cat's name is Grandfather Tiger, no mother, no father The cat's name is Grandmother Puss, no mother, no father The cat's name is Father Oscar, no mother, Grandfather Tiger is the father The cat's name is Mother Missy, Grandmother Puss is the mother, no father The cat's name is
30.10.2019
1470
views
5
comments
0
Kent Hervey
Level 19
Question about the task
ConsoleReader class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Exception error
I am getting an error and don't know why: Error:(43, 50) java: unreported exception java.lang.Exception; must be caught or declared to be thrown public static String readString() throws Exception { //write your code here InputStream inputStream = System.in; Reader inputStreamRe
25.10.2019
1167
views
1
comment
0
Han
Level 24
Question about the task
Using JSON to convert from one class to another
Java Collections
,
Level 3
,
Lesson 5
Under discussion
I don't know how to use the className field
I'm stuck on how to serialize this. Somehow I need to let the mapper use the className field to serialize json into that object. Is there a method I'm missing? I could really use a clue :)
28.10.2019
848
views
1
comment
0
Henriett Tóth
Level 18
Budapest
Question about the task
Greater than 10? You're not a good fit for us
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Help pls!
Help pls! I don't understand where is the problem. :(
29.10.2019
897
views
2
comments
0
Marcin Olech
Level 41
Kraków
Question about the task
Chat (part 21)
Java Multithreading
,
Level 6
,
Lesson 15
Under discussion
Im confused, 3 requirements. (ClientGuiController)
I honestly don't know why it doesnt work. 'this' passed to ClientGuiView constructor is wrong? What about getModel method? And also getServerAddress, getServerPort and getUserName seems right to me.
28.10.2019
827
views
1
comment
0
Glenn Akens
Level 3
Rochester
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
I'm getting the correct output, however still getting an error message
package com.codegym.task.task01.task0130; /* Our first converter! */ public class Solution { public static void main(String[] args) { System.out.println(convertCelsiusToFahrenheit(41)); } public static double convertCelsiusToFahrenheit(int celsius) { //write your cod
28.10.2019
1545
views
3
comments
0
nagabenang
Level 6
Bekasi
Question about the task
Triangle of eights
Java Syntax
,
Level 4
,
Lesson 13
Resolved
Reverse Triangle
I made this just for fun. Hope it could help you to understand loop. Probably you can also help to compact it more. :p public class Solution { public static void main(String[] args) throws Exception { int a; int b; int c; for (b = 5; b > 0; b--){ for (a = 0; a < b; a++){ System.out.pr
28.06.2019
1256
views
1
comment
1
Sinan
Level 1
Dortmund
Under discussion
where can I see the Solution of the tasks
Hi, i'm new. I would like to know if it is possible to see the solution of the tasks somewhere? Couse I've did a task wrong and dont know the solution and I would like to see the right way. The tipps dont help me
26.10.2019
907
views
1
comment
0
Ian Frierson
Level 15
Overland Park
Question about the task
Cats should not be abstract!
Java Core
,
Level 2
,
Lesson 6
Resolved
I dont understand what im missing
i dont understand what im missing package com.codegym.task.task12.task1215; /*
29.10.2019
1074
views
2
comments
0
Niket
Level 8
Kolkata
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Resolved
I have 2 Solutions, which one is correct?
First one is: public void adjustAge(int Age) { age = Age + 20; System.out.println("The age in adjustAge() is " + age);//In this case this prints 40 as age here also. } Second one is: public void adjustAge(int age) { this.age = this.age + 20;
07.01.2019
2181
views
7
comments
0
Show more
1
...
258
259
260
261
262
...
367
Please enable JavaScript to continue using this application.