Promotion
CodeGym University
Learning
Course
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
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?
22.01.2023
212
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
26.10.2018
1360
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
22.02.2022
438
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.
19.06.2022
328
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
23.05.2022
679
views
6
comments
0
DolciNShortE
Level 3
Fort Worth
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Why is the person object created before the Person class???
I am having a very difficult time understanding this task. I've worked on it for about 3 days now and I'm still a little confused. I think I understand the concept of using the "this" keyword, though I'm still a little fuzzy on it. It wasn't explained well at all. But what I'm really confused ab
11.10.2021
722
views
2
comments
1
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?
24.01.2023
192
views
1
comment
0
Jaime Padilla
Level 38
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
10.01.2023
293
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?
22.01.2023
277
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?
14.12.2018
2222
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
22.01.2023
187
views
3
comments
0
Josephine
Level 26
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++) {
08.12.2020
682
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.
21.01.2023
196
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<>();
20.01.2023
168
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?!?!
20.01.2023
148
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"); } }
19.01.2023
207
views
1
comment
0
G_Nod
Level 16
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
20.01.2023
175
views
1
comment
0
Filip
Level 6
Question about the task
Summation
Java Syntax
,
Level 4
,
Lesson 3
Under discussion
I can`t meet the secound requirement.
Hello everyone! I`ve been trying to solve this task for manny hours, but nothing came up to my head. I`ve been trying with simply while loop, without hasNextInt() and hasNextLine() ect. but nothing meets the second requirement. Pls help. I`d like to solve and understand this task. Thanks! Proposing
19.01.2023
390
views
4
comments
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?
19.01.2023
280
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?
19.01.2023
205
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
11.01.2023
332
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
16.01.2023
247
views
3
comments
0
mundru manasa
Level 2
CodeGym University in India
Under discussion
explain pass by value and reference
is java pass by reference or value
15.01.2023
177
views
1
comment
0
Robert
Level 27
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?
28.06.2019
1318
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...
11.01.2023
401
views
4
comments
0
Isma
Level 41
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 ! ;)
06.12.2020
589
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; } }
14.09.2022
445
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?
13.01.2020
1167
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?
11.01.2023
178
views
5
comments
0
Gummy C
Level 11
United States of America
Question about the task
Smallest element of an array
Java Syntax
,
Level 8
,
Lesson 0
Under discussion
Getting errors
Ran my code on intellij with different numbers, and even with the smallest number buried somewhere in the middle of the array. But, I am still getting an error from this. Why is that? I am using the Math.min correctly, and I have found the smallest number. Thanks in advance
10.01.2023
170
views
2
comments
0
Show more
1
...
25
26
27
28
29
...
367
Please enable JavaScript to continue using this application.