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
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
05.11.2019
673
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."); } }
13.09.2018
1151
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
04.11.2019
1178
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));
01.11.2019
1498
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?
04.11.2019
949
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
15.08.2019
891
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
30.10.2019
844
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..
04.11.2019
941
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);
03.11.2019
1155
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
04.11.2019
747
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
25.01.2019
1527
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
03.11.2019
695
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.
01.11.2019
778
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
02.11.2019
823
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
03.11.2019
648
views
1
comment
0
Han
Level 24
Question about the task
Creating a proxy object
Java Collections
,
Level 2
,
Lesson 8
Resolved
method newProxyInstance in class java.lang.reflect.Proxy cannot be applied to given types
This line: return (SomeInterfaceWithMethods)Proxy.newProxyInstance(new CustomInvocationHandler(original)); gives the following error: Error in com/codegym/task/task32/task3205/Solution.java on line 28 method newProxyInstance in class java.lang.reflect.Proxy cannot be applied to given types; re
24.10.2019
1250
views
2
comments
0
Leontin Vasii
Level 6
Iasi
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
A little help pls
Hy everyone...Can someone help me with this code ? What is wrong ?
04.11.2019
790
views
2
comments
0
Cristian
Level 16
Bucharest
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
I have a problem with the last two requirements. Help me, please! Thank you!
package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Scanner; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Except
03.11.2019
737
views
3
comments
0
Satya Vath
Level 31
Vijayawada
Question about the task
Refactoring (part 9)
Java Multithreading
,
Level 5
,
Lesson 16
Resolved
Cant get It
Help
17.06.2019
1082
views
6
comments
0
Piotr Wikarski
Level 19
Birmingham
Question about the task
Building a file
Java Core
,
Level 8
,
Lesson 11
Resolved
Can't pass validation.
My code works fine, buy is not passing validations.. Can anyone help me to see where the problem is?
03.11.2019
713
views
1
comment
0
theCalculator
Level 3
Warren
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
I can't get this!
what am I missing.
02.11.2019
779
views
1
comment
0
Denis
Level 22
Kharkiv
Question about the task
Cats should not be abstract!
Java Core
,
Level 2
,
Lesson 6
Under discussion
HEEEEEEEELP
Give me the solution pls for my full understanding)
22.06.2019
1265
views
2
comments
0
jorge ives murillo paredes
Level 40
New York City
Question about the task
Reading and writing to a file: CodeGym
Java Core
,
Level 10
,
Lesson 2
Under discussion
Can somebody help me whit the exeptions
package com.codegym.task.task20.task2002; import java.io.*; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; /* Reading and writing to a file: CodeGym */ public class Solution { public static void main(String[]
02.11.2019
1210
views
1
comment
0
Facundo Villarroel
Level 20
Berlin
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Two methods validation not passing...
I'm starting to get a little tired of the stupid validations not passing. From where this thing is taking that the Solution class doesn't have two methods?
19.10.2019
885
views
2
comments
0
Facundo Villarroel
Level 20
Berlin
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Like for everyone, failing on third requirement
Testing my code, it works. Unless I'm not undestanding the task as they meant it, then it should pass. 1. Catch the exception if file doesn't exist 2. Read the source file again 3. Read destination file Its dumb to catch the exception the first time you read it and not the second one, but that is wh
23.10.2019
1084
views
3
comments
0
Anthony Chalk
Level 30
London
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Please help
So unsure what I'm supposed to do
03.11.2019
1417
views
1
comment
0
Cristian
Level 16
Bucharest
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
What is wrong with my code? The last two requirements are not satisfied. Thanks a lot.
package com.codegym.task.task07.task0708; //import java.io.BufferedReader; //import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.Scanner; /* Longest string */ public class Solution { private static List strings = new ArrayList();; privat
01.11.2019
1012
views
5
comments
0
resperaptor
Level 2
Yekaterinburg
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Whats wrong?
Man Man = new Man(); Woman Woman = new Woman();
17.04.2019
2135
views
5
comments
3
Cheikh
Level 7
Dakar
Question about the task
Cat and statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Don't get where the problem is !
Despite all my attempts, it looks like there's something I don't see. Can someone guide me please?
02.11.2019
1124
views
2
comments
0
Clarendon lee
Level 8
Baltimore
Question about the task
The whole duck isn't enough
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Task requirements are not met
What's wrong? Verify say "Task requirements are not met" Thanks a lot!
31.10.2019
1151
views
2
comments
0
Show more
1
...
257
258
259
260
261
...
367
Please enable JavaScript to continue using this application.