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
Art
Level 13
Chisinau
Question about the task
Minimum and Maximum
Java Core
,
Level 1
,
Lesson 11
Under discussion
Arghhhh
Can anybody help me find the issue?
3/25/20
951
views
2
comments
1
Tamas Horcsak
Level 18
Leeds
Question about the task
Minimum and Maximum
Java Core
,
Level 1
,
Lesson 11
Under discussion
Please guys help me. I could do the iteration but I cant pass it to the given X in the main. :-(
public class Solution { public static void main(String[] args) throws Exception { int[] data = new int[]{1, 2, 3, 5, -2, -8, 0, 77, 5, 5}; Pair result = getMinimumAndMaximum(data); System.out.println("The minimum is " + result.x); System.out.println("The maximum
1/22/21
886
views
3
comments
1
Edddieg
Level 15
Providence
Question about the task
Minimum and Maximum
Java Core
,
Level 1
,
Lesson 11
Resolved
im getting right output but not passing, help please
help
7/27/20
736
views
3
comments
1
Dawn( #11020889)
Level 37
Toronto
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
Anyone can help? Thanks!
I suppose I completed the task, but not passed the validation. Why?
1/22/23
433
views
1
comment
0
Kabeer Rajoria
Level 5
Gwalior
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Resolved
What is wrong?
package com.codegym.task.task04.task0413; /* Day of the week */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); Strin
10/26/18
1821
views
3
comments
2
Maven
Level 17
United States of America
Question about the task
Good or bad?
Java Syntax
,
Level 3
,
Lesson 7
Resolved
Why is the last requirement is failing.
The first 4 requirements are passing, but the last requirement is failing. It doesn't make sense. The solution displays text on the screen in accordance to the task conditions
2/22/22
656
views
6
comments
2
Jay
Level 8
Question about the task
Cat register
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
Output is not showing
After I run my code is not showing anything on the screen. I add catCount++ inside addNewCat method.
6/19/22
538
views
2
comments
1
Albert ENG
Level 6
Question about the task
What's the cat's name?
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
please can someone help me to understand what exactly each line does and the sequence of the lines, i want to understand when we run the code which line works first and what does it do. If possible comment before each line like i did
package en.codegym.task.jdk13.task04.task0403; /* What's the cat's name? */ public class Cat { //this is an instance variable private String name = "nameless cat"; public void setName(String name) { this.name = name; //dont understand how is // name variable go
5/23/22
1148
views
6
comments
0
Anitamalina
Level 18
København
Question about the task
Rarest bytes
Java Core
,
Level 8
,
Lesson 3
Under discussion
Help to testing - no passing!
Why isn't this correct? And any idea how to test it? What is byte in a text file?
1/24/23
421
views
1
comment
0
Jaime Padilla
Level 41
Chandler
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
Is this task really asking us to return every possible armstrong number that could be entered?
it grabs the correct Armstrong numbers when you run it, but times out on verification. [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407] memory 512 time = 0 [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1634, 8208, 9474, 54748, 92727, 93084, 548834] memory 19184 time = 0
1/10/23
626
views
7
comments
0
matemate123
Level 50
Kraków
Question about the task
Extending AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Under discussion
I have question
I validate but now i delete from QuestionFileOutputStream implement AmigoOutputStream and I delete every @Override above implement methods. Now looks like program worked the same. What's different if any is? I think I do now classic wrapper class without inheritance AmigoOutputStream interface?
1/22/23
569
views
5
comments
0
Guadalupe Gagnon
Level 37
Tampa
Question about the task
Table
Java Core
,
Level 8
,
Lesson 8
Resolved
Baffling requirements.......
This problem makes no sense. I have the slightest idea what is being asked for the three requirements I can not pass. Am i over thinking this, or is there missing information in the instructions/starting code?
12/14/18
2789
views
17
comments
7
sreedhar s
Level 9
Wellington
Question about the task
Logging stack traces
Java Syntax
,
Level 9
,
Lesson 2
Resolved
Validation fails
Can you help to identify the mistake in the below solution. thanks
1/22/23
347
views
3
comments
0
Josephine
Level 2
Normal
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Under discussion
can someone explain the logic of private List getNeighbors(GameObject gameObject)
can someone explain the logic of private List getNeighbors(GameObject gameObject) method what do these 2 lines do for (int y = gameObject.y - 1; y <= gameObject.y + 1; y++) { for (int x = gameObject.x - 1; x <= gameObject.x + 1; x++) {
12/8/20
1003
views
1
comment
0
Adedoyin Ogunrinde
Level 1
New
C++
Create a product class with members such as product number, product name, price, quantity, tax, discount. Product details are stored in a binary file.
1/21/23
363
views
0
comments
0
matemate123
Level 50
Kraków
Question about the task
Rarest bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
Third condition
I tried a little combination with output like -> no space after last number, but it's not validate still. Maybe you'll see what I don't and in that time I check other help question and think what that it'll would be. I print it from new list List <Integer> list = new ArrayList<>();
1/20/23
368
views
2
comments
0
Mike S
Level 28
Saint Louis
Question about the task
Clew
Java Core
,
Level 6
,
Lesson 13
Under discussion
Where in the heck is the infinite loop in ThreadFive as the compilers claim?
Okay, I'm pulling out what remains of my hair after working on this for two days. Disregard any other issues that you see in the code, just focus on ThreadFive. How in the heck is there an infinite loop in this?!?!
1/20/23
336
views
1
comment
0
Romisha Middya
Level 1
Ahmedabad
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 1
,
Lesson 2
Under discussion
What is the mistake? It is not giving any output nor any error
public class Solution { public static void main(String[] args) { System.out.print("I think being a programmer is cool"); } }
1/19/23
392
views
1
comment
0
G_Nod
Level 17
Germany
Question about the task
Snake (Part 9/20)
Games
,
Level 0
,
Lesson 1
Resolved
Why doesn't it accept this as valid?
This is what I coded, and as far as I understand it, it should do exactly the same as the solution that seems to work for most others (i.e. creating a GameObject in the createNewHead() method from snakeParts(0) and then using its x- and y-variables). Shouldn't my code get the same variables for the
1/20/23
355
views
1
comment
0
alejandro martinez
Level 1
Under discussion
File question (sorta)
How do you iterate through a line from a file that has multiple integers in that same line? For example, we have a line that has 73, 75, 80, 90, and 99. I want to get the largest integer between all the other integers. How do you do that?
1/19/23
464
views
1
comment
0
hendra gunawan
Level 9
tebing tinggi
Question about the task
Correct order
Java Syntax
,
Level 7
,
Lesson 2
Resolved
please help
please give me some advice...is there something wrong?
1/19/23
373
views
3
comments
0
alejandro martinez
Level 1
Resolved
Java problem called climb (not from the website)
I have a problem with a java problem. The problem is, You have a input file called climb.dat, inside the data file is: 3 2 5 8 The output is to have a left angled triangle with the data. One thing I do know is that the first number,(3), is how many left angled triangles and every triangle is suppose
1/11/23
565
views
3
comments
0
matemate123
Level 50
Kraków
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Under discussion
What's going on with Terminal
In this task we need terminal. I tryied wrote javac Solution.java. And I get Command 'javac' not found, but can be installed with: sudo apt install openjdk-11-jdk-headless # version 11.0.17+8-1ubuntu2~22.04, or sudo apt install default-jdk # version 2:1.11-72build2 sudo apt install
1/16/23
519
views
3
comments
0
mundru manasa
Level 1
CodeGym University in India
Under discussion
explain pass by value and reference
is java pass by reference or value
1/15/23
404
views
1
comment
0
Robert
Level 8
Lombard
Question about the task
Shall we play?
Java Core
,
Level 6
,
Lesson 13
Resolved
I give up
Any ideas what is keeping this from verifying?
6/28/19
1584
views
5
comments
0
hendra gunawan
Level 9
tebing tinggi
Question about the task
Is anyone there?
Java Syntax
,
Level 6
,
Lesson 8
Resolved
please help
when the value not contained inside array...the index result will become negative ..that's means false...I have tried but the third task requirement still wrong...
1/11/23
623
views
4
comments
0
Isma
Level 1
Madrid
Question about the task
Food
Java Core
,
Level 4
,
Lesson 4
Resolved
Narrowing doesn't work
I can't get the point of this exercise. Why is it not possible to call the .onEat() method after narrowing selectable? Thanks ! ;)
12/6/20
783
views
5
comments
0
ABHISHEK PANDEY
Level 14
Mumbai
Question about the task
Working with elements of an array
Java Syntax
,
Level 6
,
Lesson 1
Under discussion
below code section giving error for inverting sign
for(int i=0;i<5;i++) { if(i%2==0){ array[i] = (int) array[i]*-1; } }
9/14/22
713
views
2
comments
0
Neil
Level 5
Hyderabad
Question about the task
Sam I Am
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Whats wrong in this code?
1/13/20
1420
views
3
comments
0
matemate123
Level 50
Kraków
Question about the task
Clew
Java Core
,
Level 6
,
Lesson 13
Under discussion
Famous 4th thread.
I tried many ways from former questions in this topic, and I don't know, maybe something wrong with creating threads in Solution class, or inheritance?
1/11/23
351
views
5
comments
0
Show more
1
...
34
35
36
37
38
...
374
Please enable JavaScript to continue using this application.