AI Academy
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
JareBear93
Level 4
Question about the task
Price of apples
Java Syntax
,
Level 3
,
Lesson 4
Resolved
Would someone be willing to explain what I'm missing?
As far as I can tell, I'm either out of my mind, or this is fishy. My program displays text on the screen. ✅ The addPrice method does NOT display text on the screen. ✅ The applePrice variable is static and initialized to zero. ✅ addPrice is only being called twice. ✅ The cost increases the cost of
8/16/23
426
views
2
comments
0
Andre M.
Level 4
Glenn Dale
Question about the task
Price of apples
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
First passed-in value ignored...
I know that the main class is passing-in values. The first value passed in, 50, was canceled out and replaced with 100. How do I keep the 50 value?
12/17/21
1415
views
3
comments
0
FelixUjo
Level 35
Gijón
Question about the task
There are a lot of resources
Java Syntax
,
Level 16
,
Lesson 3
Resolved
Something is missing and I must have an old version of Java.
Something is missing and I must have an old version of Java.
8/15/23
341
views
2
comments
0
Hansha
Level 7
Question about the task
Triangle
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
Error when verifying
When I press verifiy it just says UNKNOWN-ERROR. Help package en.codegym.task.pro.task03.task0306; import java.util.Scanner; /* Triangle */ public class Solution { private static final String TRIANGLE_EXISTS = "It's a triangle"; private static final String TRIANGLE_DOES_NOT_EXIST = "I
6/11/23
738
views
3
comments
0
FelixUjo
Level 35
Gijón
Question about the task
Exception when working with numbers
Java Syntax
,
Level 15
,
Lesson 6
Under discussion
I don't know what they want me to do.
I don't know what they want me to do.
8/12/23
367
views
1
comment
0
FelixUjo
Level 35
Gijón
Question about the task
Catching checked exceptions
Java Syntax
,
Level 15
,
Lesson 8
Resolved
I think I have tried all the options
I think I have tried all the options.
8/13/23
483
views
2
comments
0
Harshit Garg
Level 34
Chandigarh
New
bitwise shift
why are there 2 zeros in left rather than just one? pls tell. 0b00000011 << 20 0b001100000000000000000000
8/13/23
304
views
0
comments
0
Павел Артеменко
Level 41
Krasnodar
Question about the task
2048 (part 6)
Java Multithreading
,
Level 10
,
Lesson 15
Resolved
Bugged?
Consolidate and Merge - it's movement to the left, if on any row they succeeded, then there was a movement and we need to add new tile. Or am I wrong somewhere?
5/28/19
1875
views
4
comments
0
Amantai
Level 47
Shymkent
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
What's not to like about CG?
Contents of input file: Okinawa Denver RioDeJaneiro Washington Auckland Kalamazoo Norfolk Console output: Washington Norfolk Kalamazoo Okinawa Auckland Denver RioDeJaneiro
8/9/23
383
views
4
comments
0
Toms Stašulāns
Level 24
Question about the task
Minimum or maximum
Java Syntax
,
Level 13
,
Lesson 2
Under discussion
Why is this not accepted?
Why is this not accepted?
8/9/23
432
views
3
comments
0
Niladri pradhan
Level 33
Mumbai
Question about the task
Derive a specific number
Java Multithreading
,
Level 10
,
Lesson 8
Under discussion
I have solved it but wants to improve my solution .
If have any suggestion please recommend. Here is my solution as codegym is not allowing to attach my solution public void createExpression(int number) { String num = convertToTerinanry(number); String perNum = convertToPrefectTerninary(num); String result = String.valueOf(
1/22/20
1210
views
2
comments
0
Reyaz Ahmad Bhat
Level 4
Anantnag Jammu And Kashmir
Question about the task
Let's compare strings
Java Syntax
,
Level 3
,
Lesson 9
Under discussion
Solution
public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.nextLine(); String b = sc.nextLine(); if(a.equals(b) == true) { System.out.println("The strings are the same"); } else{
2/28/23
429
views
2
comments
0
Harshit Garg
Level 34
Chandigarh
Question about the task
Remove duplicate strings
Java Syntax
,
Level 6
,
Lesson 4
Resolved
pls help
The program runs correctly with the correct output. Cant find any mistakes.. The solution given is: but mine is similar package en.codegym.task.pro.task05.task0508; import java.util.Scanner; /* Remove duplicate strings */ public class Solution { public static String[] strings; public st
8/7/23
654
views
4
comments
0
Amantai
Level 47
Shymkent
Question about the task
Build a WHERE query
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
Please, tell me where I misunderstand the condition of this task?
Here are 4 inputs along with their results: Option 1: {country=United States, city=Los Angeles, name=Johnson, age=33} name = 'Johnson' and country = 'United States' and city = 'Los Angeles' and age = '33' Option 2: {country=United States, city=Los Angeles, name=null, age=33} country = 'United State
8/7/23
462
views
3
comments
0
Amantai
Level 47
Shymkent
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
Help is needed
File contents: rat tar tart a a tot tot tot level code is CodeGym si level Console output: rat tar a a tot tot level level is si What I did wrong?
8/6/23
376
views
5
comments
0
Harshit Garg
Level 34
Chandigarh
Question about the task
Remove duplicate strings
Java Syntax
,
Level 6
,
Lesson 4
Resolved
There is no mistake!
program runs fine, but on verifying, the last requirement is a red cross. pls reply even if you have simplest idea why this is happening..
8/6/23
362
views
3
comments
0
priyantha s
Level 8
Question about the task
Combining arrays
Java Syntax
,
Level 6
,
Lesson 2
Under discussion
i write this code and it worked but it say its wrong
resultArray = new int[firstArray.length + secondArray.length]; int y =10; for (int i = 0; i < firstArray.length; i++){ resultArray[i] =firstArray[i]; } for (int i = 0; i < secondArray.length; i++){
11/20/22
691
views
3
comments
1
Angel Stefan
Level 23
Sibiu
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Resolved
I am stuck!
I can't pass the condition no 3 because i don't include files from subdirectorys. Any hint? Tk you!
3/16/22
905
views
5
comments
0
PeterC
Level 28
France
Question about the task
Is anyone there?
Java Syntax
,
Level 6
,
Lesson 8
Resolved
What am I doing wrong?
It's a simple task and my solution works fine in the IDE.
9/25/21
975
views
8
comments
0
🤥匹诺曹
Level 8
Jinan
Question about the task
Combining arrays
Java Syntax
,
Level 6
,
Lesson 2
Under discussion
what is Implement the main(String[]) method in accordance with the task conditions. mean?
jesus, where goes wrong in my code? please help
9/18/22
656
views
1
comment
2
FelixUjo
Level 35
Gijón
Question about the task
Remove all people born in the summer
Java Syntax
,
Level 14
,
Lesson 7
Under discussion
Problem with the summer months
I dn't know if in California the summer months are different.
8/5/23
394
views
2
comments
0
Andrew
Level 29
Seattle
Question about the task
I LOVE CodeGym!
Java Multithreading
,
Level 2
,
Lesson 7
Under discussion
Bugged or wrong?
Tried with %s for the last argument too. And tried %n at the end just to make sure. Output: "I LOVE CodeGym!"
4/5/19
2103
views
11
comments
1
Harshit Garg
Level 34
Chandigarh
Question about the task
Three numbers
Java Syntax
,
Level 3
,
Lesson 5
Resolved
I think my output is correct...
Then why is it saying
8/2/23
545
views
5
comments
0
Harshit Garg
Level 34
Chandigarh
Question about the task
Let's take your temperature
Java Syntax
,
Level 3
,
Lesson 5
Resolved
What is to be done?
how to do without if? ternary?
8/2/23
409
views
2
comments
0
Amantai
Level 47
Shymkent
Question about the task
Calculating salaries
Java Core
,
Level 9
,
Lesson 11
Resolved
Now where is the mistake?
File contents: Brown 1.44 Baxter 2.75 Peterson 2 Brown 3.14 Smith 6.6 Baxter 1.35 Peterson 3.1 Brown 2.02 Console output: Baxter 4.1 Peterson 5.1 Brown 6.6 Smith 6.6
7/19/23
354
views
2
comments
0
DEEMA
Level 3
Under discussion
Hi guys
I need your help Because I am on stuck in level 3 lesson 3 and 4 I don’t understand anything I need videos or anything please 🙏
7/30/23
352
views
4
comments
0
Amantai
Level 47
Shymkent
Question about the task
Equals and HashCode
Java Multithreading
,
Level 1
,
Lesson 5
Resolved
Need advice
It seems to me that the expressions if (obj == null || getClass() != obj.getClass()) return false; and if (!(obj instanceof Solution)) return false; are equivalent. Is not it?
8/1/23
663
views
4
comments
0
DEEMA
Level 3
Under discussion
I need help
Hi guys How ca I stop my subscription? Because I can’t learn these days and I don’t want my subscription finishe without learn Please answer me
7/29/23
383
views
3
comments
0
Jan Václavík
Level 3
Under discussion
More about variable scopes
Hey guys, So... I'm stuck on the lesson 4 in level 3. I've read the thing like 20 times over and I still feel like I don't fully understand it. I mean... I feel like I don't even fully understand the structure of Java (Class, object, variables, methods) - is is like a ladder? After that - the
7/3/23
337
views
1
comment
0
Anonymous #11313020
Level 1
Under discussion
how to draw flag
what is method
3/12/23
456
views
1
comment
0
Show more
1
...
23
24
25
26
27
...
375
Please enable JavaScript to continue using this application.