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
tygamerforce
Level 2
Pasco
Under discussion
I have tried multiple spots
Pay raise 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 salary is " +(b+1000)+ " dollars per
19.11.2019
704
views
1
comment
0
Hendra
Level 8
Medan
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
please help me...I can't find the answer ,stuck with the third requirement...
package com.codegym.task.task03.task0303; /* Currency exchange
16.11.2019
943
views
3
comments
0
Luyi
Level 31
Kosice
Question about the task
Your own enum
Java Multithreading
,
Level 5
,
Lesson 2
Resolved
any hints?
I got problem to match two conditions. Any ideas ? I would appreciate some support :)
18.11.2019
1170
views
2
comments
0
towelie8
Level 16
Darmstadt
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
I need some help -.-
can somebody give me a hint pls
19.11.2019
747
views
1
comment
0
PaFi
Level 16
Question about the task
10 thousand deletions and insertions
Java Syntax
,
Level 8
,
Lesson 6
Resolved
Why are get and set solutions rejected?
The requirements for get and set are not approved, while insert and remove are accepted. Can't see why, they are based on the same loop... public static void get10000(List list) { //write your code here Random rand = new Random(); for (int i=0; i<10000; i++) {
19.11.2019
1623
views
3
comments
0
rey
Level 6
Makati
Question about the task
More conversions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
HELP GUYS!!
help mee!
25.04.2019
1495
views
6
comments
0
rey
Level 6
Makati
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Resolved
WHATS WRONG?!!
WHATS WRONG
23.04.2019
2179
views
6
comments
0
Kent Hervey
Level 19
Question about the task
The basis of a wheel
Java Syntax
,
Level 5
,
Lesson 9
Resolved
This was challenging to me because I need more experience with inner classes
I finally got it to work by troubleshooting method. I commented out the main method code related to the inner class, and built up something that worked in the outer Circle class. That required me to fix some things...then I uncommented then commented out my troubleshooting code and it worked. I m
22.10.2019
1058
views
1
comment
0
Kent Hervey
Level 19
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Verification works, but code style fails
I have two for loops like the below..the second not shown is the adder: I pass verification, but code style complains: "control variable i is modified" Any suggestions? I looked at other questions in help and it seems others are doing something similar. Maybe try a while loop? int orig
16.11.2019
1189
views
4
comments
0
Dave Andrea
Level 41
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Getting desired output, but not passing tests...??
I'm getting the exact output I was looking for, but my solution is not being accepted. Any thoughts?
18.11.2019
727
views
2
comments
0
Fang44
Level 13
Under discussion
Plugin is not working
Hello, I just installed the plugin but i have problems... First when i click on the list of tasks i see only tasks from the part 0 to 1 : You can see level 2 there is nothing and its the same for the next level only 0 and 1 are on the list. And my second problem is when i clic on one of those
18.11.2019
862
views
7
comments
0
Rafal
Level 3
Wroclaw
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
difference between two codes
Hi, I have a question about the codes below, they both work, and give the wanted result but only the first one matches all the requirements, my question why? what is the difference between the first and second code? why better use the first form? Or better the second one? Please help! 1) pub
14.11.2019
1220
views
4
comments
0
Jay
Level 17
Washington
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Help me understand
I'm confused about the purpose of the array list being used in the class. Previously, we have initialized objects without using an array list as a field. So I'm wondering what's the benefit of doing it this way. Furthermore, I've seen that some people have created 3 array lists to account for each c
27.07.2019
917
views
2
comments
0
Denis
Level 22
Kharkiv
Question about the task
Like cats and dogs
Java Core
,
Level 1
,
Lesson 8
Under discussion
How i can do this exercise?
Help pls
22.06.2019
1154
views
3
comments
0
Davedabull
Level 22
New York City
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
But I am already showing the longest string?
Can someone help me find out what I did wrong here?
18.11.2019
1188
views
9
comments
0
Alexander Shtunder
Level 41
San Francisco
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Resolved
Hm, do not pass by, but help...
My code works flawlessly. I checked it on my computer 100500+ times. But the test does not want to pass ... strange. Who will say why?
26.08.2019
982
views
5
comments
0
Anthony Chalk
Level 30
London
Question about the task
Exception when working with Map collections
Java Syntax
,
Level 9
,
Lesson 6
Resolved
Please help
The program works with the output: "NullPointerException null", but the third requirement is still not validating. Is there a specific type of NullPointerException for Maps?
18.11.2019
1188
views
7
comments
0
Deborah Wenrich
Level 7
Pembroke Pines
Question about the task
Financial expectations
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Can someone check my code?
I'm not sure what the problem is. The compiler doesn't seem to like the BufferedReader code.
12.11.2019
1080
views
2
comments
0
Carlos Cortázar
Level 17
Madrid
Under discussion
please, why this code doesn't compile?
package com.company; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException { MyClass myObject = new MyClass(); OutputStream outStream
18.11.2019
753
views
2
comments
0
Lukasz
Level 14
Wrocław
Question about the task
Ten cats
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Where is problem?
I pass the data from Map to Set
25.01.2019
1472
views
2
comments
1
towelie8
Level 16
Darmstadt
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
Last condition?!
meow.
18.11.2019
759
views
1
comment
0
chinchillo
Level 6
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Guess it's right but still not sure.
Any idea whats the problem here?
17.11.2019
683
views
2
comments
0
nikhil singla
Level 9
Chandigarh
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
I am not able to figure out what to print here in printCatS()..? Please help me..
public static void printCats() { System.out.println(cats); } // What's wrong with this? Please watch my solution..
21.07.2019
1182
views
2
comments
2
Davedabull
Level 22
New York City
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
So I guess we cannot use the str.repeat(times) method
public class practice3_string_multiplication { public static String multiply(String s) { String result = ""; //write your code here result = s.repeat(5); return result; } public static String multiply(String s, int count) { String result = "";
17.11.2019
1222
views
4
comments
0
Nico
Level 17
Tyrol
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I think, the output is correct, but i failed the last task, and i dont know why. Thanks for your help in advance! :)
Failed: "The displayClosestToTen method should display a number on the screen in accordance with the task conditions."
17.11.2019
661
views
2
comments
0
Neha Anjum
Level 6
Hyderabad
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
.....?????
import java.util.Scanner; import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.ne
17.09.2018
1528
views
4
comments
0
Tian Pro
Level 23
Cape Town
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Why doesnt it work if the output shows it works?
Im so confused :'D
07.11.2019
776
views
2
comments
0
Maria
Level 7
Berlin
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Help please??
What is wrong in my solution?? Thank you :D
17.11.2019
961
views
2
comments
0
Manish Sinha
Level 26
london
Question about the task
HashMap of 10 pairs
Java Syntax
,
Level 8
,
Lesson 3
Resolved
my code throws error dont know what is the issue. Intellij shows the correct output.
package com.codegym.task.task08.task0802; /* HashMap of 10 pairs */ import java.util.HashMap; import java.util.Map; public class Solution { public static void main(String[] args) throws Exception { HashMap hasmap = new HashMap<>(); hasmap.put("watermelon","melon");
17.11.2019
969
views
1
comment
0
Ankita Patra
Level 5
Bhubaneshwar
Question about the task
Initializing cats
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
Everything looks fine.Still don't know what's wrong here!!
05.07.2019
1105
views
3
comments
0
Show more
1
...
251
252
253
254
255
...
369
Please enable JavaScript to continue using this application.