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
All quests
All levels
Any status
Questions about tasks
Hot
kenny
Level 11
Vancouver
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Why can't I declare the lists the way I declared it?
Thanks!
21.03.2019
1175
views
2
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
whats wrong here
i dont understand why the output is giving me: love lyre love
24.03.2019
1226
views
2
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
program runs fine but wont verify
i cant see where is the problem
23.03.2019
1346
views
2
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
Words in reverse
Java Syntax
,
Level 7
,
Lesson 9
Resolved
should verify i think
am i doing something wrong or is the verification system glitched?
24.03.2019
1659
views
2
comments
0
Tanish
Level 5
Mumbai
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
Please can someone rectify whats wrong?
import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner sc = new Scanner(System.in); int[] a = new int[3]; a[0] = sc.nextInt(); a[1] = sc.nextInt();
23.03.2019
1420
views
1
comment
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
whats wrong with my code?
i cant figure it out
24.03.2019
1597
views
2
comments
0
szu2
Level 2
Warsaw
Question about the task
As simple as 2+2
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
Explanation needed
I do not understand how I can use sum function to add 2+2. Could anyone explain that step by step? For instance package com.codegym.task.task01.task0128; /* As simple as 2+2 public class Solution { public static void main(String[] args) { int a = 2; int b = 2; int c
22.03.2019
1715
views
6
comments
0
Hashirama
Level 26
Port-Harcourt
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Help Please
How do I handle this one?
29.01.2019
2213
views
7
comments
1
szu2
Level 2
Warsaw
Question about the task
Only 20 will do
Java Syntax
,
Level 1
,
Lesson 4
Resolved
fails to verify
When I run this code without verification I get 20 but the system gives me 2 errors 1) Each of the variables (a, b, c, and d) in the line where the variable result is declared must be preceded by either a plus or minus sign. (BUT each of the variables is preceeded by a sign! 2) The plus and minus s
22.03.2019
1512
views
2
comments
1
Ryan
Level 14
Ashburn
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Archived
Console won't stop reading
The problem for me is that when I enter the file name and hit enter the console just continues to read until I stop the program. I cannot find anything in my code that would make this happen as I only user the reader object once. I'm stumped.
24.03.2019
2408
views
1
comment
0
Don Boody
Level 8
Victor
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
the indexes you should return are "1, 2, or 3," not "0, 1, or 2" as you might expect
Spent a lot of time struggling to figure out how my code could be wrong before realizing that the solution did not want a zero-based index. Now that I realize it, the example does make it clear (in 466 example, the solution is "1"), but I did not read carefully enough and wasted at least a half hour
15.02.2019
1527
views
3
comments
0
Angeget
Level 22
Potsdam
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
The code is working, i just need an improvement please
if (number1 >= number2 && number1 >= number3) { //num1 if (number2 >= number3) System.out.println(number1 + " " + number2 + " " + number3); else System.out.println(number1 + " " + number3 + " " + number2);
25.12.2018
2470
views
14
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
Ascending numbers
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
dont see the problem here
when i try to run the program with example input 3,2,15,6,17 the output is [0, 0, 2, 6, 17], why is that? doesnt matter which numbers i enter there is always 2 numbers that get converted to 0
23.03.2019
1307
views
2
comments
0
Alexey
Level 7
Chernihiv
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
1st Requirement not working
Maybe im not undestend task. Help me please.
23.03.2019
1286
views
2
comments
0
AJITA SINGH
Level 2
Vishakhapatnam
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Resolved
what is wrong with my code.I cannot meet one of the conditons that is 3. The convertCelsiusToFahrenheit method should not display anything.
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) { double
14.03.2019
1989
views
3
comments
0
ARIJIT SAHA
Level 3
Kolkata
Question about the task
Display the square of a number
Java Syntax
,
Level 1
,
Lesson 3
Resolved
Here is my code shown below. Don't know where is the problem? I can't pass the fourth condition. Kindly help me.
package com.codegym.task.task01.task0140; /* Display the square of a number */ public class Solution { public static int number = 25; public static void main(String[] args) { //write your code here int number = 4; System.out.println(number*number); } }
15.08.2018
1723
views
5
comments
0
Joy Majumdar
Level 16
Kolkata
Question about the task
Minimum of N numbers
Java Syntax
,
Level 8
,
Lesson 11
Resolved
You run the program and it is just taking & taking keepon taking input
Glad to hear my fault
22.03.2019
1402
views
4
comments
0
Ashutosh Sharma
Level 8
Delhi
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Why no output showing in this code?? I have used for each loop for traversing the list instead of for loop.
public class Solution { public static void main(String[] args) throws Exception { ArrayList list = new ArrayList(); list.add("rose"); // 0 list.add("love"); // 1 list.add("lyre"); // 2 list = fix(list); for (String s : list) { System
22.03.2019
1312
views
2
comments
0
Emanuele Gurini
Level 18
Porto Recanati
Question about the task
A name is a name
Java Syntax
,
Level 4
,
Lesson 16
Resolved
Who would like to help me to find the typo error?
Hey guys, i think that more eyes works better than two, then, someone would like help me to find typo error in my code? I am a very quiet person but now i feel that i could punch my plush teddy bear. Help my teddy bear, please.
22.03.2019
1792
views
4
comments
0
Bill Wu
Level 29
Wellington
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Resolved
Can't be verified
Similar to the other task, am I misunderstanding the requirements? The example shows that each parameter ends with only one " " if its length is shorter than 8, 30, 8, 4 characters.
03.03.2019
1525
views
3
comments
0
szu2
Level 2
Warsaw
Under discussion
Code meaning - Introducing the program
Could someone please explain to me the code below? I'm sorry, I know it is a very basic level but I'm not sure I get it. PACKAGE NAME package com.futujava.lesson2; import java.io.IOExeption; /** * User: General * Date: 12/21/12 * Time: 11:59 */ CLASS NAME public class Task1 {
22.03.2019
1470
views
2
comments
0
Darko Jakimovski
Level 18
Kriva Palanka
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
I can't get the order of the output right. I really don't get it
The output that I get is as follows: love lyre love And it won't confirm my task because of that
21.01.2019
2075
views
4
comments
0
Bill Wu
Level 29
Wellington
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
Cannot pass the verification
I tried two methods to limit the time to 10 seconds, but after a lot of googling I can't find anyway to limit the memory use. I tested in the main, either way works for the time control, but the verification still times out. Any suggestions please? Thanks in advance.
14.03.2019
1941
views
5
comments
0
Bill Wu
Level 29
Wellington
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Resolved
help please, can't verify
I tested it and the result seems fine, and I even deleted the last " " (space), but still can't be verified...
03.03.2019
1520
views
3
comments
0
Alex Balandinos
Level 18
Lusaka
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Removal of firstname failing need help
13.03.2019
1421
views
2
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Under discussion
Can you tell me where i do a mistake?
public class Solution { public static Map resultMap = new HashMap(); public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String filename =""; while(reader.ready()){ if(
20.03.2019
2056
views
8
comments
0
Lex Medeiros
Level 18
San Jose
Question about the task
18+
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Could you point out what is wrong with my code?
Could someone tell me what I am doing wrong? Below is the code and here is the error I get: /* Use the keyboard to enter the name and age. If the age is less than 18, display "Grow up a little more". */ package com.codegym.task.task04.task0422; /* 18+ */ import java.io.*; public class Solu
21.03.2019
1469
views
5
comments
0
vikr@nt
Level 9
Cincinatti
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Resolved
What is wrong with my code?
I'm basically getting two errors and I've seen the inputs from previous help questions. I'm doing pretty much same. Anybody can you please guide me 1. Remove the last string and insert it at the beginning. Rinse and repeat 13 times. I'm doing it here : for (int i = 0; i<13; i++){ St
09.02.2019
1921
views
6
comments
1
Anirban Mitra
Level 2
Kolkata
Question about the task
Don't feel like it? Do it anyway.
Java Syntax
,
Level 1
,
Lesson 8
Resolved
what's wrong here
string s ="If you feel like it,do the task.If you don't feel like it.do it anyway"; System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.ou
21.03.2019
1664
views
5
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Synchronized notes: part 2
Java Core
,
Level 7
,
Lesson 4
Under discussion
I have general question not about this task.
If we want synchronized something in some method can we always use word synchronized after access modifiers in method instead of synchronized block? I am not sure but i suppose it is much more convenient.
01.03.2019
1310
views
1
comment
0
Show more
1
...
336
337
338
339
340
...
372
Please enable JavaScript to continue using this application.