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
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
AlfredW
Level 23
Denver
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
I decided to dig in and try to understand the code everyone seems to be using to pass this.
I am pretty sure that this will pass verification once I change the return to the correct result array. I really wanted to understand what this code did before I used it to pass verification. I dug into it as well as I could and tried to parse out how it was working. I had already written my own cod
11/10/20
670
views
5
comments
0
Mateusz
Level 31
Gdańsk
Question about the task
Thread priorities
Java Multithreading
,
Level 8
,
Lesson 6
Under discussion
What's wrong with this solution?
Output is good, can anyone tell me what's wrong?
8/12/21
618
views
1
comment
0
Tamas Horcsak
Level 18
Leeds
Question about the task
Different methods for different types
Java Core
,
Level 5
,
Lesson 12
Under discussion
my solution worked fine but it doesn't pass here (:
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; /* Different methods for different types */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(Sy
8/12/21
896
views
2
comments
0
Rex
Level 3
Columbus
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
I entered the right solution, but that darn s is throwing me off
public static void print(String s) { System.out.println(s); why s, why s, why s? could it just as easily have been some other letter? like: public static void print(String f) { System.out.println(f); It is so strange to me that this wasn't explained.
8/12/21
681
views
2
comments
0
Anne Kooijman
Level 2
Amsterdam
Question about the task
Amigo is very smart
Java Syntax
,
Level 0
,
Lesson 2
Under discussion
Amigo is very smart VS Amigo is real smart?
How come this did not verify correctly for the output "Amigo is real smart"? According to what im reading for the checks and balances (nr of chars, first word and last word) it should have worked too.
1/4/21
758
views
5
comments
0
Indranil Chakraborty
Level 3
United Kingdom
Question about the task
Let's change the code
Java Syntax
,
Level 1
,
Lesson 4
Resolved
What is wrong here 🙃
String s = help System.out.println(s)
8/11/21
435
views
2
comments
0
anupam jha
Level 7
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
string
which string it is about?? there r three in the main method.
10/15/20
808
views
5
comments
0
Peter Gray
Level 20
Compiegne
Question about the task
Mercantile intentions
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Every single Java course. Why?!
Why does every Java course has to include exercises with material unknown to the student? First modulo, now loops. If this continues I'm gonna set up a blog with solutions to those particular tasks.
12/17/19
1476
views
6
comments
1
Edward Rickers
Level 15
Washington
Question about the task
Display numbers in reverse order
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Why am I failing the first requirement
I tried simplifying the initialization and it still runs and reverses but doesn't pass that requirement.
8/9/21
526
views
1
comment
0
Edward Rickers
Level 15
Washington
Question about the task
Corrections are needed
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Why is it outputting null for the first one?
Changing the size and the initial i value did not correct it.
8/9/21
438
views
1
comment
0
Indranil Chakraborty
Level 3
United Kingdom
Question about the task
Part of a calculator
Java Syntax
,
Level 2
,
Lesson 2
Resolved
A bit of help please
= b
8/4/21
516
views
5
comments
0
skalskif
Level 23
Poland
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
Does anyone know how correct solution works?
I have no idea how to do it by myself, I tried everything, but algorithm is still too slow, so I looked up correct solution and I don't understand it at all. Is there anyone who understands how it works and could explain it to me? Here is the code: package com.codegym.task.task20.task2025; import
8/7/21
500
views
2
comments
0
WatWat
Level 9
Vancouver
Question about the task
Countdown
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
This is an odd task at this stage.
Threads? There is too big of gap in my knowledge to complete this task. I know as programmers we are supposed to research on our own (which I do) but I feel there is some prerequisites I need to learn in order to successfully understand not only the task but "Threads" as well. If I'm not mistaken, T
10/15/18
2867
views
11
comments
4
Evgen
Level 23
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Under discussion
need help
I test my code different words and arrays and get correct output, but the last condition is still unreached
7/27/21
1088
views
8
comments
0
Brad Reed
Level 19
Hartford
Question about the task
Controlling body weight
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
statement, not question:
Read the task VERY carefully, I failed a bunch cuz I misread the formula, dont be like me. (yes I got it in the end after I realized I copied the BMI formula wrong)
6/26/20
640
views
2
comments
0
Kobi
Level 10
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Why doesn't work?
Why doesn't work?
8/4/21
1008
views
3
comments
0
David
Level 5
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Display the result but fails
[Failed] "The program should display the ordinal number of the number that is different from the others." package com.codegym.task.task04.task0424; /* Three numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { // Write your
7/26/21
664
views
3
comments
0
Abishai Mumba
Level 2
Question about the task
A variable on our screen
Java Syntax
,
Level 1
,
Lesson 3
Under discussion
Can't figure it out
What's wrong with this String name="Amigo"; System.out.println ("name");
2/23/19
1409
views
3
comments
0
Guadalupe Gagnon
Level 37
Tampa
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Resolved
Has anyone solved this?
I get the same results as they do with their examples, at least I think i do, the requirements are a convoluted mess. Anyone have any suggestions?
12/20/18
2357
views
6
comments
1
TheLordJackMC
Level 39
Princeton
Under discussion
why is my accuracy random?
I've completed almost every task in under 3 attempts, but my accuracy score keeps changing randomly. why is this happening?
8/6/21
506
views
4
comments
0
Edward Rickers
Level 15
Washington
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
What am I missing? Error message also very confusing
package com.codegym.task.task07.task0716; import java.util.ArrayList; /* R or L */ 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("ly
8/6/21
821
views
2
comments
0
Dinesh
Level 7
Delhi
Under discussion
What is wrong with my print statement .
import java.util.Scanner; public class IterativeFactorial{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); System.out.println(" Enter number: "); int num =sc.nextInt(); } private static int IterativeFact(int num){ //System.out.prin
8/4/21
430
views
5
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Fixing bugs
Java Core
,
Level 3
,
Lesson 11
Under discussion
Just looking for some explanation about what the code is doing
I had no problem passing the validation (IDEA makes it easy by underlining errors) so there's no attached code here. I just want to ask for some clarification about what the code is doing in this task. Why does the interface create an object of the class that implements it? Is this normal practice?
8/3/21
826
views
6
comments
0
Toka
Level 11
Dugo Selo
Under discussion
Can someone explain me what is wrong ?tnx
package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Exception { //write you
8/5/21
804
views
1
comment
0
Anonymous #10775689
Level 14
United Kingdom
Question about the task
Catching unchecked exceptions
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
If you're stuck, look at RuntimeException
This task puzzled me for a while. You need to... In the handleExceptions method, handle all unchecked exceptions. You can only use one try-catch block. If you're stuck, know that NullPointerException, IndexOutOfBoundsException and NumberFormatException are all subclasses of RuntimeException.
8/2/21
563
views
1
comment
2
Piyush Mahajan
Level 9
Mesa
Question about the task
Minimum number of statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Can i access static variable from non static function. My below program is working but i have confusion for method 4 accessing a static variable.
package com.codegym.task.task06.task0616; /* Minimum number of statics */ public class Solution { public static int step; public static void main(String[] args) { method1(); } public static void method1() { method2(); } public static void method2() {
1/8/20
1071
views
1
comment
0
ron_villela
Level 28
Miami
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
not seeing where this is incorrect....sample input is output correctly on IntelliJ....
package com.codegym.task.task05.task0532; import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(
8/3/21
577
views
4
comments
0
Chris
Level 19
Newark
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Unsure of how to solve the last step.
If someone can walk me through the last step it would be greatly appreciated.
5/2/21
939
views
3
comments
0
Andrei
Level 41
Question about the task
Rollback
Java Collections
,
Level 9
,
Lesson 9
Resolved
Is there something wrong with my logic? Because it does what the requirements are.
I have even compared it to the solution , and they seem quite similar in output. Maybe I am missing something?
8/2/21
472
views
2
comments
0
Josephine
Level 2
Normal
Question about the task
Snake (Part 18/20)
Games
,
Level 0
,
Lesson 1
Resolved
I have no idea why UP and DOWN Direction not passing...
I have no idea why UP and DOWN Direction not passing....Someone please help .I am stuck at part18 of snake game
11/5/20
878
views
2
comments
0
Show more
1
...
64
65
66
67
68
...
374
Please enable JavaScript to continue using this application.