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
qsasdgkl
Level 17
San Diego
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Archived
This compiles in IntellJ but refuses to run on the website, furthermore it claims that the program is not fulfilling requirements, but it does.
package com.codegym.task.task04.task0412; /* Positive and negative numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.i
08.04.2019
1180
views
3
comments
0
Skylar
Level 2
Flint
Question about the task
As simple as 2+2
Java Syntax
,
Level 1
,
Lesson 8
Resolved
Not sure how to do this
I don't get how to do this because I dont get how to call a method aka the sum like what do I do here?
10.10.2018
2011
views
8
comments
0
Sabine Meijran-Prins
Level 7
Enschede
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Why is a non existing object used as a parameter?
I do not understand why in this code: public boolean fight(Cat anotherCat) { //write your code here } public static void main(String[] args) { } ... The object anotherCat is used as a parameter, but this object is not made into the main method?
05.01.2019
1527
views
4
comments
0
Hankster
Level 9
Cleveland
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
apple.addPrice() vs. Apple.addPrice?
I solved the problem but am puzzling over something. The given code calls the addPrice() method twice, once on apple instance: apple.addPrice(50);, and once on apple2 instance: apple2.addPrice(100);. I am uncertain what exactly is going on here with the dot operator being used to call a static met
12.01.2019
1408
views
2
comments
0
Bill Wu
Level 29
Wellington
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Resolved
the last requirement not verified
I tried different ways to define "the word that follows the 4th space", with space or punctuation marks etc. But none can be verified. Has anyone solved this?
05.04.2019
1621
views
9
comments
0
Sokhibjon
Level 14
Tashkent
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Any Hints would be appreciated Thank you!!
Can anyone please tell me what am i doing wrong?
28.03.2019
1055
views
2
comments
0
pat
Level 2
Question about the task
Kind words for the teacher
Java Syntax
,
Level 0
,
Lesson 4
Resolved
Why doesn't it match the task conditions?
What ist wrong with my code?
02.04.2019
1151
views
2
comments
0
Learner
Level 16
Question about the task
Beer
Java Core
,
Level 3
,
Lesson 2
Resolved
Not sure what's wrong
Please help.
27.09.2018
1585
views
3
comments
0
Aakash potepalli
Level 22
Bangalore
Question about the task
Hey, are you alive?
Java Core
,
Level 3
,
Lesson 2
Under discussion
can anyone tell me where i am wrong
package com.codegym.task.task13.task1308; /* Hey, are you alive? */ public class Solution { public static void main(String[] args) throws Exception { interface Person { public void isAlive() { // return true; }
01.04.2019
1386
views
5
comments
0
Kotzebue
Level 6
Minsk
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
ERROR: The min method must return the minimum of the numbers a, b, and c.
Hi evrybody. Can anyone help me, please? Here is my solution and it really works (on the site and in IDEA with different data), but it doesn't pass verification. public class Solution { public static int min(int a, int b, int c) { int minimum = 0; if ((a < b
05.04.2019
1397
views
2
comments
0
Vani
Level 1
Delhi
Under discussion
The program should return a value of 20 and I am getting the required output as well. But when I used the "Code Analysis", it says that a javadoc comment is missing. Can you please help me in this? Thanks in advance!
package com.codegym.task.task01.task0137; /* * *Only 20 will do. */ public class Solution { public static int a = 1; public static int b = 3; public static int c = 9; public static int d = 27; public static void main(String[] args) { int result = + a + b - c + d;
03.04.2019
973
views
3
comments
0
hemant
Level 8
prayagraj
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
What does system.out.println(""); in the last line mean
What does system.out.println(""); in the last line mean
05.04.2019
1358
views
1
comment
0
Sachin Sharma
Level 2
Pune
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Resolved
The task passed testing! Your solution to the task was better than 19% of other students. Can someone explain why only 19%? Thanks in advance!
The task passed testing! Your solution to the task was better than 19% of other students. Can someone explain why only 19%? Thanks in advance!
31.03.2019
1260
views
2
comments
0
Texas Pete
Level 7
Bucharest
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
Failing last condition
I can see the code is failing when entering a zero but can't get my statements the correct way to make it verify, can anyone point me in the right direction with this. Thanks
04.04.2019
1158
views
2
comments
0
Dan
Level 2
Tauranga
Question about the task
Calculate the circumference of a circle
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Help please, i've hit a wall
I don't know what i'm doing wrong, but I feel like it should be obvious at this point, I've tried several different ways of doing it and I've hit a brick wall
02.04.2019
1693
views
5
comments
0
Jeff Jeffy
Level 15
Irvine
Question about the task
Creating cats
Java Syntax
,
Level 5
,
Lesson 9
Resolved
Confused
Its so bad I cant attach it Error code: constructor Cat(java.lang.String,int) is already defined in class com.codegym.task.task05.task0517.Cat: Cat.java, line: 27, column: 12 Code: package com.codegym.task.task05.task0517; /* Creating cats */ public class Cat { //write your code here
30.03.2019
1543
views
4
comments
0
Anonymous #10428383
Level 12
Seattle
Question about the task
How to avoid Copy+Paste
Java Multithreading
,
Level 4
,
Lesson 6
Under discussion
Running encapsuletd class in intellij how to do it?
E.g. I have one main class that's only calls another class method. That other class has no main method but the executed code. How can I do that in intellij? I can do it using notepad, but in intellij its compile the entire directory where my tasks are, but I just want to run that two specific cl
03.04.2019
1647
views
4
comments
0
thithin k v
Level 12
Bangalore
Question about the task
Cats in the Universe
Java Syntax
,
Level 4
,
Lesson 2
Under discussion
how does the programme works
package com.codegym.task.task04.task0407; /* Cats in the Universe */ public class Solution { public static void main(String[] args) { Cat cat1 = new Cat(); Cat.count = cat1.count; //write your code here Cat cat2 = new Cat(); Cat.count = cat2.count;
04.04.2019
1220
views
1
comment
0
Emil Olbinado
Level 6
Manila
Question about the task
Product of 10 numbers
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Getting this error in code analysis "Missing a Javadoc comment"
I have added several comments to test but issue persist. Although not an actual error, I want to understand what actually is this, why it happened and how to resolve. TIA! Missing a Javadoc comment.: Solution.java, line: 13, column: 5
03.04.2019
3634
views
7
comments
0
Ovo Leslie
Level 26
Lagos
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Help show me whats wrong!
Please whats wrong with this code. It's passing all the conditions except the last one :(
27.02.2019
1247
views
4
comments
0
Clayton
Level 13
Bedminster
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Not compiling
public static void main(String args[]) throws NumberFormatException, IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int sum = 0; int counter = 0; while(true) { int input = Integer.parseInt(reader.readLine()); if(input == -1) break; sum
03.04.2019
1181
views
5
comments
0
Hankster
Level 9
Cleveland
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
works with run, not with verify...
My solution works when I use run. I get the window to input three numbers and the code executes cleanly and displays the proper output. When I try to verify, it gives an error saying no input and two errors saying that I forgot a period in the output. ??? Thanks.
16.02.2019
1466
views
7
comments
0
corsi
Level 4
Furiani
Question about the task
More conversions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
More conversions
package com.codegym.task.task01.task0131; /* More conversions */ public class Solution { public static void main(String[] args) { System.out.println(getFeetFromInches(243)); } public static int getFeetFromInches(int inches) { int getFeetFromInches = 243; re
02.04.2019
1545
views
2
comments
0
Vani
Level 1
Delhi
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Resolved
Where am I doing wrong in this code? Please help me in this.
public class Solution { public static void main(String[] args) { System.out.print("I think "); System.out.print("being a programmer "); System.out.print("is cool"); } }
10.03.2019
1611
views
3
comments
0
Sundaram
Level 12
Chennai
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
It runs ok but fails on verifying. Can's see what is wrong?
package com.codegym.task.task07.task0706; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Streets and houses */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReade
04.02.2019
972
views
3
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Task No. 4 about integer type conversions
Java Syntax
,
Level 10
,
Lesson 4
Under discussion
What i should to do here?
Could you give me other way to change int nine to char?
26.01.2019
1352
views
1
comment
2
Thomas
Level 12
Gent
Resolved
Error: The removeAllSummerPeople() method not working
I can't find the problem. Can anyone help me with this one? public static void removeAllSummerPeople(HashMap map) { Iterator> iterator = map.entrySet().iterator(); while (iterator.hasNext()){ Map.Entry pair = iterator.next(); Date birth = pair.getValu
27.03.2019
805
views
3
comments
0
Rad
Level 8
Maidstone
Question about the task
Changing functionality
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
i need help
my code is veryfied but when i execute showing as java.lang.NullPointerException: Solution.java, method main, line: 20 An attempt was made to access an uninitialized object (Null).
13.11.2018
1277
views
4
comments
1
lordheraldor
Level 23
Newark
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Under discussion
I'm a little lost as to what's wrong with my solution.
Is there something I'm not taking into consideration? As far as I can tell the code should work ok.
22.03.2019
1044
views
3
comments
0
Alex Jones
Level 4
Question about the task
Kind words for the teacher
Java Syntax
,
Level 0
,
Lesson 4
Resolved
Not sure how you can put "clever in the code while matching the display
how do you do this task and why does the "The text should end in "clever"." show up?
02.04.2019
1152
views
4
comments
0
Show more
1
...
328
329
330
331
332
...
366
Please enable JavaScript to continue using this application.