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
Matvey
Level 0
Under discussion
Müller-Lyer illusion in Java
I am taking an AP computer programming class and one of the codes I have to write is as follows, could someone please help me and write it because I am quite stuck, thank you: The Müller-Lyer illusion is caused by an image that consists of two parallel line segments. One line segment looks like an
07.09.2021
384
views
4
comments
0
Dinesh
Level 7
Delhi
Under discussion
Unable to print the default value of the char data type
class DefaultValues{ static boolean bl; static byte b; static short s; static int i; static long l; static float f; static double d; static char ch; static String str; public static void main(String[]args){ System.out.println("Default value of Boolean:->"+
06.09.2021
348
views
1
comment
0
user 2710
Level 4
Question about the task
Task with percentages
Java Syntax
,
Level 3
,
Lesson 3
Resolved
why 1.1?
i solve the task but i dont understand why return i * 1.1; how 1.1 How did you get 1.1 in detail?
05.09.2021
447
views
3
comments
0
user 2710
Level 4
Resolved
why is 17/100 not 0.17? result 0.0?
i writed double x = (17/100) * 888; return x . as a result 0.0 . why even if only x = 17/100 , will be as result 0.0 ? i already finished this task, but I am very interested in why this is so.
03.09.2021
257
views
2
comments
0
user 2710
Level 4
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
i did it!!!
without loops. like in task.
06.09.2021
465
views
3
comments
0
Zach
Level 22
Fort Collins
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Under discussion
Can't get the last task to pass....
Any help is appreciated.
06.09.2021
440
views
3
comments
0
Zach
Level 22
Fort Collins
Question about the task
Clew
Java Core
,
Level 6
,
Lesson 13
Under discussion
Only Thread2 is passing at the moment....
Any help would be appreciated. Thanks in advance.
05.09.2021
307
views
1
comment
0
Zach
Level 22
Fort Collins
Question about the task
Clew
Java Core
,
Level 6
,
Lesson 13
Resolved
Static Threads??
Am I on the right track? Do you have to make the Threads static if you put them in a static block. Thanks in advance.
02.09.2021
651
views
2
comments
0
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.
12.06.2021
435
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
02.09.2021
348
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.
02.09.2021
420
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.
02.09.2021
444
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?
15.07.2021
303
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;
01.09.2021
406
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
26.08.2021
385
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.
11.08.2019
1942
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
342
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
447
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
837
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
1949
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
252
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
391
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
678
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
2187
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
536
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
579
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
643
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
1352
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
596
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
313
views
1
comment
0
Show more
1
...
53
54
55
56
57
...
367
Please enable JavaScript to continue using this application.