Promotion
CodeGym University
Java FullStack
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
Tom ford
Level 15
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
The first letter is not being accounted with repetition...HELP
..
10/14/20
525
views
1
comment
0
Ahmad Dabagh
Level 9
Hannover
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Why?
I have done this task but i don't understand why was this Code is not correct and the result was ( 98 ) 🤯 int num = reader.read(); Why wthis this Code dosn't worked the result was ( 98 ) int num = Integer.parseInt(reader.readLine()); Why to int ? it's worked but i dont unders
10/13/20
640
views
4
comments
0
Benjamin Winchester
Level 17
Savannah
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Archived
Not sure why this isnt working.
Please help.
11/26/18
2468
views
7
comments
0
Шарох
Level 12
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
Hi Coders!
It's simple problem but I don't know what should I do :(
10/14/20
861
views
2
comments
0
Noob_Coder
Level 22
Springfield
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
what's wrong with this code?
10/14/20
487
views
1
comment
0
Erextor
Level 9
Moscow
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
what is wrong?
what is wrong with my answer? package com.codegym.task.task04.task0409;
10/13/20
625
views
2
comments
0
Шарох
Level 12
Question about the task
Labels and numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
Hi Coders!
I solved it but I'm confused :( Why (a%2 == 0) is true for "Negative and even" ?! Why we don't write (a%2 != 0) ?
10/13/20
504
views
2
comments
0
Chloe Dinh
Level 9
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
What is wrong here?
I've been trying all kind of input list and the result turned out right. Yet they don't let me pass the last condition.
10/13/20
536
views
2
comments
0
Tina
Level 8
Kosice
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
finally!!
Hey guys! Don't forget to import necessary classes from the java.io. package. Plus, if you have a look at the console input you'll see that they passed the age as the first value, and only after that they entered a name. So you have to adapt your code to this order. I hope this will work for you 😊
10/13/20
1223
views
1
comment
0
Seferi
Level 22
Question about the task
Spaces
Java Core
,
Level 8
,
Lesson 11
Resolved
Need a little help..
Thanks in advance
10/13/20
486
views
4
comments
0
Kelly Pepper
Level 7
Orlando
Question about the task
Financial expectations
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Where do you input data in Intellij?
If you do the project on the website there is a box at the bottom that says Input Data and contains the number 100. Where would that be in Intellij? I can't find it. The only thing I see is at the bottom in Intellij there is "Terminal", but it won't let you input the data for the program. Sorry if I
10/13/20
877
views
2
comments
0
David Close
Level 17
London
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Resolved
output isnt correct
Here my program will output 2, i am not sure why.
10/13/20
568
views
3
comments
0
Lawson
Level 29
Lagos
Question about the task
Eliminating deadlock
Java Multithreading
,
Level 7
,
Lesson 6
Resolved
Pls help
Pls what's wrong with my code... it keeps saying.. " Program ran too long"
10/10/20
622
views
1
comment
0
Philip Butler
Level 32
United Kingdom
Question about the task
How many potential friends does a person have?
Java Collections
,
Level 6
,
Lesson 8
Resolved
Logic seems OK but can't get final requirement to verify
Hi all, So for this one, I think I've got the logic for getFriends correct. It passes the example, and make senses with other values for the index parameter. However, I can't this to verify requirement 4. I may be misinterpretting the meaning of the deep parameter. Help please. Thanks, Phil
12/4/19
1846
views
4
comments
2
David Close
Level 17
London
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Not sure why condition failed
Any help regarded why the output section failed would be appreicated.
10/13/20
635
views
2
comments
0
Chanda B Barrick
Level 8
Question about the task
Moon Lander (Part 2/23)
Games
,
Level 0
,
Lesson 4
Under discussion
Don't understand what is being asked for setCellColor method
Honestly, I'm not sure I understand what is being asked here: In the drawScene() method, call the setCellColor(int, int, Color) method for each cell of the playing field with the following arguments: x and y coordinates of the cell and any color (for example, Color.BLACK). I thought just had to cal
9/21/19
1107
views
2
comments
0
Vitalina
Level 20
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
What's wrong with my code if everything works???
What's wrong with my code if everything works??? Thanks for help in advance:)
10/10/20
740
views
4
comments
0
Rajni Agrawal
Level 12
Bangalore
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Resolved
How to use returned value from call in main method
The main method should display the result of the calls, each time on a new line. convertEurToUsd(50 , 2.5); // system.out.println(dollars); this statement is not working as dollars is not defined.
10/11/20
757
views
1
comment
0
Andrei
Level 41
Question about the task
Distance between two points
Java Syntax
,
Level 6
,
Lesson 8
Resolved
Solution I wrote seems OK, yes I receive the error : "The getDistance method must return the distance between the points. " Help please!
import static java.lang.Math.sqrt; public class Util { public static double getDistance(int x1, int y1, int x2, int y2) { //write your code here double a = (x2-x1)*(x2-x1)+(y2-y1)*(y2-y1); Math.sqrt(a); return a; } public static void main(String[] args
10/12/20
879
views
5
comments
0
Vinay
Level 11
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Help Please!
Last condition not meeting. I can't figure it out. Thank you.
10/12/20
648
views
6
comments
0
Dinesh
Level 7
Delhi
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
Please explain the return statement
public class Solution { public static void main(String[] args) { //write your code here int a=sqr(5); System.out.println(a); } public static int sqr(int a) { return a * a; } }
10/12/20
808
views
1
comment
0
Jhoal
Level 22
Berlín
Question about the task
Minimum of N numbers
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
I'm getting an error and I don't know why :/
Hi guys, I need your help again. I'm getting the NoSuchElementException. can you explain me why and how to fix it?:). Thanks in advance
10/12/20
534
views
2
comments
0
Inifome
Level 10
Delta
Question about the task
Cat code won't compile
Java Syntax
,
Level 7
,
Lesson 12
Resolved
can't get out of the loop
what's wrong with the break ? please how can I correct my code?
10/7/20
960
views
2
comments
0
Dyrits
Level 1
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Resolved
Why is it not working ?
Determine why the program found more instances of the word "world " than exist in the file. public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String fileName = reader
10/12/20
553
views
2
comments
0
A R
Level 8
Ankara
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
It doesn't pass the second request
The code is almost as Task 0708 except for the ArrayList initialization which is accepted as First step. running without verification works fine. verification says it is not reading 5 inputs from keyboard. I need some clarification.
10/6/20
809
views
3
comments
0
Marius Iulian Placinta
Level 3
rome
Under discussion
Can someone tell me what did i do wrong? The output returns the right min numbers (1, -3, 3 and 5) but i still don't complete the last task "The min method must return the minimum numbers a, b, and c." Thanks
package it.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { int result; if (a<=b && a<=c) result = a; else result = b; if (b<=c && b&l
10/12/20
612
views
1
comment
0
Lawson
Level 29
Lagos
Question about the task
Lonely arrays interact
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
pls help
Pls I can't find my error
8/4/20
667
views
4
comments
0
Seferi
Level 22
Question about the task
Table
Java Core
,
Level 8
,
Lesson 8
Resolved
Help is greatly appreciated
Thanks in advance...
10/11/20
595
views
1
comment
0
Ian De Bie
Level 28
Austin
Resolved
Where can I see other people's solutions for problems that I have completed?
Obviously, once you solve a problem, that is great and all, but in order to improve coding it would be nice to see how other people solved it to compare styles and pick up new ideas for future similar problems.
6/27/20
775
views
3
comments
0
Ian De Bie
Level 28
Austin
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Resolved
help me understand why the test is failing?
why doesn't the test seem to recognize the fact that i am using a try resource block that will close the fileinputstream automatically? are we note supposed to use try resource blocks anymore?
8/29/20
721
views
1
comment
0
Show more
1
...
128
129
130
131
132
...
374
Please enable JavaScript to continue using this application.