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
Lajos
Level 3
Gyula
Question about the task
Creating a proxy object
Java Collections
,
Level 2
,
Lesson 8
Resolved
It's working, but I don't know what's wrong.
Hello! Any idea what's the problem? It's working, but I don't know what's wrong. thx
4/21/20
1462
views
5
comments
1
Harshit Garg
Level 34
Chandigarh
Question about the task
Correct order
Java Syntax
,
Level 7
,
Lesson 2
Resolved
isnt it correct..
pls tell any mistake
8/8/23
564
views
2
comments
0
K J LAKSHMI PRASAD
Level 4
kalasalingam University
Question about the task
Three numbers
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
three numbers
import java.util.Scanner; /* Three numbers */ public class Solution { public static void main(String[] args) { //write your code here Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b= sc.nextInt(); int c= sc.nextInt(); if(a==b && a==c ) { System.out.print
9/3/23
412
views
1
comment
0
FelixUjo
Level 35
Gijón
Question about the task
Catching custom exceptions
Java Syntax
,
Level 15
,
Lesson 8
Resolved
I don't understand this task
I don't understand this task
8/13/23
354
views
3
comments
0
Andrei
Level 41
Question about the task
Reading from a stream
Java Collections
,
Level 2
,
Lesson 4
Under discussion
Is there something wrong with my algorithm? Because on paper is should pass the last requirement.
What do you think?
6/21/21
963
views
3
comments
0
Wei Cui
Level 39
Newark
Question about the task
Using RandomAccessFile
Java Collections
,
Level 2
,
Lesson 2
Under discussion
where is wrong
when meeting the text content, its true, but can't pass, idk where is wrong public class Solution { public static void main(String... args) throws IOException { String path = args[0]; int position = Integer.parseInt(args[1]); String text = args[2]; RandomAccessF
3/18/20
1569
views
4
comments
0
Anonymous #11149819
Level 36
Poland
Question about the task
Password generator
Java Collections
,
Level 2
,
Lesson 6
Under discussion
What is wrong?
1. I made List readyPasswords class variable and got this. 2. readyPasswords was methods variable before. But I had this when validated My code seems to work well, but it doesn't pass validation
8/25/23
334
views
1
comment
0
Anonymous #11387724
Level 1
Richardson
Under discussion
What input was given to the following code snippet to output 8?
Scanner s = new Scanner(System.in); int times; times = s.nextInt(); //brings in an int from commandline times = times < 0 ? -times : times; int notes = times++; if
8/27/23
360
views
1
comment
0
matemate123
Level 50
Kraków
Question about the task
Build a tree (part 4)
Java Collections
,
Level 1
,
Lesson 15
Resolved
I need a hint
Ok my code looks like that. I don't know exactly what Validator want from me. I don't know whether I can use linkedLists / arrayLists ? // line 13 For start I implemented add() size() and getParrent() method and I get 3 red from validator, then I implemented remove() because I thought maybe I must d
8/24/23
642
views
9
comments
0
Harshit Garg
Level 34
Chandigarh
Resolved
Why doesnt this work? pls see
package Application; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Application1 extends JFrame implements ActionListener { JButton b1; Application1(){ setSize(700,600); setLayout(new FlowLayou
8/26/23
607
views
5
comments
0
prasanth
Level 8
Fort Collins
Question about the task
Create a Dog class
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
Need help with this
package com.codegym.task.task05.task0511; /* Create a Dog class */ public class Dog { String name = "Puppy"; int height = 6; String color = "green"; public void Initialize(String name) { this.name = name; } public void Initialize(String name,int height) { this.name = name;
1/8/19
2401
views
6
comments
0
Harshit Garg
Level 34
Chandigarh
Resolved
bitwise
shouldn't 0b11110001>>4 = 0b11111111 OR 0bf1>>4 = 0bff? calculator shows: 0b0f or 0b00001111
8/21/23
340
views
3
comments
0
Daniel Njuguna
Level 14
Kiambu
Question about the task
Whales, the descendants of cows
Java Core
,
Level 2
,
Lesson 2
Under discussion
What's wrong here?
package com.codegym.task.task12.task1202; /* Whales, the descendants of cows */ public class Solution { public static void main(String[] args) { Cow cow = new Whale(); System.out.println(cow.getName()); } public static class Cow { public String getName() {
2/6/19
1866
views
4
comments
1
Lex Icon
Level 17
Sofia
Question about the task
The isomorphs are coming
Java Core
,
Level 2
,
Lesson 12
Resolved
I need a help.
In fact, this code has the following output: The minimum is -8 The index of the minimum element is 5 Wherein have I done a mistake? TY
1/20/21
612
views
2
comments
1
matemate123
Level 50
Kraków
Question about the task
Adding a file to an archive
Java Collections
,
Level 1
,
Lesson 6
Resolved
My program did everythink but still all red!...
My program copy zipFile to temp directory. // 33 If "new" folder is in upmost tree, checking whether that folder have file with the same name like fileToCopy, and change the file. // 73 (maybe I don't understand task correctly but I see in exaple of result that tree looks like: upmostTree/new/file
8/21/23
358
views
2
comments
2
Anonymous #10887977
Level 14
Chicago
Question about the task
Good or bad?
Java Syntax
,
Level 3
,
Lesson 7
Under discussion
It appears I match all the criteria, can anybody spare a hint?
I've met all the criteria. If a < 5, displays less than 5. Else displays number is greater than 5. Instructions say nothing about whether or not number is actually 5, as is the case with the third call of the compare method. I can fix this with an "else if" but I'm not specifically asked to.
12/6/21
1116
views
5
comments
0
FelixUjo
Level 35
Gijón
Question about the task
Task about algorithms
Java Syntax
,
Level 16
,
Lesson 4
Under discussion
I don't know what else to do
I don't know what else to do
8/20/23
357
views
1
comment
0
Garagastone21
Level 1
Under discussion
void cocktailSort(int a[]) { boolean swapped = true; int start = 0; int end = a.length; while (swapped == true) { swapped = false; for (int i = start; i < end - 1; ++i) { if (a[i] > a[i + 1]) { int temp = a[i]; a[i]
void cocktailSort(int a[]) { boolean swapped = true; int start = 0; int end = a.length; while (swapped == true) { swapped = false; for (int i = start; i < end - 1; ++i) { if (a[i] > a[i + 1]) { int temp = a[i]; a[i]
8/20/23
373
views
0
comments
0
Harshit Garg
Level 34
Chandigarh
Question about the task
Path update
Java Syntax
,
Level 10
,
Lesson 5
Resolved
Where is the error?
pls reply
8/16/23
448
views
2
comments
0
Harshit Garg
Level 34
Chandigarh
Under discussion
Did not understan Lev 11 lesson 5 , pls help
class Person extends Object { String name; int age; public boolean equals(Object obj) { return this == obj; } public int hashCode() { return address_of_object_in_memory; // This is the default implementation, but there may be a different implementation } } wh
8/20/23
318
views
1
comment
0
FelixUjo
Level 35
Gijón
Question about the task
Task about algorithms
Java Syntax
,
Level 16
,
Lesson 4
Under discussion
I don't understand why it throws nullpointerexception
I don't understand why it throws nullpointerexception
8/19/23
336
views
1
comment
0
hidden #11365854
Level 1
Question about the task
Snake (Part 5/20)
Games
,
Level 0
,
Lesson 1
Resolved
Wieso werden Fehler angezeigt?
Ich haben alles gemacht lt. Anweisung, trotzdem komme ich nicht weiter. - The Snake class must have a private List snakeParts field that is initialized with a new ArrayList<> when it is declared Ich habe in der Snake-Classe das List Feld zugefügt. Habe es sogar auf ArrayList bzw. private Arra
8/18/23
755
views
6
comments
0
Anonymous #11362549
Level 6
United States of America
Question about the task
Multiplication table
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Why does it think that the array doesn't have the values of the multiplication table even though i use the array to print the multiplication table? How do i fix this?
Why does it think that the array doesn't have the values of the multiplication table even though i use the array to print the multiplication table? How do i fix this?
8/9/23
410
views
3
comments
0
Nitin Saini
Level 4
Question about the task
Broken keyboard
Java Syntax
,
Level 3
,
Lesson 9
Under discussion
anybody here please help
help
3/25/23
474
views
3
comments
0
Uzoechi Juliet
Level 2
Question about the task
Amigo is very smart
Java Syntax
,
Level 1
,
Lesson 1
Resolved
Amigo is very smart
please help, finding it difficult to code it
2/28/23
772
views
2
comments
0
Patricial Morg
Level 1
Question about the task
Encryption
Java Core
,
Level 8
,
Lesson 11
Under discussion
do you know how i got my lost funds back?
Reach out to mr Jeff he had helped me a lot when it comes to trading as I ran into a lot of lost with different brokers. I lost more than £23,400 to two different brokers but I got all my lost fund recovered with the help of Mr Jeff Silbert and with his assistant and guidance I have been able to ma
4/29/23
557
views
2
comments
1
Jeanine Kimball
Level 26
New London
Question about the task
Arkanoid (part 10)
Java Multithreading
,
Level 3
,
Lesson 13
Under discussion
What am I doing wrong with the last requirement?
I tried running it and it doesn't do anything yet so I can't tell if it's supposed to do that at this stage or not. Help?
9/10/20
787
views
4
comments
0
Harshit Garg
Level 34
Chandigarh
Under discussion
Bitwise queries
the lesson(9 - 5,6) was a bit unclear... how "Shifting one digit to the right has the same effect as dividing a number by 2." is done by shifts. (did not understand..) what do the operators/functions return if the lengths of the binary are unequal? what is exactly happening in 1<<20 h
8/14/23
347
views
2
comments
0
JareBear93
Level 4
Question about the task
Price of apples
Java Syntax
,
Level 3
,
Lesson 4
Resolved
Would someone be willing to explain what I'm missing?
As far as I can tell, I'm either out of my mind, or this is fishy. My program displays text on the screen. ✅ The addPrice method does NOT display text on the screen. ✅ The applePrice variable is static and initialized to zero. ✅ addPrice is only being called twice. ✅ The cost increases the cost of
8/16/23
410
views
2
comments
0
Andre M.
Level 4
Glenn Dale
Question about the task
Price of apples
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
First passed-in value ignored...
I know that the main class is passing-in values. The first value passed in, 50, was canceled out and replaced with 100. How do I keep the 50 value?
12/17/21
1400
views
3
comments
0
Show more
1
...
22
23
24
25
26
...
375
Please enable JavaScript to continue using this application.