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
Chris
Level 19
Newark
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Resolved
Breaking it down
I got the right answer but I would like it if someone could please break it down for me how the 50 and the 100 are added in the addPrice method. Any help would be greatly appreciated. Thanks.
28.07.2020
739
views
4
comments
0
Pablo Saquilmer
Level 32
Guatemala City
Question about the task
Reversing a file
Java Core
,
Level 8
,
Lesson 5
Resolved
IM GETTING WHAT THE TASK REQUESTED BUT STILL NOT PASSING ANY HELP?
The file 1 passed the info to file 2 in reverse order but still not passing the task.
05.09.2020
343
views
2
comments
0
Maxim Raitin
Level 20
Tomsk
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Resolved
the program works but last condition doesn't accept
Why?
05.09.2020
338
views
3
comments
0
Gytis Laukaitis
Level 18
Marijampole
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
Can someone explain me why this is not working ? :(
Is this just bugged or ...??
17.08.2020
794
views
4
comments
3
punkuotukas
Level 7
Vilnius
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Resolved
Correct output when code runs, but verification still fails with an incorrect amount of rows
Please help solving this - such a frustration.
05.09.2020
543
views
2
comments
0
Sylwia
Level 16
Deutschland
Resolved
sorting arrays
Hello, I have a general question about sorting arrays. Why is the variable in the first case j = i+1; in the other case j = 0; Why is that not in both cases j = i + 1; Thank you in advance! First array: String[] strings = {"x", "d", "b", "a", "c", "h"}; sort(strings); public static void sort(S
05.09.2020
415
views
4
comments
0
Adinath Ajit Patil
Level 10
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Last condition not met
code is working but still not completed.
04.09.2020
583
views
3
comments
0
Marek Durovic
Level 41
Bratislava
Question about the task
Shortener (6)
Java Collections
,
Level 6
,
Lesson 15
Under discussion
why its not going through verification?
hi, can anyone explain me why it is not going through verification? Everything works, but not even one condition is met. Thanks
04.09.2020
439
views
2
comments
0
Martin Evtimov
Level 22
Chicago
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Help
What am I doing wrong?
24.08.2018
2513
views
9
comments
0
dhanush
Level 30
Chennai
Question about the task
Searching for the right lines
Java Core
,
Level 9
,
Lesson 11
Resolved
need help
last condition is not satisfying. :(
04.09.2020
496
views
6
comments
0
Ciro Cancello
Level 4
Napoli
Question about the task
Hello, StarCraft!
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
I don't understanwhat is wrong
package com.codegym.task.task03.task0307; /* Hello, StarCraft! */ public class Solution { public static void main(String[] args) { //write your code here Zerg zerg1=new Zerg(); zerg1.name="a"; Zerg zerg2=new Zerg(); zerg2.name="b"; Zerg zerg3=n
13.04.2020
1253
views
9
comments
1
dhanush
Level 30
Chennai
Question about the task
Minesweeper (Part 9/16)
Games
,
Level 0
,
Lesson 0
Resolved
need help
my code caught by infinity loop :(
19.06.2020
596
views
1
comment
0
ddi
Level 18
Dortmund
Question about the task
Minesweeper (Part 9/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Infinite loop, what to do?
I have the failure of infinite loop. how can i stop it?
26.08.2019
1334
views
2
comments
0
Diep Le
Level 4
Paihia
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
What wrong with my code
could someone please point out what wrong with my code here? this is to find the maximum of 4 Use the keyboard to enter four numbers, and display the maximum of them. If the maximum occurs more than once, just display it once. Requirements: The program should read the numbers from the keyboard. Th
05.09.2020
446
views
2
comments
0
Valuev Nutt
Level 4
Chiba
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Why 5.0 instead of 5?
I managed to do it but I am just wondering why it had to be 5.0 for it to work. I did very poorly in maths when I was in school so a simple explanation would be very much appreciated. Thanks!
04.09.2020
544
views
3
comments
0
Adam
Level 8
Florida
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
Java.util.Scanner;
I guess we can't import Scanner? The below code works just fine in JGrasp and IntelliJ. Got it, I didnt know the input was at them bottom where it says input... I assumed the input was already part of the check. import java.util.Scanner; public class test { public static void main(String[] ar
04.09.2020
595
views
2
comments
0
Dave Andrea
Level 41
Question about the task
Why doesn't the set contain an element?
Java Collections
,
Level 6
,
Lesson 10
Resolved
No idea what the validator is looking for here.
So I've tried the following: 1) I fixed isLastDateInDates() so that it compares the getTime() values rather than the object hashcodes. It now returns true. I left updateLastDate as is, as it should change the variable last date to the updated one. Validator won't accept the last 2 conditions. 2) I
30.08.2020
474
views
1
comment
0
Hari
Level 8
Worcester
Question about the task
The end
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
what is wrong? please help!
04.09.2020
439
views
1
comment
0
AnnemiekFF
Level 41
Breda
Question about the task
Restaurant (part 19)
Java Multithreading
,
Level 9
,
Lesson 15
Resolved
Output is correct with what is expected, but nothing verifies except the matching constructor.
Can anybody tell me where the problem lies? I think it must be somewhere other than the main method, but I don't know where or how to find it?
07.04.2020
1317
views
3
comments
0
Andrei
Level 41
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Why can't i declare multiple int variables on the same line, inside the function?
Hello, I have the following code but when I debug the code I get the following error: "java: variable sum might not have been initialized" Why I am not allowed to declare int variables sum and m in the same row using the formula " int sum, m = 0". The only way it is accepted is by declaring them in
26.08.2020
459
views
8
comments
0
Lawson
Level 29
Lagos
Question about the task
Yet another adapter
Java Core
,
Level 9
,
Lesson 3
Under discussion
Help
pls I need help here
04.09.2020
332
views
6
comments
0
Lawson
Level 29
Lagos
Question about the task
TableAdapter
Java Core
,
Level 9
,
Lesson 3
Resolved
Help
Someone pls guide me on the last option
04.09.2020
479
views
2
comments
0
Akintilebo Olamilekan
Level 8
Osun State
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Resolved
Help. Note that 0 is not a positive or negative number
package com.codegym.task.task04.task0428; /* Positive number */ 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 = sc.nextIn
31.01.2019
2109
views
6
comments
0
mstellaluna
Level 5
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
Code Error
I pass all the requirements except 1 of them. the message is a bit obscure for me so im not sure what is wants. if I go into eclipse, replace buffered reader with variables with values, it works fine... Here is my code BufferedReader reader = new BufferedReader (new InputStreamReader(System.i
04.09.2018
1616
views
7
comments
0
Pablo Saquilmer
Level 32
Guatemala City
Question about the task
Rarest bytes
Java Core
,
Level 8
,
Lesson 3
Under discussion
What I m getting wrong?
Is this what i should display?
04.09.2020
358
views
2
comments
0
David
Level 9
Atlanta
Question about the task
Shuffled just in time
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Seems to work, but...
Not sure why this won't clear, even if it's a bit inelegant...
03.09.2020
365
views
3
comments
0
Tyler Evans
Level 6
Wallasey
Question about the task
Man and woman
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Help please failing saying make sure you make 2 Man objects
From what i can see i have made two man objects and two woman objects. it is failing on the condition of that "in the main method you need to created two objectss of each type". I have run the program and the output appears to be correct also. Any help is appreciated many thanks Tyler
02.09.2020
369
views
4
comments
0
yi
Level 20
Toronto
Question about the task
Wine tasting
Java Core
,
Level 4
,
Lesson 8
Archived
Hi Can someone help me with this ?
Can you tell me how to return the 3 methods in Solution class ? thx.
21.12.2019
1138
views
6
comments
0
Premachandran
Level 35
Ernakulam
Question about the task
User, loser, coder and programmer
Java Core
,
Level 4
,
Lesson 8
Under discussion
pl help. Why my code is not passing verification
pl help. my code is not passing cerification
03.12.2018
1728
views
5
comments
0
Joel Pearce
Level 22
Birmingham, UK
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Under discussion
How am I so spectacularly wrong?
Looking at other people's code I can see that I'm way out of the ballpark on this one. Did I miss something in the lessons?
03.09.2020
347
views
1
comment
0
Show more
1
...
139
140
141
142
143
...
371
Please enable JavaScript to continue using this application.