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
Anjali Sharma
Level 6
Chennai
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I don't know why this is showing error
Any suggestions ?
10/3/18
1826
views
5
comments
0
hidden #10366080
Level 5
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
this is a working code, but i need optimization
if(year % 400 == 0){ System.out.println("Number of days in the year: " + 366); }else if(year % 100 == 0 && year % 400 != 0 ){ System.out.println("Number of days in the year: " + 365); }else if(year % 4 == 0){ System.out.println("Number of
11/6/18
1630
views
6
comments
0
Vatsal Patel
Level 15
Naperville
Question about the task
Good or bad?
Java Syntax
,
Level 4
,
Lesson 4
Resolved
I am not sure what the issue is?
The code logic works but I am failing in the requirements.
1/23/19
2520
views
7
comments
0
Brandon Nicolle
Level 5
Edmonton
Question about the task
Dividing is good
Java Syntax
,
Level 3
,
Lesson 1
Under discussion
I don't understand
How is the div function being ran 3 times by coding System.out.println??? I'm not actually calling the div function, I'm only asking the compiler to print out a / b, so why is it doing it 3 times? I don't understand how the compiler pulls all this stuff together. Can somebody explain this to me in
8/10/19
1273
views
4
comments
0
Niladri pradhan
Level 33
Mumbai
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
Couldn't pass 4th condition
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; public class solution { public static void main(String[] args) throws IOException {
8/4/19
1060
views
2
comments
0
علي حجار
Level 18
Bursa
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
help
output is currect , but i can ou got it
12/4/18
2240
views
7
comments
0
harshshah
Level 9
Gandhinagar
Question about the task
Display right away
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
how to use assigment operator
I cannot find the error in the this code.
2/21/19
2371
views
5
comments
0
shovan
Level 22
Kolkata
Question about the task
Turnip
Java Core
,
Level 3
,
Lesson 11
Under discussion
it does not display anything
why IndexOutOfBounds Exception?
6/30/19
1613
views
2
comments
2
KARAN BHOITE
Level 15
Nagpur
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
plz tell me...
i gave up.
8/10/19
1432
views
3
comments
0
季军
Level 38
Shanghai
Question about the task
Adding a file to an archive
Java Collections
,
Level 1
,
Lesson 6
Under discussion
pls help me
Don't know what's wrong with my solution, it run just as the condition on my computer, but still cannot pass the test. It seems that some kind of exception occured, but iI cannot figure it out...
8/10/19
1378
views
2
comments
0
sailaja
Level 3
Hyderabad
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
what's wrong in my code
package com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); Strin
7/30/19
1784
views
4
comments
0
Picvajzmen
Level 20
Belgrade
Question about the task
Different methods for different types
Java Core
,
Level 5
,
Lesson 12
Resolved
works but will not verify..
im guessing its because of the way it checks for verification but i don't know.
7/24/19
1575
views
3
comments
0
Shaun Forster
Level 14
United Kingdom
Question about the task
Dividing by zero
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Keeps saying method does not exist, what am I missing?
Won't validate because it thinks I do not have the divideByZero method when I clearly do. I must be missing something obvious.
8/13/19
1787
views
2
comments
1
Ajinkya
Level 0
Question about the task
Kind words for the teacher
Java Syntax
,
Level 0
,
Lesson 4
Resolved
what is the error in the program?
I am unable to identify the mistake in the program
8/1/18
1965
views
5
comments
1
Ahmed
Level 23
Amsterdam
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Resolved
Doesn't validate switch statement
Can anyone help out here? I already used switch statements but the validator doesn't recognize it.
8/13/19
1415
views
2
comments
0
Gábor
Level 14
Budapest
Question about the task
Flip the array
Java Syntax
,
Level 7
,
Lesson 4
Resolved
println method not showing anything.
Just when it is in the for merthod. if it's outside then showing the value of the needed array. Also in both case no error is coming..
8/8/19
1447
views
3
comments
0
Joy Majumdar
Level 16
Kolkata
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Not matching the req why ?
point out
4/16/19
1432
views
3
comments
0
Deepak Chandra
Level 16
Visakhapatnam
Question about the task
Identical words in a list
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Help please
Hey guys everything is fine with my code it works and is verified succesfully. I am posting this so that you guys could suggest me any further modifications in my code(i.e if there is some unnecessary code, or may be i could have written some logic better etc). Go through my code and suggest me if
6/24/19
1581
views
4
comments
0
Ritik Singh
Level 8
Gwalior
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
what is the error here?
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 { //write your code here int ar
8/10/19
1352
views
1
comment
0
Joe
Level 8
Ottawa
Under discussion
Not sure what is missing.
I can't complete 4th requirement - The min method must return the minimum of the 5 passed numbers. If there are several minimum numbers, return any of them. Not sure what I'm missing... package com.codegym.task.task05.task0531; import java.io.BufferedReader; import java.io.InputStreamReader; /*
8/12/19
1060
views
1
comment
0
Bob Junior Bastien
Level 3
Columbus
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Can someone help me please . my prog compiled very well and executed the task , but the application mention error
Can someone help me please . my prog compiled very well and executed the task , but the application mention error
8/12/19
1338
views
2
comments
0
hacks patel
Level 20
Ahmedabad
Question about the task
What's today's date?
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Just Month is in lowerCase
My output is look like Aug 18, 2013 help me to print month in upperCase
1/5/19
3025
views
5
comments
3
Tej
Level 9
Hyderabad
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
anything wrong?
public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { // write your code here int sub = abs( a); int sub1 = b - 10; if(sub>sub1)
8/11/19
1129
views
1
comment
0
Anthony Chalk
Level 30
London
Question about the task
Minesweeper (Part 1/16)
Games
,
Level 0
,
Lesson 0
Under discussion
What am I doing wrong?
I'm not sure why this isn't working, can someone please help? Thank you
8/4/19
2152
views
7
comments
0
Denis
Level 22
Kharkiv
Question about the task
Default values
Java Core
,
Level 5
,
Lesson 9
Under discussion
what is wrong, guys
help me pls
6/26/19
1545
views
2
comments
0
Ornela
Level 11
Tirana
Question about the task
Mercantile intentions
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Problems with IntelliJ Idea
I want to run this code in IntelliJ Idea, and it keeps giving me an error, and directly another task that i didn't finish appears. What can i do to run just this code and ignore the other task? On the codegym compiler this works fine, but i wanted to become used to IntelliJ idea.
2/6/19
2175
views
9
comments
1
Denis
Level 22
Kharkiv
Question about the task
A big fox is still a fox
Java Core
,
Level 3
,
Lesson 4
Under discussion
help me pls with this
a cant understand what is wrong
6/24/19
1678
views
1
comment
0
Andrea
Level 20
Question about the task
Catching unchecked exceptions
Java Syntax
,
Level 9
,
Lesson 8
Resolved
Seeing a similar as the previous task
The way the code is written I thought I was meeting the requirements: -calling all three methods in the handleExceptions method -using only one try catch block -printout out of the exceptions Not sure what else could I am missing. Please advise.
8/11/19
1644
views
1
comment
0
Anthony Chalk
Level 30
London
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Completed but still don't undersatnd
So the code worked but I don't understand why. There are two lines of input so how does the program know which line I'm referring to?
8/8/19
1292
views
2
comments
0
SefoBe
Level 16
Paris
Question about the task
HashMap of 10 pairs
Java Syntax
,
Level 8
,
Lesson 3
Under discussion
Correct output but not accepted
Why is my output correct but the solution is not accepted ?
8/8/19
1357
views
3
comments
0
Show more
1
...
290
291
292
293
294
...
374
Please enable JavaScript to continue using this application.