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
Dmitri
Level 22
Seversk
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Run button of the IDEA
Why Run button of IDEA (green triangle) runs not current code opened on the screen, but previous?
9/16/20
1022
views
4
comments
0
Dmitri
Level 22
Seversk
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
My program works ok
My program works ok and I do initialize the list of Strings.
10/20/20
679
views
2
comments
0
Dmitri
Level 22
Seversk
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Resolved
what is wrong with this initialization?
What is wrong with this initialization? Is it a sort of bug in the system?
10/20/20
537
views
1
comment
0
Dinesh
Level 7
Delhi
Under discussion
Unable to understand the output of Bold and Underlined statement. In my opinion it must not print this line instead It should print the line that is strikethrough in the program.
import java.lang.Math.* ; class Statements{ public static void main(String[]args){ int x = 3; String name = "Dirk"; x = x * 17; System.out.println("x is " + x); double d = Math.random(); while (x > 12) { x = x-1; System.out.print("x is " + x); } for (x = 0; x < 10; x = x + 1
10/22/20
600
views
2
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Need help on last task
I'm confused on what to do for the last task. Could someone please guide me.
7/4/20
740
views
1
comment
2
Anitamalina
Level 18
København
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
condition fails: If a triangle with the specified sides could exist, you need to display: "The triangle is possible."
hm.. I can't figure out, what is wrong here? I can't fulfil this condition: If a triangle with the specified sides could exist, you need to display: "The triangle is possible." any hints ?
10/19/20
605
views
3
comments
0
Aleksandr
Level 22
Moscow
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Code works with negative, positive, result fine, but not pass
Can you help please, I don't know where I am wrong.
10/15/20
909
views
4
comments
0
Chris
Level 19
Newark
Question about the task
Family census
Java Syntax
,
Level 7
,
Lesson 12
Resolved
I get the right output but it wont pass
So when I ran the solution in intellij I literally got the right solution. I put null values for the Human father and Human mother reference which I think may be the issue because I think it may be secretly asking me to reference both constructors(which I don't understand). If that's the case I stil
10/21/20
1152
views
6
comments
0
manoj deo
Level 3
Jakarta
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Resolved
why is it not fulfilling the the condition??
what's the problem??
9/1/18
1976
views
4
comments
0
hidden #10661150
Level 3
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
Help please!
I don't know wats wrong with my code........
10/22/20
702
views
1
comment
0
Ian De Bie
Level 28
Austin
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Under discussion
Can someone tell me why my code doesn't pass?
I am stuck, because when I test on my IDE, I get the proper output. Is there an edge case I need to account for?
10/22/20
597
views
1
comment
0
Maria
Level 22
Moscow
Question about the task
Improving functionality
Java Syntax
,
Level 5
,
Lesson 12
Resolved
I think I passed, but..no
Why I can not use arrays? Please, help////
10/22/20
584
views
2
comments
0
Anatoly
Level 17
Question about the task
HashMap of cats
Java Syntax
,
Level 8
,
Lesson 3
Resolved
what is wrong?
Everything is works, but compiler don't want to read it, are any ideas what is wrong here?
10/20/20
807
views
3
comments
0
Valuev Nutt
Level 4
Chiba
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What is going on
Appreciate the advice if you have any
10/22/20
450
views
1
comment
0
marcus Simoes
Level 13
Dortmund
Question about the task
A name is a name
Java Syntax
,
Level 4
,
Lesson 16
Resolved
Hey guys im not sure what im doing wrong here. A help is much appreciated.
package com.codegym.task.task04.task0443; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String name = reader.readLine(); int month = Integer.parseInt(rea
10/21/20
684
views
4
comments
0
Neha Anjum
Level 6
Hyderabad
Question about the task
Do we have a pair?
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Can someone tell me the reason for this error...???
import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int a = in.nextInt(); int b = in.nextInt(); int c = in.nextInt(); if( a == b){ System.out.printl
9/17/18
2468
views
7
comments
0
Youngsan
Level 41
Seoul
Question about the task
Mirror image
Java Core
,
Level 9
,
Lesson 11
Resolved
Not verified?
Please help me!
9/15/20
485
views
2
comments
0
msantagiulianab
Level 26
London
Question about the task
Mirror image
Java Core
,
Level 9
,
Lesson 11
Under discussion
My code is attached. Please help.
package com.codegym.task.task19.task1926; /* Mirror image 1. Read a file name from the console. Read the contents of the file. 2. For each line in the file: 2.1. reverse the order of all characters. 2.2. display the result. 3. Close the streams. Example input file: I'm a programmer. Amigo Examp
11/4/19
1208
views
2
comments
0
dhanush
Level 30
Chennai
Question about the task
Long words
Java Core
,
Level 9
,
Lesson 11
Resolved
need help
How can i remove the last element without using StringBuilder data while(br.ready){ String s = br.readLine(); String[] str = s.split(" "); for(String s1 : str){ if(s1,length()>6){ bw.write(s1+","); } } } it almost does the same thing but can't delete the last element.
8/31/20
561
views
6
comments
0
yehuda b
Level 23
Beersheba
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Resolved
code works fine with my files
is it the try\catch block that's keeping it from validating?
9/14/20
735
views
6
comments
0
Ian De Bie
Level 28
Austin
Question about the task
Words with numbers
Java Core
,
Level 9
,
Lesson 11
Resolved
Why doesn't my code pass?
it works fine for my test cases? is there an edge case i am missing, or what can you tell me is wrong with my code?
10/21/20
559
views
2
comments
0
Ivan
Level 22
Nope
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Resolved
Be sure that the lines list has the REMOVED label with the required lines in the correct places.
Guys, Can you help me out here? I can't understand how to fix my code exactly...
4/1/20
1668
views
8
comments
0
Rich
Level 23
San Diego
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Resolved
right output, not meeting last 3 criteria
it looks right, but if I could get a tiny hint at where my bug is I would appreciate it.
5/2/20
1399
views
3
comments
0
Sergiu
Level 1
Iasi
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
not passing "The program should display the maximum of the N entered numbers."
What's the issue on my end? I'm not passing "The program should display the maximum of the N entered numbers." manually tested it and seems fine... ty
1/4/20
1346
views
4
comments
0
Etienne Bélanger
Level 34
Longueuil
Question about the task
Punctuation
Java Core
,
Level 9
,
Lesson 5
Resolved
The 5th condition doesn't pass. Is my regex bad?
The 5th condition doesn't pass. Is my regex bad? The result to this seems fine on my side: line = line.replaceAll("[^A-Za-z0-9_]","");
1/24/20
1256
views
3
comments
0
Agustin Jauregui
Level 22
Auckland
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Resolved
I don't get what's wrong...
2nd and last requirements are failing
10/21/20
451
views
3
comments
0
Abhishek Rangari
Level 22
Nagpur
Question about the task
The richest
Java Core
,
Level 9
,
Lesson 11
Under discussion
Can anyone help me in this task ?
last condition is not satisfying...
12/9/18
1741
views
3
comments
0
msantagiulianab
Level 26
London
Question about the task
The richest
Java Core
,
Level 9
,
Lesson 11
Under discussion
I am using a TreeMap, therefor it should print in alphabetical order. what am I doing wrong? Please help.
package com.codegym.task.task19.task1920; /* The richest The first parameter of the main method is a file name. Each line of the specified file has the following format: name value where [name] is a String and [value] is a double. [name] and [value] are separated by a space. Find the sum of all t
11/4/19
1584
views
6
comments
0
Md Bilal
Level 7
Lucknow
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
why last condition is not getting completed?
public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int[] a = new int[20]; int[] b = new int[10]; int[] c = new int[
10/17/18
2460
views
3
comments
1
Шарох
Level 12
Question about the task
Triangle of eights
Java Syntax
,
Level 4
,
Lesson 13
Resolved
Hi Coders !
I'm in trouble with loops.what should I do? It's little hard.
10/21/20
1092
views
11
comments
0
Show more
1
...
124
125
126
127
128
...
374
Please enable JavaScript to continue using this application.