java8 tag

16 questions


2 answers
93 views
0
About the class covered by @Bean in spring boot

After studying about @Bean, I wondered if @Bean's class generally covers classes with fields and gettersetters.If so, what are the benefits of declaring an object without using @Bean as shown in the c...

1 years ago

1 answers
44 views
0
I want to extend the Union type in Java generics.

When specifying the type of Java generic (like the Union type of TypeScript), is it not possible to specify a type such as String or Long type?Image (?) class Test <Textends String | extensions Lon...

1 years ago

1 answers
80 views
0
The extended for statement causes ClassCastException.

ClassCastException occurs in the extended for statement.How do I fix the Id of each Student object to the console so that there are no errors?Thank you. ■ Test class@ Controller public class test { @R...

1 years ago

2 answers
84 views
0
I'd like to simplify the nested if statement, but I'd like you to teach me how to write it well.

I would like to know how to correct the following implementation.private boolean isChange(String oldStr, String newStr){ if(StringUtils.isEmpty(oldStr)){ if(StringUtils.isEmpty(newStr)){ return true; ...

1 years ago

1 answers
57 views
0
VM.command_line option in jcmd becomes unavailable immediately after JavaVM (1.8.0_222) reboots

In order to obtain application launch commands for JavaVM (1.8.0_222) running in the server (based on RHEL7/CentOS7) we run jcmd (1.8.0_66) with VM.command_line option as shown below (once a minute co...

1 years ago

2 answers
93 views
0
I want to combine the lists in stream.

[[a, a, a], [b, b, b], [c, c]][a, a, a, b, b, b, c, c, c]I'd like to do this, but is there any way I can do it on stream at once?// This is what it looks like when you loop normally.List innerA=Arrays...

1 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.