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
Ashish RajAnand
Level 13
Bhilai
Resolved
what is error and why ?
public class Cat { String name; int age; static int count = 0; public static void main(String[] args) { Cat smudge = new Cat(); smudge.age = 3; smudge.name = "Smudge"; count++; Cat fluffy = new Cat(); fluffy.age = 5; fluffy
24.10.2018
1009
views
2
comments
0
Ashish RajAnand
Level 13
Bhilai
Resolved
please explain how to create composite data type and how to use it and
in the task 0130 how to create Celsius(double) method
07.10.2018
1061
views
1
comment
0
Ashish RajAnand
Level 13
Bhilai
Resolved
doubt please clear sir as fast as possible
1-why are we required to create static to main method.- 2-why are we required to create public to main method. 3-can i use int at the place of void in main method
29.09.2018
1272
views
5
comments
1
Sidd
Level 7
Maple Valley
Question about the task
18+
Java Syntax
,
Level 4
,
Lesson 6
Resolved
??
I did everything but it doesn't work??? What did I do wrong?
15.05.2020
668
views
2
comments
0
Profj
Level 20
Lagos
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
Please i don't know what else i can do
Please help me.
06.06.2019
1430
views
7
comments
0
Laurence
Level 10
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Help please? My output is correct but it still doesn't satisfy the last two conditions.
I've run it through another compiler with all negatives and it returns the correct maximum value. Any help would be greatly appreciated.
15.05.2020
317
views
2
comments
0
Arjun Kiruthivasan
Level 14
Chennai
Question about the task
Minimum number of statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
what is my mistake??
someone,, please help me
13.09.2018
2231
views
8
comments
0
Peter Gray
Level 20
Compiegne
Question about the task
Debug, debug, and again debug
Java Core
,
Level 5
,
Lesson 12
Under discussion
Failed: The A class's initialize method must have the strictest access modifier.
It says that my class A doesn't have the strictest access modifier. And here is the code: public static class A { private int f1 = 7; private A(int f1) { this.f1 = f1; initialize(this.f1); } private void initialize(int f1) {
15.05.2020
352
views
1
comment
0
Denis
Level 22
Kharkiv
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Under discussion
One condition
Help me pls guys
29.06.2019
1472
views
5
comments
0
Pablo Souza
Level 22
Brisbane
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Under discussion
Can't understand "case -u"
Hey folks!! I just passed the case "-u" requirement but I can't quite understand why I had to create another "person" object while it wasn't necessary in task 10 below: else if (args[0].equals("-u")) { Date date2 = new SimpleDateFormat("MM dd yyyy", Locale.ENGLISH).parse(args[4]);
05.05.2020
350
views
1
comment
0
David
Level 26
Bucharest
Question about the task
Different methods for different types
Java Core
,
Level 5
,
Lesson 12
Resolved
Why is not working the method for Integer values?
When I read a negative value or a value greater than 128 it doesn.t print anthing...it is supposed to print : ""This is an Integer. Value: " + value": I really cant understand why is not printing that message when I call it..Can anyone help me, please!! package com.codegym.task.task15.task1519;
14.05.2020
417
views
8
comments
0
Michael Brimage
Level 19
Washington D.C.
Question about the task
Sorting bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
bytes not added to
For some reason I am displaying the indices instead of the literal number. I attempted to save the numbers in a set and then convert to a list and sort. please help. Thanks
14.05.2020
485
views
14
comments
0
Henrique
Level 41
São Paulo
Question about the task
Task about algorithms
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Solved, but did not quite understand
Hi! I saw that the code bellow, suggested by Guadalupe, solved the problem. But I didn't understand why and how this loops of arrays place the words in alphabetical order. Why the "greater" string is placed after, and the "smaller" is placed before? What does it have to do with the alphabet? (I've
14.05.2020
530
views
4
comments
0
Lgd
Level 20
London
Question about the task
Wine tasting
Java Core
,
Level 4
,
Lesson 8
Archived
I'm unable to figure out the issue with the getBubblyWine() method and object
All items pass except the last. Perhaps I've stared at it for too long but I cannot see my error. please help. thanks
15.05.2020
518
views
2
comments
0
shaan mohd khan
Level 13
Jhansi
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
please help...very much frustated by this task...
help
16.02.2019
1391
views
5
comments
0
Arnold Cytrowski
Level 29
Breslau
Question about the task
Wait and see
Java Multithreading
,
Level 5
,
Lesson 9
Under discussion
Help
Anyone can explain to me what should i do to pass it and how it works?
14.05.2020
357
views
4
comments
0
Rafał Pawłowski
Level 22
Southampton
Question about the task
Symbol frequency
Java Core
,
Level 8
,
Lesson 11
Resolved
Why does it not work?
I have tested with several ASCII symbols and it works great
15.05.2020
339
views
3
comments
0
Henry
Level 6
Stuttgart
Question about the task
Getters and setters for the Dog class
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
hello
Whats the mistake on line 18?
15.05.2020
724
views
2
comments
0
Prateek Parmar
Level 4
Chennai
Question about the task
Minimum of two numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Getting the correct answer but not getting all sucessful test cases
It's showing The program must display minimum of two integers.I'm getting the correct answer during verification as well.
04.09.2018
1187
views
4
comments
0
Lgd
Level 20
London
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Resolved
The program must copy the contents of the first file to the second one.
It seems I'm not alone in my struggle with this one... Can anybody provide some insight please. Many thanks in advance
06.04.2020
726
views
0
comments
0
SOUFIANE DAHIMI
Level 32
Marrakech
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Archived
Please what's wrong with this code
I don't know where is the mistake
30.04.2020
706
views
4
comments
0
NEGI
Level 2
dehradun
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
how to create reference of an object??
what's wrong in the code??
15.05.2020
349
views
1
comment
0
ty
Level 2
Hawthorne
Under discussion
iIM STUCKKKKK
Implement the print3 method. The method should display the passed string (word) three times, but on the same line. Words must be separated by a space and should not merge into one. (THIS IS MY CODE BUT IT IS WRONG) public class Solution { public static void print3(String s) { System.ou
15.05.2020
237
views
1
comment
0
Dmitrii
Level 38
Saint Petersburg
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Resolved
Can't figure out what am i missing
Code does the job with all my tests, but...
09.05.2019
1573
views
4
comments
0
Sidd
Level 7
Maple Valley
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
??
Why does this not work? The output is correct but the last condition does not meet. I am so confused.
14.05.2020
291
views
1
comment
0
Jason Ahn
Level 4
Ottawa
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Not sure what's wrong...
Help would be appreciated..:(
23.01.2019
2456
views
9
comments
0
Asım Keskin
Level 8
Ankara
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Does not see my for loop!
My code fulfills all conditions and includes a for loop but the program insists it does not meet the fourth criterion i.e. "must have a for/while loop". Am I wrong or is this a bug ?
14.05.2020
336
views
2
comments
0
NOBODY
Level 5
Question about the task
Even numbers
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
help
someone help..
05.05.2020
479
views
3
comments
0
Hiko Txs
Level 20
Plano
Question about the task
Picking out numbers
Java Core
,
Level 9
,
Lesson 5
Under discussion
Please help me
package com.codegym.task.task19.task1908; /* Picking out numbers */ import java.io.*; import java.util.ArrayList; public class Solution { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Str
14.05.2020
294
views
1
comment
0
Mendelstein Hellstein
Level 2
Helsinki
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
I'm stuck with this.
I don't know how to continue, seems everything is fine and but still haven't got last line right "The min method must return the minimum of the numbers a, b, and c." It print out 1, -1,3 and 5 which should be minimum numbers. How to continue about this?
12.05.2020
509
views
4
comments
0
Show more
1
...
187
188
189
190
191
...
366
Please enable JavaScript to continue using this application.