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
Alan Heffernan
Level 17
Anwoth
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Can anyone see what's wrong with my code?
Can any help modify my code to make this work? I think my logic in my while loop is correct but think the problem might be my variables outside of the loop? Thanks in advance!
12/26/18
1927
views
3
comments
0
Po
Level 1
Taipei
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Need some help
I don't know how to set my condition in line 25, because it shows "java.lang.IndexOutOfBoundsException " Can anyone give me some advice? Thanks a lot~
11/4/18
1945
views
10
comments
0
Sourav Gunner
Level 19
Birtamode
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
what is the problem here
package com.codegym.task.task04.task0401; /* This age doesn't work for me… */ public class Solution { public static void main(String[] args) { Person person = new Person(); System.out.println("Age is: " + person.age); person.adjustAge(person.age); System.out.
8/24/18
2144
views
5
comments
0
rsingh04
Level 6
Mumbai
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
need help?
please help someone please. how to check the condition? how many input we need to sum up?????
12/27/18
1293
views
3
comments
0
Eduardo
Level 23
Coyoacan
Question about the task
Animal identification
Java Core
,
Level 2
,
Lesson 2
Resolved
Correct output, but won't verify
Hello. I'm getting the correct output (I also tried adding another else if that checked if it was a Pig and then printed "Pig" and then also one that same case printed "Unknown animal" to no avail). Any hints? Thanks
12/27/18
2058
views
2
comments
0
ann
Level 4
Dusseldorf
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Can anyone please explain why this is not working?
package com.codegym.task.task01.task0132; /* Sum of the digits of a three-digit number */ public class Solution { public static void main(String[] args) { System.out.println(sumDigitsInNumber(546)); } public static int sumDigitsInNumber(int number) { //write your cod
12/6/18
2226
views
3
comments
0
Sokhib
Level 7
Makati
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Can anyone tell me what i did wrong?
Can anyone tell me what i did wrong? Thanks!!!
12/5/18
1997
views
3
comments
0
yash mohan
Level 3
Gurgaon
Under discussion
pls tell me code
what to code in Celsius to Fahrenheit lesson
12/27/18
1899
views
1
comment
0
Byron Love
Level 2
Chicago
Question about the task
Contract
Java Syntax
,
Level 1
,
Lesson 6
Under discussion
somethings wrong with this exercise
My program is typed right, but the compiler says it wrong and suggestions
12/26/18
1640
views
7
comments
0
Bishal Sharma
Level 3
Mumbai
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
whats wrong in this
if(a
12/26/18
1245
views
1
comment
0
Gaurav shukla
Level 6
Bhopal
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
mentor is suggesting a typo error.help to remove this error.
help
12/20/18
2089
views
3
comments
0
Amartyanil Chattopadhyay
Level 3
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Minimum of three numbers - bug
Hi; Can anyone point out the mistake in this code?
12/7/18
2406
views
7
comments
0
rsingh04
Level 6
Mumbai
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
help ?
in my code ...the nested else statement is not printing display,, help ??
12/24/18
1512
views
3
comments
0
Thango Ö
Level 9
Chennai
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
Help me out
?
12/25/18
1428
views
2
comments
0
Fairoz Logde
Level 14
Mumbai
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Resolved
What is wrong?
Even though the code is giving write output it isnt verifying plz help!
11/16/18
1593
views
4
comments
0
Mohammed Amine EL AMRANI
Level 11
Rabat
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Resolved
What's wrong with my code !!!
Hello, When i run the program with any simulation its work, but the mentor doesnt accepte it. could you help me?
12/24/18
1886
views
1
comment
0
Jason Ahn
Level 5
Calgary
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Can someone please help me understand this assignment?
I looked at other people's discussion and eventually copied and pasted to receive some points...But I'm still having trouble understanding how I should even tackle this assignment... Can someone be nice enough to please guide me through step-by-step how this works? :(..
12/24/18
1555
views
1
comment
0
ShirAz SiddiQui
Level 8
Karachi
Question about the task
We don't need any extra lines
Java Syntax
,
Level 1
,
Lesson 7
Under discussion
Help me solve my error
I have commented on line 13, 14 and 17 but there is still an error.
10/2/18
1490
views
2
comments
0
Joy Majumdar
Level 16
Kolkata
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
Whats wrong in here ?
What is the problem here ?
12/23/18
1578
views
2
comments
0
Sabine Meijran-Prins
Level 7
Enschede
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Stuggling with Modulo
Goodmorning, good evening and goodnight all :) I am struggling with the modulo-exercise. Lets take this as an example: year%400==0 If we fill in the year 1900 then the remainder is 300. 1) Does the above code then mean 300 is true or does it mean 300 is equal to 0? 2) if the remainder is indeed
12/22/18
1795
views
3
comments
0
Sabine Meijran-Prins
Level 7
Enschede
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Resolved
In the compiler this is working, so I do no know why I am getting this error
I do not know why Codegym is getting errors, because it just works into the compiler..
12/21/18
1574
views
3
comments
0
Sindhura
Level 15
Delhi
Question about the task
HashMap of Objects
Java Syntax
,
Level 8
,
Lesson 3
Under discussion
How to transverse through objects
package com.codegym.task.task08.task0806; import java.util.HashMap; import java.util.Map; /* HashMap of Objects */ public class Solution { public static void main(String[] args) throws Exception { HashMap map = new HashMap(); map.put("Sim", 5); map.put("Tom", 5.5);
10/4/18
2466
views
5
comments
0
Swati
Level 8
Pune
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Please help to figure out problem.
Prgram runs successfully,but verification fails.
12/21/18
1754
views
3
comments
0
Robert Ebafua
Level 4
Lagos
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Hi Guys I don't know what else to do. I just noticed there is no minimum on line 3 and 4
I am lost. I just noticed line 23 and 24 have no minimum value. Please what can I do?
12/20/18
1333
views
4
comments
0
Abhishek Rangari
Level 22
Nagpur
Question about the task
Adapting multiple interfaces
Java Core
,
Level 9
,
Lesson 3
Under discussion
am I really missing something ?
I dont know why task is not getting verified even after getting the correct value from methods.. Can anyone help me in this task ?
12/21/18
1678
views
1
comment
0
Vishwambhar Awagan
Level 8
Pune
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Whats wrong in it I am not getting ?
getting an error in the after verifying
10/1/18
1947
views
5
comments
0
Prateek Mishra
Level 8
Bhopal
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
My code works flawlessly, still its not passing!
My code is not not satisfying any conditions, i don't know why? Please help!
12/21/18
1419
views
4
comments
0
Md Bilal
Level 7
Lucknow
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
why conditions are not getting fulfilled?
public class Solution { public static void main(String[] args) throws Exception { //write your code here int[] a = new int[15]; int sum1=0; int sum2=0; BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); for(int i=0;i<1
10/17/18
1720
views
5
comments
0
Djordje
Level 19
Question about the task
Spaces
Java Core
,
Level 8
,
Lesson 11
Under discussion
What am I doing wrong? Thanks.
public class Solution { public static void main(String[] args) { try{FileInputStream stream = new FileInputStream(args[0]); int n1 = 0; int n2 = 0; int a; while (stream.available() > 0) { a =stream.read(); n1 += a; Strin
12/12/18
1897
views
6
comments
0
Hankster
Level 9
Cleveland
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
public Woman wife;
I managed to get the solution right, but there are things about the code I don't understand. For example, the line: public Woman wife; Is that simply declaring a new variable of type Woman? If so, could this and the code from the solution be combined as: public Woman wife = woman; ? And
12/5/18
1592
views
2
comments
1
Show more
1
...
354
355
356
357
358
...
374
Please enable JavaScript to continue using this application.