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
James
Level 41
Not in list
Question about the task
CashMachine (part 12)
Java Collections
,
Level 9
,
Lesson 15
Resolved
What's wrong here?
I've ran the program several times and it appears to pass all the task conditions but it will not verify. I eventually tried to use the model solution, but even that won't pass. Please help me figure out what's wrong.
6/12/21
644
views
0
comments
0
Victor Omoha
Level 8
Raleigh
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
i need help with passing the 4th requirement
package com.codegym.task.task07.task0713; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Playing Javarella */ public class Solution { public static void main(String[] args) throws Exception { //write your code h
9/2/21
544
views
2
comments
0
Zach
Level 22
Fort Collins
Question about the task
Sequential file output
Java Core
,
Level 6
,
Lesson 13
Under discussion
Not passing the 5th task
Not sure what I need to change. Any help is appreciated. Thanks in advance.
9/2/21
602
views
1
comment
0
Zach
Level 22
Fort Collins
Question about the task
The early bird gets the worm
Java Core
,
Level 6
,
Lesson 13
Under discussion
I am probably overthinking this question....
Appreciate if you could point me in the right direction. Thanks in advance.
9/2/21
633
views
2
comments
0
Zach
Level 22
Fort Collins
Question about the task
Snake (Part 17/20)
Games
,
Level 0
,
Lesson 1
Resolved
Why is the last task failing?
I am confused why my last task is not passing?
7/15/21
501
views
1
comment
0
Zach
Level 22
Fort Collins
Question about the task
Racer (Part 5/28)
Games
,
Level 0
,
Lesson 5
Under discussion
Can't pass the second to last task??
I'm confused as to why they are using these values as well this.width = matrix[0].length; this.height = matrix.length;
9/1/21
590
views
2
comments
0
Alexandru
Level 22
High Blantyre
Question about the task
Minesweeper (Part 7/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Works in browser but not on PC
When I run it in browser it runs perfectly When I run it on my pc instead of numbers it displays some strange characters and it is not displaying the bomb icon. when it runs on pc I also get an error this displayed as some kind of error: 2021-08-26 11:37:50.661 java[7584:930059] CoreText note: C
8/26/21
650
views
1
comment
0
Andrea
Level 20
Question about the task
Catching checked exceptions
Java Syntax
,
Level 9
,
Lesson 8
Resolved
Not sure what the issue is
In the code the handleExceptions method is calling method1, method2 and method3. I am using one try catch block The catch statement is catching and printing what exceptions are caught. Therefore not sure what the actual issue could be that's causing the validation to fail Please advise.
8/11/19
2378
views
8
comments
3
Stian Eggum Tellnes
Level 15
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
Invalid method declaration?
I know I solved this one a bit differently than the "main solution" but I think this should work. However I'm getting an invalid method declaration. anyone know why?
8/31/21
541
views
2
comments
0
Ahmad
Level 7
Detroit
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Resolved
Third requirement not met. Not sure why
Hi, The program works but for some reason the 3rd requirement is not met. I created two int arrays of 10 in size. What's the issue?
8/30/21
726
views
4
comments
0
Andrei
Level 41
Question about the task
Is a palindrome possible?
Java Collections
,
Level 9
,
Lesson 9
Resolved
Can anyone please help me understand the algorithm to this solution?
First, when adding the char to the array, why does it add +1 ? Why is the algorithm looking to see if the char is even or odd? package com.codegym.task.task39.task3908; /* Is a palindrome possible? */ public class Solution { public static void main(String[] args) { } public stat
7/30/21
1253
views
13
comments
0
Anthony Chalk
Level 30
London
Question about the task
Catching custom exceptions
Java Syntax
,
Level 9
,
Lesson 8
Resolved
Please help
I'm not actually sure what this code is doing, I've somehow managed to pass most of the requirements. I have no idea how to pass the last one though
11/19/19
2299
views
9
comments
4
Janet
Level 2
Orlando
Under discussion
No encuentro los ejercicios
A partir del nivel 2 ya no me deja hacer los ejercicios. Alguien puede ayudarme por favor.
6/1/21
410
views
1
comment
0
Shashikant Sharma
Level 8
Surat
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
What's Wrong In The Code?
I Got The Desired Output: Grandfather Grandmother Still Two Condition Are Not Fulfilled.
8/28/21
609
views
5
comments
0
scriptKing
Level 7
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
mine is working but wont complete the exersize what have i missed
package com.codegym.task.task05.task0502; /* Implement the fight method */ public class Cat { public int age; public int weight; public int strength; public Cat() { } public boolean fight(Cat anotherCat) { //write your code here if (this.strength> an
8/29/21
938
views
1
comment
0
JIng
Level 10
Richmond
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Resolved
I need help.
could someone correct my mistakes?
3/13/19
2481
views
5
comments
0
Indranil Chakraborty
Level 3
United Kingdom
Question about the task
Display right away
Java Syntax
,
Level 3
,
Lesson 3
Resolved
Help🤨
It says I’m missing. )
8/25/21
735
views
3
comments
2
Shashikant Sharma
Level 8
Surat
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Resolved
What's Wrong With The Code?
I Got The Desired Output But The Third Requirement is missing. I Have No Idea of What They Want Me To Do? Can Anyone Explain Me?
8/25/21
994
views
9
comments
0
Khongpak Phupkdee
Level 15
Chiangrai
Question about the task
User, loser, coder and programmer
Java Core
,
Level 4
,
Lesson 8
Resolved
Why in Person.java has implement by itself?
public interface Person { class User implements Person { void live() { System.out.println("I usually just live."); } } class Loser implements Person { void doNothing() { System.out.println("I usually do nothing."); } } cl
8/27/21
972
views
8
comments
0
M suleman
Level 20
Lahore
Question about the task
Extending AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Under discussion
plz help,last condition is not satisfy
line = reader.readLine(); String s="Y"; if(line.equals(s)) break; } isr.close(); reader.close(); }
11/12/18
1634
views
3
comments
0
Stian Eggum Tellnes
Level 15
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Why am I getting all these exception errors?
I feel like I've solved the task as far as I can, but I'm not sure why I'm getting all these exception errors. I'm guessing it has something to do with either my loop never ending, or the fact that it can't handle parsing empty fields or something when it runs out of numbers. Any ideas?
8/27/21
853
views
2
comments
0
hidden #10618197
Level 16
Question about the task
Snake (Part 20/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Error
Yesterday I fixed minesweeper and 2048. But Snake still doesn't run, I get that: Error: Could not find or load main class lib Caused by: java.lang.ClassNotFoundException: lib Is it looking for a class named "lib"? 6 months ago it worked well, but now? The classpath is equal to the other games bu
8/26/21
507
views
1
comment
0
Raj Mishra
Level 2
India
Question about the task
Robot wars
Java Core
,
Level 3
,
Lesson 11
Under discussion
hitCount value is not ncreasing, could not understand the logic
I dont understand, every time doMove(-,-) method is called, my hitCount remains 0. So only hand as body bodypart is called. Though its static, it should retain the last changed value. But in my case every time it's becoming 0. Could you please help with what I am missing here?
8/27/21
886
views
2
comments
0
Cinthya Cabanzo
Level 22
Bogota
Question about the task
Neo
Java Core
,
Level 3
,
Lesson 11
Resolved
My code runs but did not pass the verification.
My code runs but did not pass the verification.
6/7/19
2386
views
6
comments
0
jerry
Level 16
Earth C-137
Question about the task
Working with dates
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
setting the start day
how to set first day of the year for this(my) program correctly ? firstly tried and failed with: LocalDate now = LocalDate.now(); LocalDate firstDay = now.with(firstDayOfYear()); changed all to "set" still wrong output. thank you
8/27/21
687
views
1
comment
0
Edward Rickers
Level 15
Washington
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Why is the main function not void?
Also why is it at the bottom when it is usually at the top?
8/26/21
844
views
2
comments
0
Kaushik Datta
Level 2
Suri
Question about the task
Kind words for the teacher
Java Syntax
,
Level 0
,
Lesson 4
Resolved
do..while syntax
Trying to write an elegant code with do...while. please help
8/26/21
704
views
1
comment
0
Zach
Level 22
Fort Collins
Question about the task
Factory method pattern
Java Core
,
Level 6
,
Lesson 13
Under discussion
Why can't I access the ImageTypes??
I keep getting this error..... com/codegym/task/task16/task1631/ImageReaderFactory.java:7: error: cannot find symbol public static ImageReader getImageReader(ImageTypes type) throws Exception { ^ symbol: class ImageTypes location: class com.co
8/26/21
550
views
1
comment
0
Anitamalina
Level 18
København
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Under discussion
Scanner vs buffereader?
Can't I use a scanner ?
8/25/21
795
views
1
comment
0
Fabian Andiel
Level 9
Vienna
Question about the task
Rarest bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
Dont hava any idea?
Guys can you help me? I dont have any idea what is going wrong. best regards Fabian
2/1/20
2059
views
5
comments
0
Show more
1
...
62
63
64
65
66
...
374
Please enable JavaScript to continue using this application.