Promotion
CodeGym University
Java FullStack
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
ProgrammerNewbie
Level 14
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
Last condition fails even when I trim the string.
Hi there, The last condition fails. I tried it with several inputs and it runs well but it will not verify. The mentor recommended: "Consider the fact that words might be separated by more than one space." That is why I trim the string after reading it. However, it will not verify.
7/3/19
1874
views
4
comments
0
Denis
Level 22
Kharkiv
Question about the task
Factory method pattern
Java Core
,
Level 6
,
Lesson 13
Under discussion
Pls give me a answer
Help me pls guys(
6/27/19
1729
views
3
comments
0
Aswini
Level 4
Chennai
Question about the task
Name register
Java Syntax
,
Level 4
,
Lesson 2
Under discussion
verified successfully but showing empty while clicking Run
package com.codegym.task.task04.task0406; /* Name register */ public class Cat { private String fullName; public void setName(String firstName, String lastName) { String fullName = firstName + " " + lastName; this.fullName=fullName; } public static void main(String
12/6/18
2275
views
8
comments
0
Earil
Level 25
Paris
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Resolved
The code seems to be working fine when I test it, and I get a weird validation error : "The file output stream was not closed", while I'm quite sure I properly closed it. Does anyone understand ?
Hello everyone, I think the code is working properly (at least I think my testing went fine according to the specs in condition.tcs, however the task is to being validated and I get the following error : The file streams must be closed. (Recommendation from your mentor : the file output stream was
7/2/19
1694
views
2
comments
0
Topor Dániel Bálint
Level 9
Targu-Mures
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Hello, I need help
My result keeps being in integer, can anybody help me ?
6/27/19
1572
views
4
comments
0
Divakar Reddy
Level 15
Nandyal
Question about the task
String array in reverse order
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
why am i not able to pass 3rd and 4th test cases
whats the problem in my code
7/3/19
1485
views
1
comment
0
Serg
Level 23
Tyumen
Question about the task
Hippodrome (part 11)
Java Multithreading
,
Level 1
,
Lesson 16
Under discussion
Why I have a mistake on the line
Why I have a mistake on the line game = new Hippodrome();
6/26/19
1203
views
1
comment
0
Iasu
Level 18
Question about the task
Exception invasion
Java Core
,
Level 4
,
Lesson 8
Under discussion
I don't understand the requirement 3 her....
What the problem here, I don´t see any exceptions twice in the list..
7/3/19
1669
views
1
comment
0
Vaishnavi
Level 8
Waukesha
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Why is this not working?
Whenever I try to run this code, I get this: java.lang.NullPointerException at com.codegym.task.task07.task0716.Solution.main(Solution.java:18) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.r
7/3/19
1419
views
1
comment
0
Pragati Singh
Level 7
Bangalore
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Why doesn't the last condition get fulfilled.Explain?
6/29/19
1477
views
2
comments
0
Deep Maheshwari
Level 10
Nanded
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
What's wrong with my code it's running finely?
I have run this code for custom test cases but while verifying it fails to even detect error.... Someone please help...
7/3/19
1302
views
1
comment
0
jothilearner
Level 7
Chennai
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What is the problem in my code ? I can't met the requirements of the task
package com.codegym.task.task04.task0415; /* Rule of the triangle */ import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner scanner = new Scanner(System.in); int a
6/5/19
1500
views
5
comments
0
Nithin
Level 35
Hyderabad
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
anyone pls help me with date format
last condition is not verifying
6/24/19
1662
views
2
comments
0
Online Learner
Level 6
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
can someone explain me about this task
what is in the task ??
7/3/19
1093
views
3
comments
0
Denis
Level 22
Kharkiv
Question about the task
Correct the bug. Classes and interfaces
Java Core
,
Level 9
,
Lesson 11
Under discussion
Help me pls
Need help
6/29/19
1346
views
1
comment
0
Stefan Craia
Level 3
Bucharest
Question about the task
Even numbers
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
Compilation problem
Any clues why is that ? in intelij works ... package com.codegym.task.task04.task0435; /* Even numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here for(int i = 0; i <= 100; i++){
7/2/19
1426
views
3
comments
0
Denis
Level 22
Kharkiv
Question about the task
Mirror image
Java Core
,
Level 9
,
Lesson 11
Under discussion
I need help
Pls give me a code for my full understanding. My code is empty, because i tired and delete her
6/29/19
1285
views
2
comments
0
Nobody
Level 37
Seattle
Question about the task
Build a tree (part 5)
Java Collections
,
Level 1
,
Lesson 15
Under discussion
I'm stuck
don't have any clue
6/10/19
1745
views
1
comment
0
Anonymous
Level 18
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Resolved
Can someone explain this task to me?
maybe just give me an output example, I can't exactly comprehend ,what we have to do
6/27/19
1391
views
2
comments
0
Anonymous
Level 18
Question about the task
Spaces
Java Core
,
Level 8
,
Lesson 11
Resolved
what's wrong?
.
6/24/19
1564
views
6
comments
0
Chinwe Ibegbu
Level 8
Accra
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
HELP
I have been stuck here for many a day. I keep getting Null Point Errors or something of the sort and I understand ish why I do but I cannot see a way out of it.
7/3/19
1461
views
7
comments
0
Mukesh Vudayagiri
Level 10
Ferokh
Question about the task
Feng Shui and statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
What's wrong.
Please explain what's mistake.
9/1/18
2147
views
8
comments
0
Jay
Level 17
Washington
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Trouble with Multiplication Table
I'm failing on the requirement of each line displaying 10 numbers with spaces in between. What am I missing? Your feedback is much appreciated.
7/2/19
1538
views
6
comments
0
Jay
Level 17
Washington
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Failing on last requirement. What am I missing?
The output seems to match the program requirements. Can anyone offer assistance? Thanks in advance.
7/3/19
1345
views
4
comments
0
Ankita Patra
Level 5
Bhubaneshwar
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Plzz help me out. Actually I'm not getting the question!!
7/2/19
1643
views
2
comments
0
Denis
Level 22
Kharkiv
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Under discussion
Help me pls,guys
What i can do this?
6/28/19
1594
views
1
comment
0
Ankita Patra
Level 5
Bhubaneshwar
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
What's wrong in this code?
7/2/19
1501
views
2
comments
0
captain jack
Level 9
Mumbai
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
help me
what is wrong?
6/27/19
1348
views
3
comments
0
Vishwanath Bannatti
Level 5
Bangalore
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
I am getting correct output but validation is failing , What is wrong in my code?
public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(read.readLine()); if (num<1 || num>999){
7/3/19
1931
views
1
comment
0
Rupa Joshi
Level 29
Tokyo
Question about the task
Exception when working with numbers
Java Syntax
,
Level 9
,
Lesson 6
Under discussion
Why its not verifying
by specifying ArithmeticException still not verified. Please point out any mistake.
7/2/19
1560
views
5
comments
0
Show more
1
...
305
306
307
308
309
...
374
Please enable JavaScript to continue using this application.