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
All quests
All levels
Any status
Questions about tasks
Hot
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.
11.08.2019
2182
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?
31.08.2021
415
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?
30.08.2021
585
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
30.07.2021
1048
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
19.11.2019
2107
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.
01.06.2021
327
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.
28.08.2021
491
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
29.08.2021
771
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?
13.03.2019
2330
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. )
25.08.2021
608
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?
25.08.2021
810
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
27.08.2021
768
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(); }
12.11.2018
1482
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?
27.08.2021
729
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
26.08.2021
396
views
1
comment
0
Raj Mishra
Level 15
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?
27.08.2021
709
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.
07.06.2019
2189
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
27.08.2021
538
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?
26.08.2021
680
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
26.08.2021
551
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
26.08.2021
394
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 ?
25.08.2021
637
views
1
comment
0
Fabian Andiel
Level 25
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
01.02.2020
1874
views
5
comments
0
Aswin Anand
Level 4
Under discussion
how to get dark matter without subscription
ansr
25.08.2021
339
views
0
comments
0
Edward Rickers
Level 15
Washington
Question about the task
10 thousand deletions and insertions
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Why is the remove function not working?
Does "b" not count as an item? Insert passed though...
24.08.2021
481
views
2
comments
0
Ryan Palmer
Level 20
Philadelphia
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Under discussion
Clarity
Sorry for my newb question but I am here to learn! I don't understand the set up of the task. Why are we reading a file from the console but also checking args? It says that the program is started with an argument - does that mean we are to assume that there will be data within the args array and
24.08.2021
718
views
10
comments
0
Victor Omoha
Level 8
Raleigh
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Resolved
i'm stuck
package com.codegym.task.task07.task0705; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; /* One large array and two small ones */ public class Solution { public static void main(String[] args) throws Exception { //write your code here in
24.08.2021
624
views
4
comments
0
Jyothi
Level 20
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Resolved
overriding parent class getDescription validation failure. How can I correct this?
task14.task1408 - Chicken factory Overriding parent class getDescription validation failure. How can I correct this?
20.12.2018
2038
views
4
comments
0
scriptKing
Level 7
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
ok mine works but didnt use abs not sure why -a would achieve anything?
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 ac = a - 10; int bc = b-10; if(a
22.08.2021
741
views
6
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
File in a static block
Java Core
,
Level 5
,
Lesson 12
Under discussion
File not found exception
My source file for the lines read is located in the same folder as the rest of the files for the project (as you can see, it is included in the files with my attached solution code). I don't understand why it's not finding it. I should be able to access it with a relative path (just the filename). I
20.08.2021
420
views
1
comment
0
Show more
1
...
59
60
61
62
63
...
371
Please enable JavaScript to continue using this application.