Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
Java8POC
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ravinder Pannala
Java8POC
Commits
f73fc4d0
Commit
f73fc4d0
authored
May 04, 2023
by
Ravinder Pannala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
second commit
parent
859f5ca0
Changes
123
Show whitespace changes
Inline
Side-by-side
Showing
123 changed files
with
1771 additions
and
87 deletions
+1771
-87
032dc785d643246859605b6e83c564d887334fa7
...t/issuestore/0/3/032dc785d643246859605b6e83c564d887334fa7
+11
-0
072f8f0d1d00afd952a580b6501c114103bd28f1
...t/issuestore/0/7/072f8f0d1d00afd952a580b6501c114103bd28f1
+16
-0
0986944ea6909963e94d78d7f48523204dc95a0d
...t/issuestore/0/9/0986944ea6909963e94d78d7f48523204dc95a0d
+22
-0
0a3d66ede614ceb8af9b1f23007ab859dc649ccf
...t/issuestore/0/a/0a3d66ede614ceb8af9b1f23007ab859dc649ccf
+17
-0
0aeaa5504796555da4e847cac565694a2ff01717
...t/issuestore/0/a/0aeaa5504796555da4e847cac565694a2ff01717
+19
-0
0c266f7b9ebf11fa61923f62c4d557c2ec456df1
...t/issuestore/0/c/0c266f7b9ebf11fa61923f62c4d557c2ec456df1
+17
-0
1f564eba41fee02a0e8d3dd83f911a26a3f9c547
...t/issuestore/1/f/1f564eba41fee02a0e8d3dd83f911a26a3f9c547
+13
-0
21b80283bc996cebfd3ae33e948907afe626bff2
...t/issuestore/2/1/21b80283bc996cebfd3ae33e948907afe626bff2
+40
-0
25b60393e7a04f12a7b4a2372904e2925021990a
...t/issuestore/2/5/25b60393e7a04f12a7b4a2372904e2925021990a
+37
-0
294195f2d58223dace8020f78bd28a0d610fbf18
...t/issuestore/2/9/294195f2d58223dace8020f78bd28a0d610fbf18
+8
-0
3361b75904040103eeafbcd4df732821b06a9153
...t/issuestore/3/3/3361b75904040103eeafbcd4df732821b06a9153
+3
-0
3c518f41106cfadc48b6d2bedb42370e0f2c7bb6
...t/issuestore/3/c/3c518f41106cfadc48b6d2bedb42370e0f2c7bb6
+7
-0
3e34e674927bc72cb714ea76b033df77ecb9442e
...t/issuestore/3/e/3e34e674927bc72cb714ea76b033df77ecb9442e
+14
-0
46b22baab0141a99912aec832a75b4fad8779faa
...t/issuestore/4/6/46b22baab0141a99912aec832a75b4fad8779faa
+56
-0
4e0b40b82d9aecc6cec8cac98eec4270d65b1289
...t/issuestore/4/e/4e0b40b82d9aecc6cec8cac98eec4270d65b1289
+12
-0
612ec60c3557429a6265430e8a6ca79e94151323
...t/issuestore/6/1/612ec60c3557429a6265430e8a6ca79e94151323
+6
-0
62d96ca5512f1d27fce331459756c6db2462ee23
...t/issuestore/6/2/62d96ca5512f1d27fce331459756c6db2462ee23
+12
-0
70974f7ce66751aaa6f31f08a5170803c297cb0c
...t/issuestore/7/0/70974f7ce66751aaa6f31f08a5170803c297cb0c
+2
-0
78ab4cd39330473a2552a03e1c38bd0c5236874d
...t/issuestore/7/8/78ab4cd39330473a2552a03e1c38bd0c5236874d
+20
-0
7b4f8295878ba30136472a53db19ce7f51ebd9d0
...t/issuestore/7/b/7b4f8295878ba30136472a53db19ce7f51ebd9d0
+13
-0
7ebefa157b4964ef6791408592867d45c82e33e5
...t/issuestore/7/e/7ebefa157b4964ef6791408592867d45c82e33e5
+7
-0
81118fc19a2685c99459825e14d7745a654d699c
...t/issuestore/8/1/81118fc19a2685c99459825e14d7745a654d699c
+21
-0
83574343c9305970a6b4a9762239693980cc9cf6
...t/issuestore/8/3/83574343c9305970a6b4a9762239693980cc9cf6
+13
-0
86fb7fbf8e5974e94fc9dc05974516a88d5a36fc
...t/issuestore/8/6/86fb7fbf8e5974e94fc9dc05974516a88d5a36fc
+30
-0
96ad86da270c5a2d347396f29ecafa0aba5c9811
...t/issuestore/9/6/96ad86da270c5a2d347396f29ecafa0aba5c9811
+13
-0
99f6a0657bb2862832545b4fc353a50209e2c3af
...t/issuestore/9/9/99f6a0657bb2862832545b4fc353a50209e2c3af
+8
-0
a5191472ae51d588f9fe18f04c0fc363409cad08
...t/issuestore/a/5/a5191472ae51d588f9fe18f04c0fc363409cad08
+10
-0
a643d4dafddb944add6329f54cb3917737e4cd3b
...t/issuestore/a/6/a643d4dafddb944add6329f54cb3917737e4cd3b
+3
-0
a9a92d616273bd6247664470bd6d7d0d782c0e96
...t/issuestore/a/9/a9a92d616273bd6247664470bd6d7d0d782c0e96
+14
-0
bb3260572fd3c63a5b97c1c28b51b8e3e5c545ec
...t/issuestore/b/b/bb3260572fd3c63a5b97c1c28b51b8e3e5c545ec
+3
-0
bb5c13449c139e7820b9bc002919c527011464df
...t/issuestore/b/b/bb5c13449c139e7820b9bc002919c527011464df
+8
-0
bc304561b1182b62caee748a045ed5973d478751
...t/issuestore/b/c/bc304561b1182b62caee748a045ed5973d478751
+4
-0
c0633a7668bfbc06b875642bb2a5d67d8fc9fb19
...t/issuestore/c/0/c0633a7668bfbc06b875642bb2a5d67d8fc9fb19
+5
-0
c7d0f9b4b56ae8f7b115c59867b7f088a54a3ba6
...t/issuestore/c/7/c7d0f9b4b56ae8f7b115c59867b7f088a54a3ba6
+18
-0
cb58172ef1c0b75906b2729490f1cfab681b261a
...t/issuestore/c/b/cb58172ef1c0b75906b2729490f1cfab681b261a
+17
-0
cf038dda77d1c682720f32d4a304e0f7ddaaa99c
...t/issuestore/c/f/cf038dda77d1c682720f32d4a304e0f7ddaaa99c
+8
-0
d854eba82f15932b0adae7bb236c70de7439e712
...t/issuestore/d/8/d854eba82f15932b0adae7bb236c70de7439e712
+17
-0
dce39d7a6c477851266bd9e122d093c15416c01d
...t/issuestore/d/c/dce39d7a6c477851266bd9e122d093c15416c01d
+31
-0
de4778ecba8f780abe9f6d332abc381c6747585f
...t/issuestore/d/e/de4778ecba8f780abe9f6d332abc381c6747585f
+9
-0
e143ac7c0c6bfa094891382cb3a527d76ea13708
...t/issuestore/e/1/e143ac7c0c6bfa094891382cb3a527d76ea13708
+5
-0
e18bff0e700a82c6f268fb5b850d5da4f5cce221
...t/issuestore/e/1/e18bff0e700a82c6f268fb5b850d5da4f5cce221
+11
-0
e63180e7427bd0002d52f190e48336bfa6a57e54
...t/issuestore/e/6/e63180e7427bd0002d52f190e48336bfa6a57e54
+10
-0
ed6be9a2b83fd0e89ddf99b2b994249d6d721c18
...t/issuestore/e/d/ed6be9a2b83fd0e89ddf99b2b994249d6d721c18
+37
-0
efb93e5ee065b70a18e8a3fd6a6a84dc54789db4
...t/issuestore/e/f/efb93e5ee065b70a18e8a3fd6a6a84dc54789db4
+10
-0
f18bd193c2a1bbc0ee4f776805047c5953dfc07b
...t/issuestore/f/1/f18bd193c2a1bbc0ee4f776805047c5953dfc07b
+62
-0
f19a5bd2f4a7c52191ea0554beb3648c565a1fa5
...t/issuestore/f/1/f19a5bd2f4a7c52191ea0554beb3648c565a1fa5
+6
-0
f8943dfe823d899df1f87ed31b2f8c610576ec93
...t/issuestore/f/8/f8943dfe823d899df1f87ed31b2f8c610576ec93
+26
-0
index.pb
.idea/sonarlint/issuestore/index.pb
+95
-0
032dc785d643246859605b6e83c564d887334fa7
...hotspotstore/0/3/032dc785d643246859605b6e83c564d887334fa7
+0
-0
072f8f0d1d00afd952a580b6501c114103bd28f1
...hotspotstore/0/7/072f8f0d1d00afd952a580b6501c114103bd28f1
+0
-0
0986944ea6909963e94d78d7f48523204dc95a0d
...hotspotstore/0/9/0986944ea6909963e94d78d7f48523204dc95a0d
+0
-0
0a3d66ede614ceb8af9b1f23007ab859dc649ccf
...hotspotstore/0/a/0a3d66ede614ceb8af9b1f23007ab859dc649ccf
+0
-0
0aeaa5504796555da4e847cac565694a2ff01717
...hotspotstore/0/a/0aeaa5504796555da4e847cac565694a2ff01717
+0
-0
0c266f7b9ebf11fa61923f62c4d557c2ec456df1
...hotspotstore/0/c/0c266f7b9ebf11fa61923f62c4d557c2ec456df1
+0
-0
1f564eba41fee02a0e8d3dd83f911a26a3f9c547
...hotspotstore/1/f/1f564eba41fee02a0e8d3dd83f911a26a3f9c547
+0
-0
21b80283bc996cebfd3ae33e948907afe626bff2
...hotspotstore/2/1/21b80283bc996cebfd3ae33e948907afe626bff2
+0
-0
25b60393e7a04f12a7b4a2372904e2925021990a
...hotspotstore/2/5/25b60393e7a04f12a7b4a2372904e2925021990a
+0
-0
294195f2d58223dace8020f78bd28a0d610fbf18
...hotspotstore/2/9/294195f2d58223dace8020f78bd28a0d610fbf18
+0
-0
3361b75904040103eeafbcd4df732821b06a9153
...hotspotstore/3/3/3361b75904040103eeafbcd4df732821b06a9153
+0
-0
3c518f41106cfadc48b6d2bedb42370e0f2c7bb6
...hotspotstore/3/c/3c518f41106cfadc48b6d2bedb42370e0f2c7bb6
+0
-0
3e34e674927bc72cb714ea76b033df77ecb9442e
...hotspotstore/3/e/3e34e674927bc72cb714ea76b033df77ecb9442e
+0
-0
46b22baab0141a99912aec832a75b4fad8779faa
...hotspotstore/4/6/46b22baab0141a99912aec832a75b4fad8779faa
+0
-0
4e0b40b82d9aecc6cec8cac98eec4270d65b1289
...hotspotstore/4/e/4e0b40b82d9aecc6cec8cac98eec4270d65b1289
+0
-0
612ec60c3557429a6265430e8a6ca79e94151323
...hotspotstore/6/1/612ec60c3557429a6265430e8a6ca79e94151323
+0
-0
62d96ca5512f1d27fce331459756c6db2462ee23
...hotspotstore/6/2/62d96ca5512f1d27fce331459756c6db2462ee23
+0
-0
70974f7ce66751aaa6f31f08a5170803c297cb0c
...hotspotstore/7/0/70974f7ce66751aaa6f31f08a5170803c297cb0c
+0
-0
78ab4cd39330473a2552a03e1c38bd0c5236874d
...hotspotstore/7/8/78ab4cd39330473a2552a03e1c38bd0c5236874d
+0
-0
7b4f8295878ba30136472a53db19ce7f51ebd9d0
...hotspotstore/7/b/7b4f8295878ba30136472a53db19ce7f51ebd9d0
+0
-0
7ebefa157b4964ef6791408592867d45c82e33e5
...hotspotstore/7/e/7ebefa157b4964ef6791408592867d45c82e33e5
+0
-0
81118fc19a2685c99459825e14d7745a654d699c
...hotspotstore/8/1/81118fc19a2685c99459825e14d7745a654d699c
+0
-0
83574343c9305970a6b4a9762239693980cc9cf6
...hotspotstore/8/3/83574343c9305970a6b4a9762239693980cc9cf6
+0
-0
86fb7fbf8e5974e94fc9dc05974516a88d5a36fc
...hotspotstore/8/6/86fb7fbf8e5974e94fc9dc05974516a88d5a36fc
+0
-0
96ad86da270c5a2d347396f29ecafa0aba5c9811
...hotspotstore/9/6/96ad86da270c5a2d347396f29ecafa0aba5c9811
+0
-0
99f6a0657bb2862832545b4fc353a50209e2c3af
...hotspotstore/9/9/99f6a0657bb2862832545b4fc353a50209e2c3af
+0
-0
a5191472ae51d588f9fe18f04c0fc363409cad08
...hotspotstore/a/5/a5191472ae51d588f9fe18f04c0fc363409cad08
+0
-0
a643d4dafddb944add6329f54cb3917737e4cd3b
...hotspotstore/a/6/a643d4dafddb944add6329f54cb3917737e4cd3b
+0
-0
a9a92d616273bd6247664470bd6d7d0d782c0e96
...hotspotstore/a/9/a9a92d616273bd6247664470bd6d7d0d782c0e96
+0
-0
bb3260572fd3c63a5b97c1c28b51b8e3e5c545ec
...hotspotstore/b/b/bb3260572fd3c63a5b97c1c28b51b8e3e5c545ec
+0
-0
bb5c13449c139e7820b9bc002919c527011464df
...hotspotstore/b/b/bb5c13449c139e7820b9bc002919c527011464df
+0
-0
bc304561b1182b62caee748a045ed5973d478751
...hotspotstore/b/c/bc304561b1182b62caee748a045ed5973d478751
+0
-0
c0633a7668bfbc06b875642bb2a5d67d8fc9fb19
...hotspotstore/c/0/c0633a7668bfbc06b875642bb2a5d67d8fc9fb19
+0
-0
c7d0f9b4b56ae8f7b115c59867b7f088a54a3ba6
...hotspotstore/c/7/c7d0f9b4b56ae8f7b115c59867b7f088a54a3ba6
+0
-0
cb58172ef1c0b75906b2729490f1cfab681b261a
...hotspotstore/c/b/cb58172ef1c0b75906b2729490f1cfab681b261a
+0
-0
cf038dda77d1c682720f32d4a304e0f7ddaaa99c
...hotspotstore/c/f/cf038dda77d1c682720f32d4a304e0f7ddaaa99c
+0
-0
d854eba82f15932b0adae7bb236c70de7439e712
...hotspotstore/d/8/d854eba82f15932b0adae7bb236c70de7439e712
+0
-0
dce39d7a6c477851266bd9e122d093c15416c01d
...hotspotstore/d/c/dce39d7a6c477851266bd9e122d093c15416c01d
+0
-0
de4778ecba8f780abe9f6d332abc381c6747585f
...hotspotstore/d/e/de4778ecba8f780abe9f6d332abc381c6747585f
+0
-0
e143ac7c0c6bfa094891382cb3a527d76ea13708
...hotspotstore/e/1/e143ac7c0c6bfa094891382cb3a527d76ea13708
+0
-0
e18bff0e700a82c6f268fb5b850d5da4f5cce221
...hotspotstore/e/1/e18bff0e700a82c6f268fb5b850d5da4f5cce221
+0
-0
e63180e7427bd0002d52f190e48336bfa6a57e54
...hotspotstore/e/6/e63180e7427bd0002d52f190e48336bfa6a57e54
+0
-0
ed6be9a2b83fd0e89ddf99b2b994249d6d721c18
...hotspotstore/e/d/ed6be9a2b83fd0e89ddf99b2b994249d6d721c18
+0
-0
efb93e5ee065b70a18e8a3fd6a6a84dc54789db4
...hotspotstore/e/f/efb93e5ee065b70a18e8a3fd6a6a84dc54789db4
+0
-0
f18bd193c2a1bbc0ee4f776805047c5953dfc07b
...hotspotstore/f/1/f18bd193c2a1bbc0ee4f776805047c5953dfc07b
+0
-0
f19a5bd2f4a7c52191ea0554beb3648c565a1fa5
...hotspotstore/f/1/f19a5bd2f4a7c52191ea0554beb3648c565a1fa5
+0
-0
f8943dfe823d899df1f87ed31b2f8c610576ec93
...hotspotstore/f/8/f8943dfe823d899df1f87ed31b2f8c610576ec93
+0
-0
index.pb
.idea/sonarlint/securityhotspotstore/index.pb
+95
-0
workspace.xml
.idea/workspace.xml
+86
-25
EmployeeUtils.java
src/com/java8/features/EmployeeUtils.java
+8
-7
ComparatorEx.java
...8/features/FunctionalInterfaces/streams/ComparatorEx.java
+10
-0
Merge.java
...om/java8/features/FunctionalInterfaces/streams/Merge.java
+52
-0
BiFunctionEx.java
...ava8/features/LamdaExpressions/Function/BiFunctionEx.java
+18
-4
FunctionEx1.java
...java8/features/LamdaExpressions/Function/FunctionEx1.java
+30
-20
SupplierEx.java
src/com/java8/features/LamdaExpressions/SupplierEx.java
+14
-2
BinaryOperEx.java
...features/LamdaExpressions/UnaryOperator/BinaryOperEx.java
+15
-0
UnaryOperatorEx.java
...tures/LamdaExpressions/UnaryOperator/UnaryOperatorEx.java
+27
-0
ConsumerEx1.java
...java8/features/LamdaExpressions/consumer/ConsumerEx1.java
+30
-2
BipredicateEx.java
...a8/features/LamdaExpressions/predicate/BipredicateEx.java
+7
-0
Example1.java
...m/java8/features/LamdaExpressions/predicate/Example1.java
+24
-11
Test.java
src/com/java8/features/LamdaExpressions/predicate/Test.java
+0
-5
OptionalEx.java
src/com/java8/features/Optional/OptionalEx.java
+25
-11
EmployeeExample.java
src/com/java8/features/practice/EmployeeExample.java
+60
-0
OtherQuestions.java
src/com/java8/features/practice/OtherQuestions.java
+50
-0
SingletonEx.java
src/com/java8/features/practice/SingletonEx.java
+17
-0
SortHashMap.java
src/com/java8/features/practice/SortHashMap.java
+31
-0
Test.java
src/com/java8/features/practice/Test.java
+57
-0
AngramString.java
src/com/java8/features/strings/AngramString.java
+32
-0
Example1.java
src/com/java8/features/strings/Example1.java
+43
-0
ExcelSheet.java
src/com/java8/features/strings/ExcelSheet.java
+63
-0
Palindrom.java
src/com/java8/features/strings/Palindrom.java
+26
-0
Solution.java
src/com/java8/features/strings/Solution.java
+25
-0
SplitString.java
src/com/java8/features/strings/SplitString.java
+22
-0
String1.java
src/com/java8/features/strings/String1.java
+26
-0
String2.java
src/com/java8/features/strings/String2.java
+32
-0
No files found.
.idea/sonarlint/issuestore/0/3/032dc785d643246859605b6e83c564d887334fa7
0 → 100644
View file @
f73fc4d0
u
java:S1192"`Define a constant instead of duplicating this literal "Limit the n elements from list" 4 times.(x
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
M java:S106"9Replace this use of System.out or System.err by a logger.(x
N java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
.idea/sonarlint/issuestore/0/7/072f8f0d1d00afd952a580b6501c114103bd28f1
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(ڦ
v
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(ާ
J
java:S1611"/Remove the parentheses around the "s" parameter(ާ
n
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(ާ
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106$"9Replace this use of System.out or System.err by a logger.(ކ
N java:S106'"9Replace this use of System.out or System.err by a logger.(
J
java:S1128 "4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
.idea/sonarlint/issuestore/0/9/0986944ea6909963e94d78d7f48523204dc95a0d
0 → 100644
View file @
f73fc4d0
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
J
java:S1611"/Remove the parentheses around the "s" parameter(Φ
[
java:S1612"@Replace this lambda with method reference 'String::toUpperCase'.(Φ
S java:S106 "9Replace this use of System.out or System.err by a logger.(ő
E
java:S1611"/Remove the parentheses around the "a" parameter(
W
java:S1612"AReplace this lambda with method reference 'Math::decrementExact'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(⪴
J
java:S1611"/Remove the parentheses around the "b" parameter(٭
Q
java:S1612"6Replace this lambda with method reference 'Math::abs'.(٭
N java:S106"9Replace this use of System.out or System.err by a logger.(
E
java:S1611"/Remove the parentheses around the "c" parameter(ݔ
W
java:S1612"AReplace this lambda with method reference 'Math::incrementExact'.(ݔ
S java:S106"9Replace this use of System.out or System.err by a logger.(ד
\ No newline at end of file
.idea/sonarlint/issuestore/0/a/0a3d66ede614ceb8af9b1f23007ab859dc649ccf
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
A
java:S2201"+The return value of "collect" must be used.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
J
java:S1128 "/Remove this unused import 'java.util.Optional'.(
S
java:S1128
"8Remove this unused import 'java.util.function.Consumer'.(̆
N
java:S1128"8Remove this unused import 'java.util.function.Function'.(͞
P
java:S1128 ":Remove this unused import 'java.util.stream.DoubleStream'.(Щ
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
.idea/sonarlint/issuestore/0/a/0aeaa5504796555da4e847cac565694a2ff01717
0 → 100644
View file @
f73fc4d0
T
java:S3655""7Call "Optional#isPresent()" before accessing the value.(80
T
java:S3655"7Call "Optional#isPresent()" before accessing the value.(ҝ80
T
java:S3655"7Call "Optional#isPresent()" before accessing the value.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(ə80
U java:S106"9Replace this use of System.out or System.err by a logger.(䓂80
T java:S106"9Replace this use of System.out or System.err by a logger.( 80
T java:S106#"9Replace this use of System.out or System.err by a logger.(y80
U java:S106&"9Replace this use of System.out or System.err by a logger.(80
U java:S106*"9Replace this use of System.out or System.err by a logger.(͡80
U java:S106."9Replace this use of System.out or System.err by a logger.(80
U java:S1062"9Replace this use of System.out or System.err by a logger.(80
U java:S1066"9Replace this use of System.out or System.err by a logger.(80
J
java:S22019"-The return value of "findFirst" must be used.(혗80
\ No newline at end of file
.idea/sonarlint/issuestore/0/c/0c266f7b9ebf11fa61923f62c4d557c2ec456df1
0 → 100644
View file @
f73fc4d0
Q
java:S3655/"4Call "first.isPresent()" before accessing the value.(υ80
T
java:S3655)"7Call "Optional#isPresent()" before accessing the value.(80
T
java:S3655("7Call "Optional#isPresent()" before accessing the value.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(¨80
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(ڬ80
U java:S106%"9Replace this use of System.out or System.err by a logger.(80
U java:S106*"9Replace this use of System.out or System.err by a logger.(ӽ80
U java:S106/"9Replace this use of System.out or System.err by a logger.(υ80
U java:S1063"9Replace this use of System.out or System.err by a logger.(80
U java:S1067"9Replace this use of System.out or System.err by a logger.(8Ŗ0
\ No newline at end of file
.idea/sonarlint/issuestore/1/f/1f564eba41fee02a0e8d3dd83f911a26a3f9c547
0 → 100644
View file @
f73fc4d0
E
java:S1066"/Merge this if statement with the enclosing one.(Œ™¶Á
N
java:S1854 "8Remove this useless assignment to local variable "list".(ŠŒÖ
S java:S106 "9Replace this use of System.out or System.err by a logger.(ã¿¢Ôùÿÿÿÿ
A
java:S1168"+Return an empty collection instead of null.(¥¹ï
?
java:S1197"*Move the array designators [] to the type.(§žìe
A
java:S1168"+Return an empty collection instead of null.(¥¹ï
S java:S106""9Replace this use of System.out or System.err by a logger.(ú“‹ºùÿÿÿÿ
\ No newline at end of file
.idea/sonarlint/issuestore/2/1/21b80283bc996cebfd3ae33e948907afe626bff2
0 → 100644
View file @
f73fc4d0
z
java:S1488'"_Immediately return this expression instead of assigning it to the temporary variable "collect".(áúÇÿÿÿÿÿ
z
java:S1488,"_Immediately return this expression instead of assigning it to the temporary variable "matches".(ðŸÀ°ýÿÿÿÿ
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(ºËîÜùÿÿÿÿ
S
java:S1854"=Remove this useless assignment to local variable "employees".(•ñªþ
D
java:S1481".Remove this unused "employees" local variable.(•ñªþ
V java:S125"<This block of commented-out lines of code should be removed.(’ÞÌëüÿÿÿÿ
n
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(»òðÌùÿÿÿÿ
n
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(ŽÇš¶ýÿÿÿÿ
i
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(Þ·æº
5
java:S2153"Remove the boxing of "s1".(¬þšÕùÿÿÿÿ
c
java:S2153"HRemove the boxing to "Double"; The argument is already of the same type.(¬þšÕùÿÿÿÿ
N java:S106"9Replace this use of System.out or System.err by a logger.(ÆÀûý
s
java:S42762"]Refactor this code to use the more specialised Functional Interface 'BinaryOperator<Integer>'(éÑÊý
N java:S1063"9Replace this use of System.out or System.err by a logger.(¨×¶´
x
java:S42765"]Refactor this code to use the more specialised Functional Interface 'BinaryOperator<Integer>'(ÜŽ¬ïÿÿÿÿÿ
N java:S1066"9Replace this use of System.out or System.err by a logger.(¥å©Š
r
java:S42768"\Refactor this code to use the more specialised Functional Interface 'BinaryOperator<String>'(ßâü
i
java:S16028"SRemove useless curly braces around statement and then remove useless return keyword(ßâü
N java:S106;"9Replace this use of System.out or System.err by a logger.(É߇€
s
java:S4276="]Refactor this code to use the more specialised Functional Interface 'BinaryOperator<Integer>'(êÞ¦—
i
java:S1602="SRemove useless curly braces around statement and then remove useless return keyword(êÞ¦—
S java:S106@"9Replace this use of System.out or System.err by a logger.(ëʺñùÿÿÿÿ
Z
java:S1068&"?Remove this unused "fetchEmployeesMatchingToKey" private field.(‹äÒâúÿÿÿÿ
\ No newline at end of file
.idea/sonarlint/issuestore/2/5/25b60393e7a04f12a7b4a2372904e2925021990a
0 → 100644
View file @
f73fc4d0
v
java:S1488 "`Immediately return this expression instead of assigning it to the temporary variable "contains".(ÍØÄ¬
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(‚ïÎñ
W
java:S18546"<Remove this useless assignment to local variable "collect2".(˜Ç¼Úüÿÿÿÿ
Q
java:S1854*";Remove this useless assignment to local variable "collect".(‘ÙÞ–
S
java:S1854"8Remove this useless assignment to local variable "test".(úÕô¢ýÿÿÿÿ
P
java:S1854 "5Remove this useless assignment to local variable "p".(þ®æùÿÿÿÿÿ
A
java:S1481 "&Remove this unused "p" local variable.(þ®æùÿÿÿÿÿ
D
java:S1481")Remove this unused "test" local variable.(úÕô¢ýÿÿÿÿ
h
java:S4276"RRefactor this code to use the more specialised Functional Interface 'IntPredicate'(ÿŒ‹ß
Q java:S125"<This block of commented-out lines of code should be removed.(å·ôµ
V java:S125"<This block of commented-out lines of code should be removed.(À‚½…úÿÿÿÿ
h
java:S4276"RRefactor this code to use the more specialised Functional Interface 'IntPredicate'(Ü®¬
V java:S125"<This block of commented-out lines of code should be removed.( Ò¬õúÿÿÿÿ
N java:S106"9Replace this use of System.out or System.err by a logger.(²¯½©
J
java:S1611"4Remove the parentheses around the "string" parameter(”©¼Õ
S java:S106$"9Replace this use of System.out or System.err by a logger.(¤ä¡õýÿÿÿÿ
B
java:S1481*",Remove this unused "collect" local variable.(‘ÙÞ–
[
java:S1612,"@Replace this lambda with method reference 'System.out::println'.(ßÃÝ»ÿÿÿÿÿ
S java:S106,"9Replace this use of System.out or System.err by a logger.(ßÃÝ»ÿÿÿÿÿ
N java:S1061"9Replace this use of System.out or System.err by a logger.(·Þø«
H
java:S14816"-Remove this unused "collect2" local variable.(˜Ç¼Úüÿÿÿÿ
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(ó÷Ž”
\ No newline at end of file
.idea/sonarlint/issuestore/2/9/294195f2d58223dace8020f78bd28a0d610fbf18
0 → 100644
View file @
f73fc4d0
N java:S106"9Replace this use of System.out or System.err by a logger.(
P
java:S6397"5Replace this character class by the character itself.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
9
java:S1128"$Remove this unused import 'java.io'.(D
\ No newline at end of file
.idea/sonarlint/issuestore/3/3/3361b75904040103eeafbcd4df732821b06a9153
0 → 100644
View file @
f73fc4d0
<
java:S1700"Rename field "singletonEx"(80
\ No newline at end of file
.idea/sonarlint/issuestore/3/c/3c518f41106cfadc48b6d2bedb42370e0f2c7bb6
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106 "9Replace this use of System.out or System.err by a logger.(ժ
M java:S106"9Replace this use of System.out or System.err by a logger.(H
n
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(
N java:S106"9Replace this use of System.out or System.err by a logger.(ۮ
\ No newline at end of file
.idea/sonarlint/issuestore/3/e/3e34e674927bc72cb714ea76b033df77ecb9442e
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(ß
N java:S106""9Replace this use of System.out or System.err by a logger.(҈ś
N java:S106)"9Replace this use of System.out or System.err by a logger.(
N java:S106/"9Replace this use of System.out or System.err by a logger.(㢽
N
java:S1128"8Remove this unused import 'com.java8.features.Employee'.(
R
java:S1128"=Remove this unused import 'com.java8.features.EmployeeUtils'.(
S
java:S1128"=Remove this unused import 'com.java8.features.Utils.Student'.(
]
java:S1128"BRemove this unused import 'com.java8.features.Utils.StudentUtils'.(Ӽ
\ No newline at end of file
.idea/sonarlint/issuestore/4/6/46b22baab0141a99912aec832a75b4fad8779faa
0 → 100644
View file @
f73fc4d0
f
java:S1192"IDefine a constant instead of duplicating this literal "Ravinder" 3 times.(80
v java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(80
Q
java:S1611"4Remove the parentheses around the "string" parameter(80
I
java:S1602",Remove useless curly braces around statement(80
Z java:S106 "9Replace this use of System.out or System.err by a logger.(ٿ80
s
java:S4276"QRefactor this code to use the more specialised Functional Interface 'IntConsumer'(п80
Q
java:S1611"/Remove the parentheses around the "i" parameter(п80
u
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(п80
Q
java:S1611"4Remove the parentheses around the "string" parameter(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
]
java:S1612"@Replace this lambda with method reference 'System.out::println'.(Ӭ80
U java:S106"9Replace this use of System.out or System.err by a logger.(Ӭ80
U java:S106""9Replace this use of System.out or System.err by a logger.(80
U java:S106#"9Replace this use of System.out or System.err by a logger.(ǹ80
T
java:S1611&"2Remove the parentheses around the "name" parameter(Ռ80
N
java:S1602&",Remove useless curly braces around statement(Ռ80
U java:S106'"9Replace this use of System.out or System.err by a logger.(80
U java:S106)"9Replace this use of System.out or System.err by a logger.(ì80
N
java:S1602+",Remove useless curly braces around statement(80
T java:S106,"9Replace this use of System.out or System.err by a logger.(í)80
Z java:S106."9Replace this use of System.out or System.err by a logger.(ؓ80
Q
java:S16110"/Remove the parentheses around the "a" parameter(ى80
N
java:S16020",Remove useless curly braces around statement(ى80
b
java:S16120"@Replace this lambda with method reference 'System.out::println'.(ى80
Z java:S1061"9Replace this use of System.out or System.err by a logger.(樤80
Q
java:S16116"/Remove the parentheses around the "b" parameter(ݱ80
N
java:S16026",Remove useless curly braces around statement(ݱ80
b
java:S16126"@Replace this lambda with method reference 'System.out::println'.(ݱ80
Z java:S1067"9Replace this use of System.out or System.err by a logger.(80
Q
java:S1611<"/Remove the parentheses around the "c" parameter(ż80
N
java:S1602<",Remove useless curly braces around statement(ż80
b
java:S1612<"@Replace this lambda with method reference 'System.out::println'.(ż80
U java:S106="9Replace this use of System.out or System.err by a logger.(߇80
\ No newline at end of file
.idea/sonarlint/issuestore/4/e/4e0b40b82d9aecc6cec8cac98eec4270d65b1289
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
Q
java:S1854";Remove this useless assignment to local variable "collect".(
7
java:S3864"!Remove this use of "Stream.peek".(龕
<
java:S3864"!Remove this use of "Stream.peek".(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(龕
B
java:S1481",Remove this unused "collect" local variable.(
\ No newline at end of file
.idea/sonarlint/issuestore/6/1/612ec60c3557429a6265430e8a6ca79e94151323
0 → 100644
View file @
f73fc4d0
e
java:S1192
"JDefine a constant instead of duplicating this literal "developer" 8 times.(Ÿì¥Èüÿÿÿÿ
P
java:S1118":Add a private constructor to hide the implicit public one.(¯¥¸å
\ No newline at end of file
.idea/sonarlint/issuestore/6/2/62d96ca5512f1d27fce331459756c6db2462ee23
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
M
java:S3655"7Call "Optional#isPresent()" before accessing the value.(
R
java:S3655""7Call "Optional#isPresent()" before accessing the value.(͡
M
java:S3655"7Call "Optional#isPresent()" before accessing the value.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106#"9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
.idea/sonarlint/issuestore/7/0/70974f7ce66751aaa6f31f08a5170803c297cb0c
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(•é¥ß
\ No newline at end of file
.idea/sonarlint/issuestore/7/8/78ab4cd39330473a2552a03e1c38bd0c5236874d
0 → 100644
View file @
f73fc4d0
J
java:S3740"/Provide the parametrized type for this generic.(
J
java:S3740"/Provide the parametrized type for this generic.(
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
p
java:S4276"URefactor this code to use the more specialised Functional Interface 'BooleanSupplier'(
l
java:S4276"QRefactor this code to use the more specialised Functional Interface 'IntSupplier'(
Y
java:S1612">Replace this lambda with method reference 'name::toLowerCase'.(
V
java:S1612";Replace this lambda with method reference 'ArrayList::new'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(譇
S java:S106"9Replace this use of System.out or System.err by a logger.(˰
N java:S106"9Replace this use of System.out or System.err by a logger.(͂
N java:S106""9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
.idea/sonarlint/issuestore/7/b/7b4f8295878ba30136472a53db19ce7f51ebd9d0
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(ؾ
N java:S106"9Replace this use of System.out or System.err by a logger.(ɟ
S java:S106"9Replace this use of System.out or System.err by a logger.(
M java:S106""9Replace this use of System.out or System.err by a logger.(
S java:S106%"9Replace this use of System.out or System.err by a logger.(
F
java:S1128"0Remove this unused import 'java.util.ArrayList'.(
S
java:S1128"8Remove this unused import 'java.util.function.Consumer'.(̆
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
.idea/sonarlint/issuestore/7/e/7ebefa157b4964ef6791408592867d45c82e33e5
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(Ι
M java:S106("9Replace this use of System.out or System.err by a logger.(A
S java:S106."9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
.idea/sonarlint/issuestore/8/1/81118fc19a2685c99459825e14d7745a654d699c
0 → 100644
View file @
f73fc4d0
E
java:S1066""/Merge this if statement with the enclosing one.(
J
java:S1066#"/Merge this if statement with the enclosing one.(
h
java:S3776"RRefactor this method to reduce its Cognitive Complexity from 42 to the 15 allowed.(ǵ
S java:S106"9Replace this use of System.out or System.err by a logger.(ʓ
/
java:S2178"Correct this "&" to "&&".(߽
S java:S106("9Replace this use of System.out or System.err by a logger.(
S java:S1060"9Replace this use of System.out or System.err by a logger.(㿢
S java:S1066"9Replace this use of System.out or System.err by a logger.(
G
java:S1128"1Remove this unused import 'java.io.StringReader'.(֣
K
java:S1128"0Remove this unused import 'java.nio.CharBuffer'.(
N
java:S1128"3Remove this unused import 'java.util.StringJoiner'.(
S
java:S1128 "8Remove this unused import 'java.util.stream.Collectors'.(
\ No newline at end of file
.idea/sonarlint/issuestore/8/3/83574343c9305970a6b4a9762239693980cc9cf6
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
E
java:S1611"/Remove the parentheses around the "i" parameter(
J
java:S1611"/Remove the parentheses around the "i" parameter(
[
java:S1612"@Replace this lambda with method reference 'System.out::println'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
F
java:S1128"0Remove this unused import 'java.util.ArrayList'.(
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
.idea/sonarlint/issuestore/8/6/86fb7fbf8e5974e94fc9dc05974516a88d5a36fc
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
W
java:S1854$"<Remove this useless assignment to local variable "collect4".(
R
java:S1854"<Remove this useless assignment to local variable "collect1".(
R
java:S1854"7Remove this useless assignment to local variable "map".(
M
java:S1854"7Remove this useless assignment to local variable "set".(՜
P
java:S1854";Remove this useless assignment to local variable "collect".(3
A
java:S1481",Remove this unused "collect" local variable.(3
>
java:S1481"(Remove this unused "set" local variable.(՜
C
java:S1481"(Remove this unused "map" local variable.(
C
java:S1481"-Remove this unused "collect1" local variable.(
G
java:S1611"1Remove the parentheses around the "emp" parameter(
N java:S106"9Replace this use of System.out or System.err by a logger.(ϡ
S java:S106!"9Replace this use of System.out or System.err by a logger.(
H
java:S1481$"-Remove this unused "collect4" local variable.(
S java:S106*"9Replace this use of System.out or System.err by a logger.(ǭů
M java:S106/"9Replace this use of System.out or System.err by a logger.(ҿW
O
java:S1128"9Remove this unused import 'java.util.function.Predicate'.(͖
\ No newline at end of file
.idea/sonarlint/issuestore/9/6/96ad86da270c5a2d347396f29ecafa0aba5c9811
0 → 100644
View file @
f73fc4d0
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
m
java:S4276 "WRefactor this code to use the more specialised Functional Interface 'IntBinaryOperator'(ү
X
java:S1612 "BReplace this lambda with method reference 'Comparable::compareTo'.(ү
N java:S106
"9Replace this use of System.out or System.err by a logger.(
m
java:S4276"WRefactor this code to use the more specialised Functional Interface 'IntBinaryOperator'(Ƕ
X
java:S1612"BReplace this lambda with method reference 'Comparable::compareTo'.(Ƕ
N java:S106 "9Replace this use of System.out or System.err by a logger.(ϲ
\ No newline at end of file
.idea/sonarlint/issuestore/9/9/99f6a0657bb2862832545b4fc353a50209e2c3af
0 → 100644
View file @
f73fc4d0
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(х
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
N
java:S3878("8Remove this array creation and simply pass the elements.(
S java:S106)"9Replace this use of System.out or System.err by a logger.(ۑ
N java:S1060"9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
.idea/sonarlint/issuestore/a/5/a5191472ae51d588f9fe18f04c0fc363409cad08
0 → 100644
View file @
f73fc4d0
b java:S101"MRename this class name to match the regular expression '^[A-Z][a-zA-Z0-9]*$'.(®¼¨
E
java:S1611"/Remove the parentheses around the "i" parameter(ª£Ûý
N java:S106"9Replace this use of System.out or System.err by a logger.(ª£Ûý
J
java:S1611"/Remove the parentheses around the "i" parameter(‘ê™õüÿÿÿÿ
S java:S106"9Replace this use of System.out or System.err by a logger.(‘ê™õüÿÿÿÿ
F
java:S1128"0Remove this unused import 'java.util.ArrayList'.(÷‰îƒ
\ No newline at end of file
.idea/sonarlint/issuestore/a/6/a643d4dafddb944add6329f54cb3917737e4cd3b
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(‡±‚°
N java:S106"9Replace this use of System.out or System.err by a logger.(ìù’È
\ No newline at end of file
.idea/sonarlint/issuestore/a/9/a9a92d616273bd6247664470bd6d7d0d782c0e96
0 → 100644
View file @
f73fc4d0
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
H
java:S2201"+The return value of "collect" must be used.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(𛀇80
Z java:S106#"9Replace this use of System.out or System.err by a logger.(80
U java:S106'"9Replace this use of System.out or System.err by a logger.(ڱ80
Z java:S106+"9Replace this use of System.out or System.err by a logger.(μ80
] java:S125."<This block of commented-out lines of code should be removed.(Ϛ80
Y
java:S1128"7Remove this unused import 'java.util.stream.IntStream'.(ɽ80
Q
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(80
\ No newline at end of file
.idea/sonarlint/issuestore/b/b/bb3260572fd3c63a5b97c1c28b51b8e3e5c545ec
0 → 100644
View file @
f73fc4d0
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
.idea/sonarlint/issuestore/b/b/bb5c13449c139e7820b9bc002919c527011464df
0 → 100644
View file @
f73fc4d0
6
java:S1659" Declare "s1" on a separate line.(
Q java:S125"<This block of commented-out lines of code should be removed.(͂
N java:S106 "9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(ۡ
S java:S106"9Replace this use of System.out or System.err by a logger.(أ
\ No newline at end of file
.idea/sonarlint/issuestore/b/c/bc304561b1182b62caee748a045ed5973d478751
0 → 100644
View file @
f73fc4d0
N java:S106
"9Replace this use of System.out or System.err by a logger.(ԝ
N java:S106"9Replace this use of System.out or System.err by a logger.(Ζ
\ No newline at end of file
.idea/sonarlint/issuestore/c/0/c0633a7668bfbc06b875642bb2a5d67d8fc9fb19
0 → 100644
View file @
f73fc4d0
f java:S117
"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(ۿ
N java:S106"9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
.idea/sonarlint/issuestore/c/7/c7d0f9b4b56ae8f7b115c59867b7f088a54a3ba6
0 → 100644
View file @
f73fc4d0
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
M
java:S2589&"7Remove this expression which always evaluates to "true"(
T
java:S1854"9Remove this useless assignment to local variable "empty".(
E
java:S1481"*Remove this unused "empty" local variable.(
N java:S106"9Replace this use of System.out or System.err by a logger.(Ǵ
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
Q java:S125!"<This block of commented-out lines of code should be removed.(
S java:S106'"9Replace this use of System.out or System.err by a logger.(
S java:S106-"9Replace this use of System.out or System.err by a logger.(
S java:S1060"9Replace this use of System.out or System.err by a logger.(
T
java:S34005"9Remove this method and declare a constant for this value.(ܧ
\ No newline at end of file
.idea/sonarlint/issuestore/c/b/cb58172ef1c0b75906b2729490f1cfab681b261a
0 → 100644
View file @
f73fc4d0
b
java:S1192"GDefine a constant instead of duplicating this literal "Female" 3 times.(
m
java:S1192"RDefine a constant instead of duplicating this literal "Software Engineer" 4 times.(
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(ə
N java:S106$"9Replace this use of System.out or System.err by a logger.(
N java:S106*"9Replace this use of System.out or System.err by a logger.(
N java:S1061"9Replace this use of System.out or System.err by a logger.(
N java:S1067"9Replace this use of System.out or System.err by a logger.(
S java:S106="9Replace this use of System.out or System.err by a logger.(
S
java:S1128"=Remove this unused import 'com.java8.features.Utils.Student'.(
]
java:S1128"BRemove this unused import 'com.java8.features.Utils.StudentUtils'.(Ӽ
\ No newline at end of file
.idea/sonarlint/issuestore/c/f/cf038dda77d1c682720f32d4a304e0f7ddaaa99c
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106 "9Replace this use of System.out or System.err by a logger.(֊
S java:S106"9Replace this use of System.out or System.err by a logger.(߹
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
F
java:S1128"0Remove this unused import 'java.util.ArrayList'.(
\ No newline at end of file
.idea/sonarlint/issuestore/d/8/d854eba82f15932b0adae7bb236c70de7439e712
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
\
java:S1854"ARemove this useless assignment to local variable "integerStream".(
N java:S106"9Replace this use of System.out or System.err by a logger.(
M
java:S1481"2Remove this unused "integerStream" local variable.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(ꎧ
S java:S106$"9Replace this use of System.out or System.err by a logger.(
N java:S106("9Replace this use of System.out or System.err by a logger.(
N java:S106-"9Replace this use of System.out or System.err by a logger.(ӫ
S java:S1066"9Replace this use of System.out or System.err by a logger.(
S java:S106:"9Replace this use of System.out or System.err by a logger.(
N java:S106="9Replace this use of System.out or System.err by a logger.(
H
java:S1128"-Remove this unused import 'java.util.Random'.(ɛ
\ No newline at end of file
.idea/sonarlint/issuestore/d/c/dce39d7a6c477851266bd9e122d093c15416c01d
0 → 100644
View file @
f73fc4d0
u
java:S1488K"_Immediately return this expression instead of assigning it to the temporary variable "collect".(¥íß¿
o
java:S1488P"YImmediately return this expression instead of assigning it to the temporary variable "b".(¥™Í¦
q
java:S1104J"VMake biFunction a static final constant or non-public and provide accessors if needed.(¯õ«Êûÿÿÿÿ
k
java:S1104O"UMake predicate a static final constant or non-public and provide accessors if needed.(჻»
w
java:S1104T"\Make fullNameFunction a static final constant or non-public and provide accessors if needed.(“ÿåíûÿÿÿÿ
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(¨½Ë÷üÿÿÿÿ
L
java:S3655."7Call "Optional#isPresent()" before accessing the value.(òÂÁQ
Q java:S125"<This block of commented-out lines of code should be removed.(݉¦
S java:S1065"9Replace this use of System.out or System.err by a logger.(š—“¿ÿÿÿÿÿ
N java:S106<"9Replace this use of System.out or System.err by a logger.(„íí
S java:S106A"9Replace this use of System.out or System.err by a logger.(š—“¿ÿÿÿÿÿ
l
java:S2159F"VRemove this call to "equals"; comparisons between unrelated types always return false.(ûÖˆ¦
N java:S106G"9Replace this use of System.out or System.err by a logger.(µë
w
java:S4276T"\Refactor this code to use the more specialised Functional Interface 'UnaryOperator<Student>'(“ÿåíûÿÿÿÿ
L
java:S1611T"1Remove the parentheses around the "std" parameter(“ÿåíûÿÿÿÿ
N
java:S1128"8Remove this unused import 'com.java8.features.Employee'.(áÀÀ°
R
java:S1128"=Remove this unused import 'com.java8.features.EmployeeUtils'.(Œ‹Ü
O
java:S1128"9Remove this unused import 'java.util.function.Predicate'.(ïÍ–¶
\ No newline at end of file
.idea/sonarlint/issuestore/d/e/de4778ecba8f780abe9f6d332abc381c6747585f
0 → 100644
View file @
f73fc4d0
f java:S117"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
k java:S117 "QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
9
java:S1128"$Remove this unused import 'java.io'.(D
\ No newline at end of file
.idea/sonarlint/issuestore/e/1/e143ac7c0c6bfa094891382cb3a527d76ea13708
0 → 100644
View file @
f73fc4d0
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
\ No newline at end of file
.idea/sonarlint/issuestore/e/1/e18bff0e700a82c6f268fb5b850d5da4f5cce221
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
]
java:S3959"GRefactor this code so that this consumed stream pipeline is not reused.(Ԑ
Q
java:S1854";Remove this useless assignment to local variable "objects".(Ԑ
S java:S106"9Replace this use of System.out or System.err by a logger.(
B
java:S1481",Remove this unused "objects" local variable.(Ԑ
S
java:S1128"8Remove this unused import 'java.util.stream.Collectors'.(
\ No newline at end of file
.idea/sonarlint/issuestore/e/6/e63180e7427bd0002d52f190e48336bfa6a57e54
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
J
java:S1611"/Remove the parentheses around the "i" parameter(
n
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106!"9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
.idea/sonarlint/issuestore/e/d/ed6be9a2b83fd0e89ddf99b2b994249d6d721c18
0 → 100644
View file @
f73fc4d0
v java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(80
T
java:S3958@"2Refactor the code so this stream pipeline is used.(80
d
java:S1854"GRemove this useless assignment to local variable "employeeComparator4".(80
i
java:S1854"GRemove this useless assignment to local variable "employeeComparator3".(80
d
java:S1854"GRemove this useless assignment to local variable "employeeComparator2".(80
Y
java:S1854"<Remove this useless assignment to local variable "reversed".(80
H
java:S2201"+The return value of "collect" must be used.(Ħ80
J
java:S1481"-Remove this unused "reversed" local variable.(80
U
java:S1481"8Remove this unused "employeeComparator2" local variable.(80
Z
java:S1481"8Remove this unused "employeeComparator3" local variable.(80
U
java:S1481"8Remove this unused "employeeComparator4" local variable.(80
T java:S106"9Replace this use of System.out or System.err by a logger.(Z80
Z java:S106""9Replace this use of System.out or System.err by a logger.(ѭ80
U java:S106%"9Replace this use of System.out or System.err by a logger.(80
T java:S106("9Replace this use of System.out or System.err by a logger.(ڧ#80
H
java:S2201-"+The return value of "collect" must be used.(80
Z java:S1060"9Replace this use of System.out or System.err by a logger.(ʷ80
Z java:S1063"9Replace this use of System.out or System.err by a logger.(80
Z java:S1069"9Replace this use of System.out or System.err by a logger.(80
Z java:S106>"9Replace this use of System.out or System.err by a logger.(80
O
java:S1128"-Remove this unused import 'java.util.Arrays'.(80
Y
java:S1128
"7Remove this unused import 'java.util.stream.Collector'.(ߋ80
\ No newline at end of file
.idea/sonarlint/issuestore/e/f/efb93e5ee065b70a18e8a3fd6a6a84dc54789db4
0 → 100644
View file @
f73fc4d0
v java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(80
Z java:S106""9Replace this use of System.out or System.err by a logger.(80
Z java:S106&"9Replace this use of System.out or System.err by a logger.(80
Z java:S106+"9Replace this use of System.out or System.err by a logger.(ə80
M
java:S2201/"+The return value of "collect" must be used.(80
W java:S1251"<This block of commented-out lines of code should be removed.(ꦊH80
Y
java:S1128"7Remove this unused import 'java.util.stream.Collector'.(ߋ80
\ No newline at end of file
.idea/sonarlint/issuestore/f/1/f18bd193c2a1bbc0ee4f776805047c5953dfc07b
0 → 100644
View file @
f73fc4d0
d
java:S1192"IDefine a constant instead of duplicating this literal "Ravinder" 3 times.(á³Áÿþÿÿÿÿ
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(ºËîÜùÿÿÿÿ
o
java:S4276"YRefactor this code to use the more specialised Functional Interface 'IntFunction<String>'(Àݽ‚
E
java:S1611"/Remove the parentheses around the "i" parameter(Àݽ‚
N java:S106"9Replace this use of System.out or System.err by a logger.(ºüÍý
q
java:S4276"VRefactor this code to use the more specialised Functional Interface 'IntUnaryOperator'(çµÈ¦ÿÿÿÿÿ
J
java:S1611"/Remove the parentheses around the "i" parameter(çµÈ¦ÿÿÿÿÿ
S java:S106"9Replace this use of System.out or System.err by a logger.(‹æ…™ùÿÿÿÿ
q
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(·ß·ø
p
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(”·ó7
v
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(ȻЧúÿÿÿÿ
S java:S106"9Replace this use of System.out or System.err by a logger.(á³Áÿþÿÿÿÿ
q
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(òÑ–•
N java:S106"9Replace this use of System.out or System.err by a logger.(ªÂÑš
v
java:S4276 "[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(û‰ù”ýÿÿÿÿ
N java:S106!"9Replace this use of System.out or System.err by a logger.(¬·¯§
L
java:S1611%"6Remove the parentheses around the "employee" parameter(×óû´
i
java:S1602%"SRemove useless curly braces around statement and then remove useless return keyword(×óû´
V
java:S1612("@Replace this lambda with method reference 'System.out::println'.(ÝܼÎ
N java:S106("9Replace this use of System.out or System.err by a logger.(ÝܼÎ
J
java:S1611+"4Remove the parentheses around the "salary" parameter(ÐåŸ
i
java:S1602+"SRemove useless curly braces around statement and then remove useless return keyword(ÐåŸ
R
java:S1612+"<Replace this lambda with method reference 'BigDecimal::new'.(ÐåŸ
<
java:S2111,"!Use "BigDecimal.valueOf" instead.(î §ùÿÿÿÿ
S java:S106."9Replace this use of System.out or System.err by a logger.(Íø‹Šüÿÿÿÿ
x
java:S42760"]Refactor this code to use the more specialised Functional Interface 'UnaryOperator<Employee>'(ëó¯úÿÿÿÿ
Q
java:S16110"6Remove the parentheses around the "employee" parameter(ëó¯úÿÿÿÿ
E
java:S16115"/Remove the parentheses around the "e" parameter(€«…
V
java:S16125"@Replace this lambda with method reference 'System.out::println'.(€«…
N java:S1065"9Replace this use of System.out or System.err by a logger.(€«…
p
java:S42769"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(£öóa
D
java:S16119"/Remove the parentheses around the "s" parameter(£öóa
q
java:S4276:"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(“تƒ
V
java:S1612:"@Replace this lambda with method reference 'String::toUpperCase'.(“تƒ
N java:S106;"9Replace this use of System.out or System.err by a logger.(€¬åò
S java:S106>"9Replace this use of System.out or System.err by a logger.(éõÄúÿÿÿÿ
\ No newline at end of file
.idea/sonarlint/issuestore/f/1/f19a5bd2f4a7c52191ea0554beb3648c565a1fa5
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(ڢ
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
.idea/sonarlint/issuestore/f/8/f8943dfe823d899df1f87ed31b2f8c610576ec93
0 → 100644
View file @
f73fc4d0
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
q
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(Ғ
E
java:S1611"/Remove the parentheses around the "s" parameter(Ғ
V
java:S1612"@Replace this lambda with method reference 'String::toUpperCase'.(Ғ
q
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(
E
java:S1611"/Remove the parentheses around the "s" parameter(
[
java:S1612"@Replace this lambda with method reference 'System.out::println'.(Ÿ
S java:S106"9Replace this use of System.out or System.err by a logger.(Ÿ
V
java:S1612"@Replace this lambda with method reference 'System.out::println'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
[
java:S1612"@Replace this lambda with method reference 'System.out::println'.(Ǎ
S java:S106"9Replace this use of System.out or System.err by a logger.(Ǎ
[
java:S1612 "@Replace this lambda with method reference 'System.out::println'.(ԁ
S java:S106 "9Replace this use of System.out or System.err by a logger.(ԁ
F
java:S1128"0Remove this unused import 'java.util.ArrayList'.(
\ No newline at end of file
.idea/sonarlint/issuestore/index.pb
0 → 100644
View file @
f73fc4d0
Y
)src/com/java8/features/EmployeeUtils.java,6\1\612ec60c3557429a6265430e8a6ca79e94151323
Y
)src/com/java8/features/practice/Test.java,0\c\0c266f7b9ebf11fa61923f62c4d557c2ec456df1
]
-src/com/java8/features/foreach/forEachEx.java,a\5\a5191472ae51d588f9fe18f04c0fc363409cad08
g
7src/com/java8/features/LamdaExpressions/SupplierEx.java,7\8\78ab4cd39330473a2552a03e1c38bd0c5236874d
q
Asrc/com/java8/features/LamdaExpressions/Function/FunctionEx1.java,f\1\f18bd193c2a1bbc0ee4f776805047c5953dfc07b
r
Bsrc/com/java8/features/LamdaExpressions/Function/BiFunctionEx.java,2\1\21b80283bc996cebfd3ae33e948907afe626bff2
o
?src/com/java8/features/LamdaExpressions/predicate/Example1.java,2\5\25b60393e7a04f12a7b4a2372904e2925021990a
t
Dsrc/com/java8/features/LamdaExpressions/predicate/BipredicateEx.java,3\c\3c518f41106cfadc48b6d2bedb42370e0f2c7bb6
q
Asrc/com/java8/features/LamdaExpressions/consumer/ConsumerEx1.java,4\6\46b22baab0141a99912aec832a75b4fad8779faa
w
Gsrc/com/java8/features/LamdaExpressions/UnaryOperator/BinaryOperEx.java,9\6\96ad86da270c5a2d347396f29ecafa0aba5c9811
z
Jsrc/com/java8/features/LamdaExpressions/UnaryOperator/UnaryOperatorEx.java,0\9\0986944ea6909963e94d78d7f48523204dc95a0d
_
/src/com/java8/features/Optional/OptionalEx.java,c\7\c7d0f9b4b56ae8f7b115c59867b7f088a54a3ba6
^
.src/com/java8/features/Optional/Optional2.java,d\c\dce39d7a6c477851266bd9e122d093c15416c01d
Z
*src/com/java8/features/Joiner/Joining.java,9\9\99f6a0657bb2862832545b4fc353a50209e2c3af
x
Hsrc/com/java8/features/FunctionalInterfaces/Collectors/CollectorsEx.java,e\6\e63180e7427bd0002d52f190e48336bfa6a57e54
y
Isrc/com/java8/features/FunctionalInterfaces/Collectors/CollectorsEx1.java,8\6\86fb7fbf8e5974e94fc9dc05974516a88d5a36fc
s
Csrc/com/java8/features/FunctionalInterfaces/streams/AnyMatchEx.java,7\b\7b4f8295878ba30136472a53db19ce7f51ebd9d0
u
Esrc/com/java8/features/FunctionalInterfaces/streams/ComparatorEx.java,e\d\ed6be9a2b83fd0e89ddf99b2b994249d6d721c18
v
Fsrc/com/java8/features/FunctionalInterfaces/streams/ComparatorEx2.java,c\f\cf038dda77d1c682720f32d4a304e0f7ddaaa99c
o
?src/com/java8/features/FunctionalInterfaces/streams/Filter.java,8\3\83574343c9305970a6b4a9762239693980cc9cf6
m
=src/com/java8/features/FunctionalInterfaces/streams/Find.java,f\1\f19a5bd2f4a7c52191ea0554beb3648c565a1fa5
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/FlatMapEx.java,0\a\0a3d66ede614ceb8af9b1f23007ab859dc649ccf
n
>src/com/java8/features/FunctionalInterfaces/streams/MapEx.java,f\8\f8943dfe823d899df1f87ed31b2f8c610576ec93
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/MaxAndMin.java,6\2\62d96ca5512f1d27fce331459756c6db2462ee23
n
>src/com/java8/features/FunctionalInterfaces/streams/Merge.java,e\f\efb93e5ee065b70a18e8a3fd6a6a84dc54789db4
m
=src/com/java8/features/FunctionalInterfaces/streams/Peek.java,4\e\4e0b40b82d9aecc6cec8cac98eec4270d65b1289
q
Asrc/com/java8/features/FunctionalInterfaces/streams/ReduceEx.java,7\e\7ebefa157b4964ef6791408592867d45c82e33e5
u
Esrc/com/java8/features/FunctionalInterfaces/streams/SkipAndLimit.java,0\3\032dc785d643246859605b6e83c564d887334fa7
q
Asrc/com/java8/features/FunctionalInterfaces/streams/SortedEx.java,0\7\072f8f0d1d00afd952a580b6501c114103bd28f1
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/SortedEx2.java,3\e\3e34e674927bc72cb714ea76b033df77ecb9442e
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/SortedEx3.java,a\6\a643d4dafddb944add6329f54cb3917737e4cd3b
w
Gsrc/com/java8/features/FunctionalInterfaces/streams/StreamCreation.java,d\8\d854eba82f15932b0adae7bb236c70de7439e712
p
@src/com/java8/features/FunctionalInterfaces/streams/ToArray.java,e\1\e18bff0e700a82c6f268fb5b850d5da4f5cce221
\
,src/com/java8/features/groupBy/Employee.java,7\0\70974f7ce66751aaa6f31f08a5170803c297cb0c
]
-src/com/java8/features/strings/Palindrom.java,c\0\c0633a7668bfbc06b875642bb2a5d67d8fc9fb19
\
,src/com/java8/features/strings/Solution.java,2\9\294195f2d58223dace8020f78bd28a0d610fbf18
`
0src/com/java8/features/strings/AngramString.java,b\c\bc304561b1182b62caee748a045ed5973d478751
\
,src/com/java8/features/strings/Example1.java,1\f\1f564eba41fee02a0e8d3dd83f911a26a3f9c547
^
.src/com/java8/features/strings/ExcelSheet.java,8\1\81118fc19a2685c99459825e14d7745a654d699c
_
/src/com/java8/features/strings/SplitString.java,b\b\bb3260572fd3c63a5b97c1c28b51b8e3e5c545ec
[
+src/com/java8/features/strings/String1.java,d\e\de4778ecba8f780abe9f6d332abc381c6747585f
[
+src/com/java8/features/strings/String2.java,b\b\bb5c13449c139e7820b9bc002919c527011464df
`
0src/com/java8/features/practice/SortHashMap.java,e\1\e143ac7c0c6bfa094891382cb3a527d76ea13708
c
3src/com/java8/features/practice/OtherQuestions.java,a\9\a9a92d616273bd6247664470bd6d7d0d782c0e96
`
0src/com/java8/features/practice/SingletonEx.java,3\3\3361b75904040103eeafbcd4df732821b06a9153
]
-src/com/java8/features/groupBy/GroupByEx.java,c\b\cb58172ef1c0b75906b2729490f1cfab681b261a
d
4src/com/java8/features/practice/EmployeeExample.java,0\a\0aeaa5504796555da4e847cac565694a2ff01717
\ No newline at end of file
.idea/sonarlint/securityhotspotstore/0/3/032dc785d643246859605b6e83c564d887334fa7
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/0/7/072f8f0d1d00afd952a580b6501c114103bd28f1
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/0/9/0986944ea6909963e94d78d7f48523204dc95a0d
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/0/a/0a3d66ede614ceb8af9b1f23007ab859dc649ccf
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/0/a/0aeaa5504796555da4e847cac565694a2ff01717
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/0/c/0c266f7b9ebf11fa61923f62c4d557c2ec456df1
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/1/f/1f564eba41fee02a0e8d3dd83f911a26a3f9c547
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/2/1/21b80283bc996cebfd3ae33e948907afe626bff2
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/2/5/25b60393e7a04f12a7b4a2372904e2925021990a
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/2/9/294195f2d58223dace8020f78bd28a0d610fbf18
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/3/3/3361b75904040103eeafbcd4df732821b06a9153
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/3/c/3c518f41106cfadc48b6d2bedb42370e0f2c7bb6
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/3/e/3e34e674927bc72cb714ea76b033df77ecb9442e
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/4/6/46b22baab0141a99912aec832a75b4fad8779faa
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/4/e/4e0b40b82d9aecc6cec8cac98eec4270d65b1289
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/6/1/612ec60c3557429a6265430e8a6ca79e94151323
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/6/2/62d96ca5512f1d27fce331459756c6db2462ee23
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/7/0/70974f7ce66751aaa6f31f08a5170803c297cb0c
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/7/8/78ab4cd39330473a2552a03e1c38bd0c5236874d
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/7/b/7b4f8295878ba30136472a53db19ce7f51ebd9d0
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/7/e/7ebefa157b4964ef6791408592867d45c82e33e5
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/8/1/81118fc19a2685c99459825e14d7745a654d699c
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/8/3/83574343c9305970a6b4a9762239693980cc9cf6
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/8/6/86fb7fbf8e5974e94fc9dc05974516a88d5a36fc
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/9/6/96ad86da270c5a2d347396f29ecafa0aba5c9811
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/9/9/99f6a0657bb2862832545b4fc353a50209e2c3af
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/a/5/a5191472ae51d588f9fe18f04c0fc363409cad08
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/a/6/a643d4dafddb944add6329f54cb3917737e4cd3b
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/a/9/a9a92d616273bd6247664470bd6d7d0d782c0e96
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/b/b/bb3260572fd3c63a5b97c1c28b51b8e3e5c545ec
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/b/b/bb5c13449c139e7820b9bc002919c527011464df
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/b/c/bc304561b1182b62caee748a045ed5973d478751
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/c/0/c0633a7668bfbc06b875642bb2a5d67d8fc9fb19
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/c/7/c7d0f9b4b56ae8f7b115c59867b7f088a54a3ba6
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/c/b/cb58172ef1c0b75906b2729490f1cfab681b261a
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/c/f/cf038dda77d1c682720f32d4a304e0f7ddaaa99c
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/d/8/d854eba82f15932b0adae7bb236c70de7439e712
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/d/c/dce39d7a6c477851266bd9e122d093c15416c01d
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/d/e/de4778ecba8f780abe9f6d332abc381c6747585f
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/e/1/e143ac7c0c6bfa094891382cb3a527d76ea13708
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/e/1/e18bff0e700a82c6f268fb5b850d5da4f5cce221
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/e/6/e63180e7427bd0002d52f190e48336bfa6a57e54
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/e/d/ed6be9a2b83fd0e89ddf99b2b994249d6d721c18
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/e/f/efb93e5ee065b70a18e8a3fd6a6a84dc54789db4
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/f/1/f18bd193c2a1bbc0ee4f776805047c5953dfc07b
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/f/1/f19a5bd2f4a7c52191ea0554beb3648c565a1fa5
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/f/8/f8943dfe823d899df1f87ed31b2f8c610576ec93
0 → 100644
View file @
f73fc4d0
.idea/sonarlint/securityhotspotstore/index.pb
0 → 100644
View file @
f73fc4d0
Y
)src/com/java8/features/EmployeeUtils.java,6\1\612ec60c3557429a6265430e8a6ca79e94151323
Y
)src/com/java8/features/practice/Test.java,0\c\0c266f7b9ebf11fa61923f62c4d557c2ec456df1
]
-src/com/java8/features/foreach/forEachEx.java,a\5\a5191472ae51d588f9fe18f04c0fc363409cad08
g
7src/com/java8/features/LamdaExpressions/SupplierEx.java,7\8\78ab4cd39330473a2552a03e1c38bd0c5236874d
q
Asrc/com/java8/features/LamdaExpressions/Function/FunctionEx1.java,f\1\f18bd193c2a1bbc0ee4f776805047c5953dfc07b
r
Bsrc/com/java8/features/LamdaExpressions/Function/BiFunctionEx.java,2\1\21b80283bc996cebfd3ae33e948907afe626bff2
o
?src/com/java8/features/LamdaExpressions/predicate/Example1.java,2\5\25b60393e7a04f12a7b4a2372904e2925021990a
t
Dsrc/com/java8/features/LamdaExpressions/predicate/BipredicateEx.java,3\c\3c518f41106cfadc48b6d2bedb42370e0f2c7bb6
z
Jsrc/com/java8/features/LamdaExpressions/UnaryOperator/UnaryOperatorEx.java,0\9\0986944ea6909963e94d78d7f48523204dc95a0d
q
Asrc/com/java8/features/LamdaExpressions/consumer/ConsumerEx1.java,4\6\46b22baab0141a99912aec832a75b4fad8779faa
w
Gsrc/com/java8/features/LamdaExpressions/UnaryOperator/BinaryOperEx.java,9\6\96ad86da270c5a2d347396f29ecafa0aba5c9811
^
.src/com/java8/features/Optional/Optional2.java,d\c\dce39d7a6c477851266bd9e122d093c15416c01d
_
/src/com/java8/features/Optional/OptionalEx.java,c\7\c7d0f9b4b56ae8f7b115c59867b7f088a54a3ba6
Z
*src/com/java8/features/Joiner/Joining.java,9\9\99f6a0657bb2862832545b4fc353a50209e2c3af
x
Hsrc/com/java8/features/FunctionalInterfaces/Collectors/CollectorsEx.java,e\6\e63180e7427bd0002d52f190e48336bfa6a57e54
y
Isrc/com/java8/features/FunctionalInterfaces/Collectors/CollectorsEx1.java,8\6\86fb7fbf8e5974e94fc9dc05974516a88d5a36fc
s
Csrc/com/java8/features/FunctionalInterfaces/streams/AnyMatchEx.java,7\b\7b4f8295878ba30136472a53db19ce7f51ebd9d0
v
Fsrc/com/java8/features/FunctionalInterfaces/streams/ComparatorEx2.java,c\f\cf038dda77d1c682720f32d4a304e0f7ddaaa99c
u
Esrc/com/java8/features/FunctionalInterfaces/streams/ComparatorEx.java,e\d\ed6be9a2b83fd0e89ddf99b2b994249d6d721c18
o
?src/com/java8/features/FunctionalInterfaces/streams/Filter.java,8\3\83574343c9305970a6b4a9762239693980cc9cf6
m
=src/com/java8/features/FunctionalInterfaces/streams/Find.java,f\1\f19a5bd2f4a7c52191ea0554beb3648c565a1fa5
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/FlatMapEx.java,0\a\0a3d66ede614ceb8af9b1f23007ab859dc649ccf
n
>src/com/java8/features/FunctionalInterfaces/streams/MapEx.java,f\8\f8943dfe823d899df1f87ed31b2f8c610576ec93
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/MaxAndMin.java,6\2\62d96ca5512f1d27fce331459756c6db2462ee23
n
>src/com/java8/features/FunctionalInterfaces/streams/Merge.java,e\f\efb93e5ee065b70a18e8a3fd6a6a84dc54789db4
m
=src/com/java8/features/FunctionalInterfaces/streams/Peek.java,4\e\4e0b40b82d9aecc6cec8cac98eec4270d65b1289
q
Asrc/com/java8/features/FunctionalInterfaces/streams/ReduceEx.java,7\e\7ebefa157b4964ef6791408592867d45c82e33e5
u
Esrc/com/java8/features/FunctionalInterfaces/streams/SkipAndLimit.java,0\3\032dc785d643246859605b6e83c564d887334fa7
q
Asrc/com/java8/features/FunctionalInterfaces/streams/SortedEx.java,0\7\072f8f0d1d00afd952a580b6501c114103bd28f1
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/SortedEx2.java,3\e\3e34e674927bc72cb714ea76b033df77ecb9442e
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/SortedEx3.java,a\6\a643d4dafddb944add6329f54cb3917737e4cd3b
w
Gsrc/com/java8/features/FunctionalInterfaces/streams/StreamCreation.java,d\8\d854eba82f15932b0adae7bb236c70de7439e712
p
@src/com/java8/features/FunctionalInterfaces/streams/ToArray.java,e\1\e18bff0e700a82c6f268fb5b850d5da4f5cce221
\
,src/com/java8/features/groupBy/Employee.java,7\0\70974f7ce66751aaa6f31f08a5170803c297cb0c
]
-src/com/java8/features/strings/Palindrom.java,c\0\c0633a7668bfbc06b875642bb2a5d67d8fc9fb19
\
,src/com/java8/features/strings/Solution.java,2\9\294195f2d58223dace8020f78bd28a0d610fbf18
`
0src/com/java8/features/strings/AngramString.java,b\c\bc304561b1182b62caee748a045ed5973d478751
\
,src/com/java8/features/strings/Example1.java,1\f\1f564eba41fee02a0e8d3dd83f911a26a3f9c547
^
.src/com/java8/features/strings/ExcelSheet.java,8\1\81118fc19a2685c99459825e14d7745a654d699c
_
/src/com/java8/features/strings/SplitString.java,b\b\bb3260572fd3c63a5b97c1c28b51b8e3e5c545ec
[
+src/com/java8/features/strings/String1.java,d\e\de4778ecba8f780abe9f6d332abc381c6747585f
[
+src/com/java8/features/strings/String2.java,b\b\bb5c13449c139e7820b9bc002919c527011464df
d
4src/com/java8/features/practice/EmployeeExample.java,0\a\0aeaa5504796555da4e847cac565694a2ff01717
`
0src/com/java8/features/practice/SortHashMap.java,e\1\e143ac7c0c6bfa094891382cb3a527d76ea13708
c
3src/com/java8/features/practice/OtherQuestions.java,a\9\a9a92d616273bd6247664470bd6d7d0d782c0e96
`
0src/com/java8/features/practice/SingletonEx.java,3\3\3361b75904040103eeafbcd4df732821b06a9153
]
-src/com/java8/features/groupBy/GroupByEx.java,c\b\cb58172ef1c0b75906b2729490f1cfab681b261a
\ No newline at end of file
.idea/workspace.xml
View file @
f73fc4d0
...
...
@@ -5,9 +5,33 @@
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"8f863ec8-1d44-4b4b-b95d-fc49f43d843d"
name=
"Changes"
comment=
"Second commit"
>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/groupBy/Employee.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/groupBy/GroupByEx.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/FunctionalInterfaces/streams/Merge.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/UnaryOperator/BinaryOperEx.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/UnaryOperator/UnaryOperatorEx.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/practice/EmployeeExample.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/practice/OtherQuestions.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/practice/SingletonEx.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/practice/SortHashMap.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/practice/Test.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/strings/AngramString.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/strings/Example1.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/strings/ExcelSheet.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/strings/Palindrom.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/strings/Solution.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/strings/SplitString.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/strings/String1.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/com/java8/features/strings/String2.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/com/java8/features/EmployeeUtils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/com/java8/features/EmployeeUtils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/com/java8/features/FunctionalInterfaces/streams/ComparatorEx.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/com/java8/features/FunctionalInterfaces/streams/ComparatorEx.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/Function/BiFunctionEx.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/Function/BiFunctionEx.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/Function/FunctionEx1.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/Function/FunctionEx1.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/SupplierEx.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/SupplierEx.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/consumer/ConsumerEx1.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/consumer/ConsumerEx1.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/predicate/BipredicateEx.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/predicate/BipredicateEx.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/predicate/Example1.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/predicate/Example1.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/com/java8/features/LamdaExpressions/predicate/Test.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/com/java8/features/Optional/OptionalEx.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/com/java8/features/Optional/OptionalEx.java"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -41,7 +65,11 @@
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
"last_opened_file_path": "C:/Users/rpannala/Downloads/spring-boot-r2dbc-h2-example-master"
"last_opened_file_path": "C:/Users/rpannala/Documents/Kafka-practice/spring-boot-kafka-microservices",
"project.structure.last.edited": "Libraries",
"project.structure.proportion": "0.0",
"project.structure.side.proportion": "0.2",
"settings.editor.selected.configurable": "preferences.pluginManager"
}
}]]>
</component>
<component
name=
"RecentsManager"
>
...
...
@@ -49,13 +77,13 @@
<recent
name=
"C:\Users\rpannala\Downloads\Java8POC\src\com\java8\features\Utils"
/>
</key>
</component>
<component
name=
"RunManager"
selected=
"Application.
GroupByEx
"
>
<configuration
name=
"
GroupBy
Ex"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.java8.features.
groupBy.GroupBy
Ex"
/>
<component
name=
"RunManager"
selected=
"Application.
Test
"
>
<configuration
name=
"
AnyMatch
Ex"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.java8.features.
FunctionalInterfaces.streams.AnyMatch
Ex"
/>
<module
name=
"Java8POC"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"com.java8.features.
groupBy
.*"
/>
<option
name=
"PATTERN"
value=
"com.java8.features.
FunctionalInterfaces.streams
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -63,12 +91,12 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"
Joining
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.java8.features.
Joiner.Joining
"
/>
<configuration
name=
"
EmployeeExample
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.java8.features.
practice.EmployeeExample
"
/>
<module
name=
"Java8POC"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"com.java8.features.
Joiner
.*"
/>
<option
name=
"PATTERN"
value=
"com.java8.features.
practice
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -76,12 +104,12 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"
Sorted
Ex"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.java8.features.
FunctionalInterfaces.streams.Sorted
Ex"
/>
<configuration
name=
"
Optional
Ex"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.java8.features.
Optional.Optional
Ex"
/>
<module
name=
"Java8POC"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"com.java8.features.
FunctionalInterfaces.streams
.*"
/>
<option
name=
"PATTERN"
value=
"com.java8.features.
Optional
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -89,12 +117,12 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"
SortedEx2
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.java8.features.
FunctionalInterfaces.streams.SortedEx2
"
/>
<configuration
name=
"
OtherQuestions
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.java8.features.
practice.OtherQuestions
"
/>
<module
name=
"Java8POC"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"com.java8.features.
FunctionalInterfaces.streams
.*"
/>
<option
name=
"PATTERN"
value=
"com.java8.features.
practice
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -102,12 +130,12 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"
SortedEx3
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.java8.features.
FunctionalInterfaces.streams.SortedEx3
"
/>
<configuration
name=
"
Test
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.java8.features.
practice.Test
"
/>
<module
name=
"Java8POC"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"com.java8.features.
FunctionalInterfaces.streams
.*"
/>
<option
name=
"PATTERN"
value=
"com.java8.features.
practice
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -117,11 +145,11 @@
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"Application.
GroupByEx
"
/>
<item
itemvalue=
"Application.
Joining
"
/>
<item
itemvalue=
"Application.
SortedEx3
"
/>
<item
itemvalue=
"Application.
SortedEx2
"
/>
<item
itemvalue=
"Application.
Sorted
Ex"
/>
<item
itemvalue=
"Application.
Test
"
/>
<item
itemvalue=
"Application.
OtherQuestions
"
/>
<item
itemvalue=
"Application.
EmployeeExample
"
/>
<item
itemvalue=
"Application.
OptionalEx
"
/>
<item
itemvalue=
"Application.
AnyMatch
Ex"
/>
</list>
</recent_temporary>
</component>
...
...
@@ -141,7 +169,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1678103647018
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"2"
/>
<task
id=
"LOCAL-00002"
summary=
"Second commit"
>
<created>
1678677687009
</created>
<option
name=
"number"
value=
"00002"
/>
<option
name=
"presentableId"
value=
"LOCAL-00002"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1678677687009
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"3"
/>
<servers
/>
</component>
<component
name=
"VcsManagerConfiguration"
>
...
...
@@ -149,4 +184,30 @@
<MESSAGE
value=
"Second commit"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"Second commit"
/>
</component>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
<breakpoints>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
file://$PROJECT_DIR$/src/com/java8/features/strings/ExcelSheet.java
</url>
<line>
35
</line>
<option
name=
"timeStamp"
value=
"5"
/>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
file://$PROJECT_DIR$/src/com/java8/features/strings/ExcelSheet.java
</url>
<line>
52
</line>
<option
name=
"timeStamp"
value=
"6"
/>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
file://$PROJECT_DIR$/src/com/java8/features/strings/ExcelSheet.java
</url>
<line>
53
</line>
<option
name=
"timeStamp"
value=
"8"
/>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
file://$PROJECT_DIR$/src/com/java8/features/strings/ExcelSheet.java
</url>
<line>
32
</line>
<option
name=
"timeStamp"
value=
"10"
/>
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
</project>
\ No newline at end of file
src/com/java8/features/EmployeeUtils.java
View file @
f73fc4d0
...
...
@@ -20,13 +20,14 @@ public class EmployeeUtils {
public
static
List
<
Employee
>
fetchEmployee1
()
{
List
<
Employee
>
empList
=
new
ArrayList
<>();
empList
.
add
(
new
Employee
(
3434
,
"Raghu"
,
"developer"
,
10001.00
,
"BA"
));
empList
.
add
(
new
Employee
(
123
,
"ashoke"
,
"manager"
,
10001.00
,
"DEV"
));
empList
.
add
(
new
Employee
(
424
,
"bharat"
,
"lead"
,
10002.00
,
"QA"
));
empList
.
add
(
new
Employee
(
621
,
"chandu"
,
"director"
,
10005.00
,
"BA"
));
empList
.
add
(
new
Employee
(
93
,
"danish"
,
"developer"
,
10006.00
,
"DEV"
));
empList
.
add
(
new
Employee
(
448
,
"eenadu"
,
"developer"
,
10001.00
,
"BA"
));
empList
.
add
(
new
Employee
(
432
,
"Ayaan"
,
"developer"
,
10001.00
,
"BA"
));
empList
.
add
(
new
Employee
(
3434
,
"Raghu"
,
"developer"
,
70000.00
,
"BA"
));
empList
.
add
(
new
Employee
(
123
,
"ashoke"
,
"manager"
,
1000.00
,
"DEV"
));
empList
.
add
(
new
Employee
(
424
,
"bharat"
,
"lead"
,
20000.00
,
"QA"
));
empList
.
add
(
new
Employee
(
621
,
"chandu"
,
"director"
,
100000.00
,
"BA"
));
empList
.
add
(
new
Employee
(
93
,
"danish"
,
"developer"
,
500000.00
,
"DEV"
));
empList
.
add
(
new
Employee
(
448
,
"eenadu"
,
"developer"
,
2000.00
,
"BA"
));
empList
.
add
(
new
Employee
(
432
,
"Ayaan"
,
"developer"
,
300000.00
,
"BA"
));
empList
.
add
(
new
Employee
(
426
,
"Bhargav"
,
"Enginnerr"
,
2000000.00
,
"QA"
));
return
empList
;
}
...
...
src/com/java8/features/FunctionalInterfaces/streams/ComparatorEx.java
View file @
f73fc4d0
...
...
@@ -8,6 +8,7 @@ import java.util.Collections;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.stream.Collector
;
import
java.util.stream.Collectors
;
public
class
ComparatorEx
{
...
...
@@ -15,6 +16,8 @@ public class ComparatorEx {
List
<
Employee
>
employeeList
=
EmployeeUtils
.
fetchEmployee
();
employeeList
.
stream
().
sorted
(
Comparator
.
comparing
(
Employee:
:
getFirstName
,
Comparator
.
nullsFirst
(
Comparator
.
reverseOrder
()))).
collect
(
Collectors
.
toList
());
Comparator
<
Employee
>
employeeComparator
=
Comparator
.
comparing
(
Employee:
:
getFirstName
);
Comparator
<
Employee
>
reversed
=
employeeComparator
.
reversed
();
Comparator
<
Employee
>
employeeComparator1
=
Comparator
.
comparingInt
(
Employee:
:
getId
);
...
...
@@ -36,6 +39,11 @@ public class ComparatorEx {
//Sort By LastName and Id
employeeList
.
stream
().
sorted
(
employeeComparator5
).
forEach
(
System
.
out
::
println
);
employeeList
.
stream
()
.
sorted
(
Comparator
.
comparing
(
Employee:
:
getSalary
)
.
thenComparing
(
Employee:
:
getFirstName
,
Comparator
.
nullsFirst
(
Comparator
.
reverseOrder
())))
.
collect
(
Collectors
.
toList
());
//Sort By ID and Salary
employeeList
.
stream
().
sorted
(
employeeComparator6
).
forEach
(
System
.
out
::
println
);
...
...
@@ -52,6 +60,8 @@ public class ComparatorEx {
employeeList
.
stream
()
.
sorted
(
Comparator
.
comparing
(
Employee:
:
getFirstName
,
Comparator
.
nullsLast
(
Comparator
.
reverseOrder
())))
.
forEach
(
System
.
out
::
println
);
employeeList
.
stream
().
sorted
(
Comparator
.
comparing
(
Employee:
:
getFirstName
,
Comparator
.
nullsLast
(
Comparator
.
reverseOrder
())));
}
}
src/com/java8/features/FunctionalInterfaces/streams/Merge.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
FunctionalInterfaces
.
streams
;
import
java.util.HashMap
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
import
java.util.stream.Collector
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
public
class
Merge
{
public
static
void
main
(
String
[]
args
)
{
//Map-1
HashMap
<
String
,
Integer
>
subjectToStudentCountMap1
=
new
HashMap
<>();
subjectToStudentCountMap1
.
put
(
"Maths"
,
45
);
subjectToStudentCountMap1
.
put
(
"Physics"
,
57
);
subjectToStudentCountMap1
.
put
(
"Chemistry"
,
52
);
subjectToStudentCountMap1
.
put
(
"History"
,
41
);
//Map-2
HashMap
<
String
,
Integer
>
subjectToStudentCountMap2
=
new
HashMap
<>();
subjectToStudentCountMap2
.
put
(
"Economics"
,
49
);
subjectToStudentCountMap2
.
put
(
"Maths"
,
42
);
subjectToStudentCountMap2
.
put
(
"Biology"
,
41
);
subjectToStudentCountMap2
.
put
(
"History"
,
55
);
HashMap
<
String
,
Integer
>
subjectToStudentCountMap3
=
new
HashMap
<>(
subjectToStudentCountMap1
);
subjectToStudentCountMap2
.
forEach
((
key
,
value
)
->
subjectToStudentCountMap3
.
merge
(
key
,
value
,
(
v1
,
v2
)
->
v1
+
v2
));
System
.
out
.
println
(
subjectToStudentCountMap3
);
HashMap
<
String
,
Integer
>
collect
=
Stream
.
of
(
subjectToStudentCountMap1
,
subjectToStudentCountMap2
)
.
flatMap
(
entry
->
entry
.
entrySet
().
stream
()).
collect
(
Collectors
.
toMap
(
Map
.
Entry
::
getKey
,
Map
.
Entry
::
getValue
,
Integer:
:
sum
,
HashMap:
:
new
));
System
.
out
.
println
(
collect
);
LinkedHashMap
<
String
,
Integer
>
collect1
=
collect
.
entrySet
().
stream
()
.
sorted
(
Map
.
Entry
.
comparingByKey
())
.
collect
(
Collectors
.
toMap
(
Map
.
Entry
::
getKey
,
Map
.
Entry
::
getValue
,
(
e1
,
e2
)
->
e1
,
LinkedHashMap:
:
new
));
System
.
out
.
println
(
collect1
);
collect
.
entrySet
().
stream
().
sorted
(
Map
.
Entry
.
comparingByKey
())
.
collect
(
Collectors
.
toMap
(
Map
.
Entry
::
getKey
,
Map
.
Entry
::
getValue
,(
e1
,
e2
)->
e1
,
LinkedHashMap:
:
new
));
/* LinkedHashMap<String, Integer> collect2 = collect.entrySet().stream().sorted(Map.Entry.comparingByValue().reversed()).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));
*/
}
}
src/com/java8/features/LamdaExpressions/Function/BiFunctionEx.java
View file @
f73fc4d0
...
...
@@ -4,8 +4,7 @@ import com.java8.features.Employee;
import
com.java8.features.EmployeeUtils
;
import
java.util.List
;
import
java.util.function.BiFunction
;
import
java.util.function.BiPredicate
;
import
java.util.function.*
;
import
java.util.stream.Collectors
;
public
class
BiFunctionEx
{
...
...
@@ -16,7 +15,22 @@ public class BiFunctionEx {
//List<Employee> matchedEmployees = fetchEmployeesMatchingToKey.apply("MOHAN", employees);
ToIntBiFunction
<
String
,
String
>
toIntBiFunction
=
(
s1
,
s2
)
->
{
return
Integer
.
parseInt
(
s1
)
+
Integer
.
parseInt
(
s2
);
};
ToDoubleBiFunction
<
Integer
,
Integer
>
toDoubleBiFunction
=
(
s1
,
s2
)
->
{
return
Double
.
valueOf
(
s1
)
+
Double
.
valueOf
(
s2
);
};
ToLongBiFunction
<
Double
,
Integer
>
toLongBiFunction
=
(
s1
,
s2
)
->
{
return
Double
.
valueOf
(
s1
).
longValue
()
+
Long
.
valueOf
(
s2
);
};
System
.
out
.
println
(
toIntBiFunction
.
applyAsInt
(
"1"
,
"4"
)
+
"--->"
+
toDoubleBiFunction
.
applyAsDouble
(
4
,
5
)
+
"---"
+
toLongBiFunction
.
applyAsLong
(
20.0
,
30
));
}
...
...
src/com/java8/features/LamdaExpressions/Function/FunctionEx1.java
View file @
f73fc4d0
...
...
@@ -7,19 +7,20 @@ import java.math.BigDecimal;
import
java.util.List
;
import
java.util.function.Consumer
;
import
java.util.function.Function
;
import
java.util.function.IntFunction
;
public
class
FunctionEx1
{
public
static
void
main
(
String
[]
args
)
{
Function
<
Integer
,
String
>
function
=
(
i
)->
i
+
"ravi"
;
Function
<
Integer
,
String
>
function
=
(
i
)
->
i
+
"ravi"
;
System
.
out
.
println
(
function
.
apply
(
2
));
Function
<
Integer
,
Integer
>
integerFunction
=
(
i
)->
i
*
i
;
Function
<
Integer
,
Integer
>
integerFunction
=
(
i
)
->
i
*
i
;
System
.
out
.
println
(
integerFunction
.
apply
(
5
));
Function
<
String
,
String
>
function1
=
x
->
"First"
+
x
;
Function
<
String
,
String
>
function2
=
x
->
"Second"
+
x
;
Function
<
String
,
String
>
function1
=
x
->
"First"
+
x
;
Function
<
String
,
String
>
function2
=
x
->
"Second"
+
x
;
Function
<
String
,
String
>
stringFunction
=
function1
.
andThen
(
function2
);
System
.
out
.
println
(
stringFunction
.
apply
(
"Ravinder"
));
...
...
@@ -33,23 +34,32 @@ public class FunctionEx1 {
List
<
Employee
>
employees
=
EmployeeUtils
.
fetchEmployee
();
Function
<
Employee
,
String
>
function3
=
(
employee
)->
{
return
employee
.
getFirstName
()
+
employee
.
getLastName
();
Function
<
Employee
,
String
>
function3
=
(
employee
)
->
{
return
employee
.
getFirstName
()
+
employee
.
getLastName
();
};
Consumer
<
String
>
employeeConsumer
=
employee
->
System
.
out
.
println
(
employee
);
Consumer
<
String
>
employeeConsumer
=
employee
->
System
.
out
.
println
(
employee
);
employees
.
stream
().
map
(
function3
).
forEach
(
employeeConsumer
);
Function
<
Double
,
BigDecimal
>
decimalFunction
=
(
salary
)->
{
Function
<
Double
,
BigDecimal
>
decimalFunction
=
(
salary
)
->
{
return
new
BigDecimal
(
salary
);
};
employees
.
stream
().
map
(
e
->
e
.
getSalary
()).
map
(
decimalFunction
).
forEach
(
System
.
out
::
println
);
employees
.
stream
().
map
(
e
->
e
.
getSalary
()).
map
(
decimalFunction
).
forEach
(
System
.
out
::
println
);
Function
<
Employee
,
Employee
>
employeeFunction
=
(
employee
)->
{
Function
<
Employee
,
Employee
>
employeeFunction
=
(
employee
)
->
{
String
fullName
=
new
StringBuilder
().
append
(
employee
.
getFirstName
()).
append
(
employee
.
getLastName
()).
toString
();
employee
.
setFirstName
(
fullName
);
return
employee
;
};
Consumer
<
Employee
>
employeeConsumer1
=
(
e
)->
System
.
out
.
println
(
e
);
Consumer
<
Employee
>
employeeConsumer1
=
(
e
)
->
System
.
out
.
println
(
e
);
employees
.
stream
().
map
(
employeeFunction
).
forEach
(
employeeConsumer1
);
Function
<
String
,
String
>
function4
=
(
s
)
->
s
.
substring
(
1
);
Function
<
String
,
String
>
function5
=
function4
.
andThen
(
s
->
s
.
toUpperCase
());
System
.
out
.
println
(
function5
.
apply
(
"ravinder"
));
IntFunction
<
Double
>
intFunction
=
a
->
a
/
2.0
;
System
.
out
.
println
(
intFunction
.
apply
(
3
));
}
}
src/com/java8/features/LamdaExpressions/SupplierEx.java
View file @
f73fc4d0
...
...
@@ -2,6 +2,9 @@ package com.java8.features.LamdaExpressions;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.function.DoubleSupplier
;
import
java.util.function.IntSupplier
;
import
java.util.function.LongSupplier
;
import
java.util.function.Supplier
;
public
class
SupplierEx
{
...
...
@@ -12,13 +15,22 @@ public class SupplierEx {
Supplier
<
Boolean
>
booleanSupplier
=
()
->
name
.
length
()
>
4
;
Supplier
<
Integer
>
integerSupplier
=
()
->
name
.
indexOf
(
'R'
);
Supplier
<
String
>
supplier
=
(
)
->
name
.
toLowerCase
();
Supplier
<
String
>
supplier
=
(
)
->
name
.
toLowerCase
();
Supplier
<
List
>
supplier1
=
()
->
new
ArrayList
();
Supplier
<
List
>
supplier1
=
()
->
new
ArrayList
();
System
.
out
.
println
(
booleanSupplier
.
get
());
System
.
out
.
println
(
integerSupplier
.
get
());
System
.
out
.
println
(
supplier
.
get
());
System
.
out
.
println
(
supplier1
.
get
());
Supplier
<
String
>
supplier2
=
()
->
name
;
System
.
out
.
println
(
supplier2
.
get
());
IntSupplier
supplier3
=
()
->
0
;
DoubleSupplier
supplier4
=
()
->
0.0
;
LongSupplier
supplier5
=
()
->
0L
;
System
.
out
.
println
(
supplier3
.
getAsInt
()
+
"-->"
+
supplier4
.
getAsDouble
()
+
"-->"
+
supplier5
.
getAsLong
());
}
}
src/com/java8/features/LamdaExpressions/UnaryOperator/BinaryOperEx.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
LamdaExpressions
.
UnaryOperator
;
import
java.util.function.BinaryOperator
;
public
class
BinaryOperEx
{
public
static
void
main
(
String
[]
args
)
{
BinaryOperator
<
Integer
>
binaryOperator
=
BinaryOperator
.
maxBy
((
a
,
b
)
->
a
.
compareTo
(
b
));
System
.
out
.
println
(
binaryOperator
.
apply
(
100
,
200
));
BinaryOperator
<
Integer
>
binaryOperator1
=
BinaryOperator
.
minBy
((
a
,
b
)
->
a
.
compareTo
(
b
));
System
.
out
.
println
(
binaryOperator1
.
apply
(
100
,
200
));
}
}
src/com/java8/features/LamdaExpressions/UnaryOperator/UnaryOperatorEx.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
LamdaExpressions
.
UnaryOperator
;
import
java.util.function.DoubleUnaryOperator
;
import
java.util.function.IntUnaryOperator
;
import
java.util.function.LongUnaryOperator
;
import
java.util.function.UnaryOperator
;
public
class
UnaryOperatorEx
{
public
static
void
main
(
String
[]
args
)
{
UnaryOperator
<
String
>
unaryOperator
=
(
s
)->
s
.
toUpperCase
();
System
.
out
.
println
(
unaryOperator
.
apply
(
"Ravi"
));
IntUnaryOperator
intUnaryOperator
=
(
a
)->
Math
.
decrementExact
(
a
);
System
.
out
.
println
(
intUnaryOperator
.
applyAsInt
(
10
));
DoubleUnaryOperator
doubleUnaryOperator
=
(
b
)->
Math
.
abs
(
b
);
System
.
out
.
println
(
doubleUnaryOperator
.
applyAsDouble
(
20.00
));
LongUnaryOperator
longUnaryOperator
=
(
c
)->
Math
.
incrementExact
(
c
);
System
.
out
.
println
(
longUnaryOperator
.
applyAsLong
(
30L
));
}
}
src/com/java8/features/LamdaExpressions/consumer/ConsumerEx1.java
View file @
f73fc4d0
...
...
@@ -4,8 +4,7 @@ import com.java8.features.Employee;
import
com.java8.features.EmployeeUtils
;
import
java.util.List
;
import
java.util.function.BiConsumer
;
import
java.util.function.Consumer
;
import
java.util.function.*
;
public
class
ConsumerEx1
{
...
...
@@ -14,6 +13,7 @@ public class ConsumerEx1 {
System
.
out
.
println
(
"Hello"
);
};
Consumer
<
Integer
>
integerConsumer
=
(
i
)
->
{
return
;
};
...
...
@@ -34,6 +34,34 @@ public class ConsumerEx1 {
BiConsumer
<
String
,
String
>
biConsumer
=
(
s1
,
s2
)->
System
.
out
.
println
(
s1
+
" "
+
s2
);
BiConsumer
<
String
,
String
>
biConsumer1
=
biConsumer
.
andThen
((
s1
,
s2
)
->
System
.
out
.
println
(
s1
.
toLowerCase
()
+
""
+
s2
.
toUpperCase
()));
biConsumer1
.
accept
(
"Ravi"
,
"Pannala"
);
Consumer
<
String
>
consumer1
=
(
name
)->{
System
.
out
.
println
(
name
+
" --name of the value--"
);
};
consumer1
.
andThen
(
s
->
System
.
out
.
println
(
s
.
toUpperCase
())).
accept
(
"Ravinder"
);
BiConsumer
<
String
,
String
>
biConsumer2
=
(
s1
,
s2
)->{
System
.
out
.
println
(
"Actual ---name"
+
s1
+
"--SurName--"
+
s2
);
};
biConsumer2
.
andThen
((
s1
,
s2
)->
System
.
out
.
println
(
s1
.
toUpperCase
()+
" "
+
s2
.
toUpperCase
())).
accept
(
"Ravinder"
,
"Pannala"
);
IntConsumer
intConsumer
=
(
a
)->{
System
.
out
.
println
(
a
);
};
intConsumer
.
accept
(
10
);
DoubleConsumer
doubleConsumer
=
(
b
)->{
System
.
out
.
println
(
b
);
};
doubleConsumer
.
accept
(
200
);
LongConsumer
longConsumer
=
(
c
)->{
System
.
out
.
println
(
c
);
};
longConsumer
.
accept
(
20L
);
}
}
src/com/java8/features/LamdaExpressions/predicate/BipredicateEx.java
View file @
f73fc4d0
...
...
@@ -15,5 +15,12 @@ public class BipredicateEx {
BiPredicate
<
Integer
,
Integer
>
biPredicate2
=
(
i1
,
i2
)->
i1
>
20
&&
i2
<
20
;
System
.
out
.
println
(
biPredicate2
.
test
(
30
,
10
));
BiPredicate
<
String
,
Integer
>
biPredicate3
=
(
s
,
a
)->{
return
s
.
equals
(
"Ravi"
)
&&
a
>
5
;
};
BiPredicate
<
String
,
Integer
>
andPredicate
=
biPredicate3
.
or
((
s
,
a
)
->
s
.
endsWith
(
"vi"
)
&&
a
>=
5
);
System
.
out
.
println
(
andPredicate
.
test
(
"Ravi"
,
5
));
}
}
src/com/java8/features/LamdaExpressions/predicate/Example1.java
View file @
f73fc4d0
...
...
@@ -2,8 +2,7 @@ package com.java8.features.LamdaExpressions.predicate;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.function.BiPredicate
;
import
java.util.function.Predicate
;
import
java.util.function.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
...
...
@@ -28,26 +27,40 @@ public class Example1 {
Predicate
<
Integer
>
and
=
integerPredicate
.
or
(
i
->
i
.
equals
(
0
)).
and
(
i
->
i
>=
0
);
System
.
out
.
println
(
and
.
test
(
20
));
Predicate
<
String
>
stringPredicate
=
(
string
)
->
{
List
<
String
>
list
=
Arrays
.
asList
(
"Ravi"
,
"Ramu"
);
Predicate
<
String
>
stringPredicate
=
(
string
)
->
{
List
<
String
>
list
=
Arrays
.
asList
(
"Ravi"
,
"Ramu"
);
boolean
contains
=
list
.
contains
(
string
);
return
contains
;
};
System
.
out
.
println
(
stringPredicate
.
test
(
"Hello"
));
Predicate
<
Integer
>
even
=
i
->
i
%
2
==
0
;
Predicate
<
Integer
>
even
=
i
->
i
%
2
==
0
;
Predicate
<
Integer
>
odd
=
even
.
negate
();
List
<
Integer
>
integers
=
Arrays
.
asList
(
1
,
4
,
2
,
3
,
5
,
6
,
2
,
3
);
List
<
Integer
>
integers
=
Arrays
.
asList
(
1
,
4
,
2
,
3
,
5
,
6
,
2
,
3
);
List
<
Integer
>
collect
=
integers
.
stream
().
filter
(
even
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
collect1
=
integers
.
stream
().
filter
(
odd
).
collect
(
Collectors
.
toList
());
collect1
.
forEach
(
c
->
System
.
out
.
println
(
c
));
collect1
.
forEach
(
c
->
System
.
out
.
println
(
c
));
//BiPredicate
BiPredicate
<
Integer
,
String
>
biPredicate
=
(
i
,
s
)->
i
>
3
&&
s
.
equals
(
"Ravi"
);
BiPredicate
<
Integer
,
String
>
biPredicate
=
(
i
,
s
)
->
i
>
3
&&
s
.
equals
(
"Ravi"
);
System
.
out
.
println
(
biPredicate
.
test
(
10
,
"Ravi"
));
System
.
out
.
println
(
biPredicate
.
test
(
10
,
"Ravi"
));
Predicate
<
Integer
>
evenPredicate
=
a
->
a
%
2
==
0
;
List
<
Integer
>
integers1
=
Arrays
.
asList
(
1
,
4
,
5
,
6
,
7
,
8
);
List
<
Integer
>
collect2
=
integers1
.
stream
().
filter
(
evenPredicate
).
collect
(
Collectors
.
toList
());
IntPredicate
intPredicate
=
a
->
a
>
5
;
intPredicate
.
test
(
10
);
LongPredicate
longPredicate
=
b
->
b
<
2
;
longPredicate
.
or
(
b
->
b
<=
2
).
test
(
1
);
DoublePredicate
doublePredicate
=
c
->
c
>
3
;
doublePredicate
.
negate
().
test
(
4
);
}
}
src/com/java8/features/LamdaExpressions/predicate/Test.java
deleted
100644 → 0
View file @
859f5ca0
package
com
.
java8
.
features
.
LamdaExpressions
.
predicate
;
public
class
Test
{
}
src/com/java8/features/Optional/OptionalEx.java
View file @
f73fc4d0
...
...
@@ -11,33 +11,47 @@ public class OptionalEx {
Optional
<
Object
>
empty
=
Optional
.
empty
();
//String name=null; Null Pointer Exception will get
String
name
=
"Ravi"
;
String
name
=
"Ravi"
;
Optional
<
String
>
name1
=
Optional
.
of
(
name
);
System
.
out
.
println
(
name1
.
get
());
String
s
=
"Hello"
;
String
s
=
"Hello"
;
Optional
<
String
>
s1
=
Optional
.
ofNullable
(
s
);
//If s value available it will s value other wise it give Optional.empty
System
.
out
.
println
(
s1
.
get
());
//If you get value if it is not present java.util.NoSuchElementException
String
str1
=
null
;
String
value
=
Optional
.
ofNullable
(
str1
).
orElse
(
"Ravi"
);
System
.
out
.
println
(
"If value is not present -->"
+
value
);
System
.
out
.
println
(
"If value is not present -->"
+
value
);
Supplier
<
String
>
stringSupplier
=
()
->
"Pannala"
;
// If value is not present then it will give supplier value
Supplier
<
String
>
stringSupplier
=
()
->
"Pannala"
;
// If value is not present then it will give supplier value
String
s2
=
Optional
.
ofNullable
(
str1
).
orElseGet
(
stringSupplier
);
System
.
out
.
println
(
"If value is not present then it will give supplier value-->"
+
s2
);
System
.
out
.
println
(
"If value is not present then it will give supplier value-->"
+
s2
);
//if value is not present then it will give supplier object
Supplier
<
NullPointerException
>
exceptionSupplier
=
()
->
new
NullPointerException
(
"Value is not resent"
);
String
s3
=
Optional
.
ofNullable
(
str1
).
orElseThrow
(
exceptionSupplier
);
System
.
out
.
println
(
"if value is not present then it will give supplier object-->"
+
s3
);
// Supplier<NullPointerException> exceptionSupplier = ()
-> new NullPointerException("Value is not resent");
//
String s3 = Optional.ofNullable(str1).orElseThrow(exceptionSupplier);
//System.out.println("if value is not present then it will give supplier object-->" +
s3);
Optional
<
String
>
s4
=
Optional
.
of
(
s
);
if
(
s4
.
isPresent
()){
System
.
out
.
println
(
"Value present--->"
+
s4
.
get
());
if
(
s4
.
isPresent
())
{
System
.
out
.
println
(
"Value present--->"
+
s4
.
get
());
}
Optional
<
String
>
opt
=
Optional
.
ofNullable
(
null
);
// we're dead
System
.
out
.
println
(
"OrElse ---->"
+
opt
.
orElse
(
destroyTheWorld
()));
// we're safe
System
.
out
.
println
(
"OrElse Get----->"
+
opt
.
orElseGet
(()
->
destroyTheWorld
()));
}
static
String
destroyTheWorld
()
{
// destroy the world logic
return
"successfully destroyed the world"
;
}
}
src/com/java8/features/practice/EmployeeExample.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
practice
;
import
com.java8.features.Employee
;
import
com.java8.features.EmployeeUtils
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Optional
;
import
java.util.stream.Collectors
;
public
class
EmployeeExample
{
public
static
void
main
(
String
[]
args
)
{
List
<
Employee
>
employees
=
EmployeeUtils
.
fetchEmployee1
();
//sort the employees by sal in asc?
List
<
Employee
>
collect
=
employees
.
stream
().
sorted
(
Comparator
.
comparing
(
Employee:
:
getSalary
)).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
collect
);
//sort the employees by sal in desc?
List
<
Employee
>
collect1
=
employees
.
stream
().
sorted
(
Comparator
.
comparing
(
Employee:
:
getSalary
).
reversed
()).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
collect1
);
//Maximum salary employee
Employee
employee
=
employees
.
stream
().
max
(
Comparator
.
comparing
(
Employee:
:
getSalary
)).
get
();
System
.
out
.
println
(
"Maximum salary employee--->"
+
employee
);
//Minimum salary employee
Employee
employee1
=
employees
.
stream
().
min
(
Comparator
.
comparing
(
Employee:
:
getSalary
)).
get
();
System
.
out
.
println
(
"Minimum salary employee--->"
+
employee1
);
//Second Maximum salary employee
Employee
secondMaximum
=
employees
.
stream
().
sorted
(
Comparator
.
comparing
(
Employee:
:
getSalary
).
reversed
()).
skip
(
1
).
findFirst
().
get
();
System
.
out
.
println
(
"Second Maximum salary employee--->"
+
secondMaximum
);
List
<
Employee
>
collect2
=
employees
.
stream
().
sorted
(
Comparator
.
comparing
(
Employee:
:
getSalary
)).
limit
(
2
).
skip
(
1
).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
"Second Minimum salary employee--->"
+
collect2
);
//get the Employees by Department
Map
<
String
,
List
<
Employee
>>
collect3
=
employees
.
stream
().
collect
(
Collectors
.
groupingBy
(
Employee:
:
getDept
));
System
.
out
.
println
(
"Get the Employees by Department--->"
+
collect3
);
//Get The Maximum salary of Employee in each department ?
Map
<
String
,
Optional
<
Employee
>>
collect4
=
employees
.
stream
().
collect
(
Collectors
.
groupingBy
(
Employee:
:
getDept
,
Collectors
.
maxBy
(
Comparator
.
comparing
(
Employee:
:
getSalary
))));
System
.
out
.
println
(
"Get The Maximum salary of Employee in each department-->"
+
collect4
);
//Get The Minimum salary of Employee in each department ?
Map
<
String
,
Optional
<
Employee
>>
collect5
=
employees
.
stream
().
collect
(
Collectors
.
groupingBy
(
Employee:
:
getDept
,
Collectors
.
minBy
(
Comparator
.
comparing
(
Employee:
:
getSalary
))));
System
.
out
.
println
(
"Get The Minimum salary of Employee in each department-->"
+
collect5
);
//Get the department and their employees count?
Map
<
String
,
Long
>
collect6
=
employees
.
stream
().
collect
(
Collectors
.
groupingBy
(
Employee:
:
getDept
,
Collectors
.
counting
()));
System
.
out
.
println
(
"Get the department and their employees count?-->"
+
collect6
);
//Get Max Sa
employees
.
stream
().
sorted
(
Comparator
.
comparing
(
Employee:
:
getSalary
).
reversed
()).
skip
(
1
).
findFirst
();
}
}
src/com/java8/features/practice/OtherQuestions.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
practice
;
import
java.util.*
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.IntStream
;
import
java.util.stream.Stream
;
public
class
OtherQuestions
{
public
static
void
main
(
String
[]
args
)
{
//Duplicate Number From a List?
List
<
Integer
>
list
=
Arrays
.
asList
(
1
,
2
,
3
,
4
,
3
,
1
);
List
<
Integer
>
collect
=
list
.
stream
()
.
collect
(
Collectors
.
groupingBy
(
Function
.
identity
(),
Collectors
.
counting
()))
.
entrySet
().
stream
().
filter
(
m
->
m
.
getValue
()
>
1
).
map
(
Map
.
Entry
::
getKey
).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
"Duplicate Numbers from list"
+
collect
);
//Duplicate Number from List
Set
<
Integer
>
collect1
=
list
.
stream
().
filter
(
m
->
Collections
.
frequency
(
list
,
m
)
>
1
).
collect
(
Collectors
.
toSet
());
System
.
out
.
println
(
"Duplicate Numbers from list"
+
collect1
);
list
.
stream
().
filter
(
m
->
Collections
.
frequency
(
list
,
m
)>
1
).
collect
(
Collectors
.
toList
());
//How to remove duplicates from a collection list of integers
List
<
Integer
>
collect3
=
list
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
"How to remove duplicates from a collection list of integers"
+
collect3
);
//Occurrence of a Character from a String?
String
s
=
"Ravinder"
;
Map
<
Character
,
Long
>
collect2
=
s
.
chars
()
.
mapToObj
(
c
->
(
char
)
c
)
.
collect
(
Collectors
.
groupingBy
(
Function
.
identity
(),
Collectors
.
counting
()));
System
.
out
.
println
(
"Occurrence of a Character from a String"
+
collect2
);
//Reverse a collections
List
<
Integer
>
reverseCollection
=
list
.
stream
().
sorted
(
Comparator
.
reverseOrder
()).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
"Reverse a collections"
+
reverseCollection
);
List
<
Integer
>
integers
=
Arrays
.
asList
(
3
,
6
,
2
,
1
,
7
,
2
);
Collections
.
reverse
(
integers
);
System
.
out
.
println
(
"Reverse a collections using"
+
integers
);
/* //remove-all-occurrences-from-String
List<String> stringList = Arrays.asList("A","B","C","A","B");
List<String> collect4 = stringList.stream().filter(i -> !Objects.equals(i, stringList)).collect(Collectors.toList());
System.out.println("remove-all-occurrences-from-String" + collect4);*/
}
}
src/com/java8/features/practice/SingletonEx.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
practice
;
public
class
SingletonEx
{
private
SingletonEx
singletonEx
;
private
SingletonEx
()
{
}
public
SingletonEx
getInstance
()
{
if
(
singletonEx
==
null
)
{
singletonEx
=
new
SingletonEx
();
}
return
singletonEx
;
}
}
src/com/java8/features/practice/SortHashMap.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
practice
;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
static
java
.
util
.
Map
.
Entry
.
comparingByKey
;
public
class
SortHashMap
{
public
static
void
main
(
String
[]
args
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"ravinder"
,
"Pannala"
);
map
.
put
(
"Lavanya"
,
"Etykyla"
);
map
.
put
(
"Madhu"
,
"Katippelyy"
);
map
.
put
(
"Ayaan"
,
"Aleti"
);
map
.
put
(
"Jithendhar"
,
"Yenugu"
);
LinkedHashMap
<
String
,
String
>
collect
=
map
.
entrySet
().
stream
().
sorted
(
Map
.
Entry
.
comparingByKey
()).
collect
(
Collectors
.
toMap
(
Map
.
Entry
::
getKey
,
Map
.
Entry
::
getValue
,
(
e1
,
e2
)
->
e1
,
LinkedHashMap:
:
new
));
LinkedHashMap
<
String
,
String
>
collect1
=
map
.
entrySet
().
stream
().
sorted
(
comparingByKey
(
Collections
.
reverseOrder
())).
collect
(
Collectors
.
toMap
(
Map
.
Entry
::
getKey
,
Map
.
Entry
::
getValue
,
(
e1
,
e2
)
->
e1
,
LinkedHashMap:
:
new
));
LinkedHashMap
<
String
,
String
>
collect2
=
map
.
entrySet
().
stream
().
sorted
(
Map
.
Entry
.
comparingByValue
()).
collect
(
Collectors
.
toMap
(
Map
.
Entry
::
getKey
,
Map
.
Entry
::
getValue
,
(
e1
,
e2
)
->
e1
,
LinkedHashMap:
:
new
));
LinkedHashMap
<
String
,
String
>
collect3
=
map
.
entrySet
().
stream
().
sorted
(
Collections
.
reverseOrder
(
Map
.
Entry
.
comparingByValue
())).
collect
(
Collectors
.
toMap
(
Map
.
Entry
::
getKey
,
Map
.
Entry
::
getValue
,
(
e1
,
e2
)
->
e1
,
LinkedHashMap:
:
new
));
System
.
out
.
println
(
"Sort By Keys--->"
+
collect
);
System
.
out
.
println
(
"Sort By Keys DESC--->"
+
collect1
);
System
.
out
.
println
(
"Sort By Values--->"
+
collect2
);
System
.
out
.
println
(
"Sort By Values DESC--->"
+
collect3
);
}
}
src/com/java8/features/practice/Test.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
practice
;
import
java.util.*
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
public
class
Test
{
public
static
void
main
(
String
[]
args
)
{
List
<
Number
>
list
=
Arrays
.
asList
(
1
,
33.2
,
3
,
4
);
list
.
stream
().
map
(
s
->
s
+
""
).
filter
(
a
->
a
.
contains
(
"3"
)).
forEach
(
System
.
out
::
println
);
//List of Even Numbers and Odd Numbers from List
List
<
Integer
>
integers
=
Arrays
.
asList
(
1
,
4
,
2
,
5
,
6
,
3
,
7
,
8
,
9
);
List
<
Integer
>
even
=
integers
.
stream
().
filter
(
i
->
i
%
2
==
0
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
odd
=
integers
.
stream
().
filter
(
i
->
i
%
2
!=
0
).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
even
+
" even--->"
);
System
.
out
.
println
(
odd
+
"--->odd"
);
//Given a list of integers, find out all the numbers starting with 1 using Stream functions?
List
<
Integer
>
integers1
=
Arrays
.
asList
(
1
,
14
,
2
,
5
,
6
,
13
,
7
,
18
,
91
);
List
<
String
>
collect
=
integers1
.
stream
().
map
(
s
->
s
+
""
).
filter
(
a
->
a
.
startsWith
(
"1"
)).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
collect
+
"--->Number start with 1"
);
// How to find duplicate elements in a given integers list in java using Stream functions?
List
<
Integer
>
integers2
=
Arrays
.
asList
(
18
,
13
,
2
,
5
,
6
,
13
,
7
,
18
,
91
);
List
<
Integer
>
collect1
=
integers2
.
stream
().
collect
(
Collectors
.
groupingBy
(
Function
.
identity
(),
Collectors
.
counting
()))
.
entrySet
().
stream
().
filter
(
m
->
m
.
getValue
()
>
1
).
map
(
Map
.
Entry
::
getKey
).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
collect1
+
"--->find duplicate elements in a given integers"
);
//How to find duplicate characters from String
String
name
=
"ravinder pannala"
;
List
<
Character
>
collect2
=
name
.
chars
().
mapToObj
(
c
->
(
char
)
c
).
collect
(
Collectors
.
groupingBy
(
Function
.
identity
(),
Collectors
.
counting
()))
.
entrySet
().
stream
().
filter
(
s
->
s
.
getValue
()
>
1
).
map
(
Map
.
Entry
::
getKey
).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
collect2
+
"---> duplicate characters from String"
);
//Given a list of integers, find the maximum value element present in it using Stream functions?
Integer
integer
=
integers2
.
stream
().
max
(
Comparator
.
comparing
(
a
->
a
)).
get
();
Integer
integer1
=
integers2
.
stream
().
max
(
Integer:
:
compareTo
).
get
();
System
.
out
.
println
(
integer
+
"---> find the maximum value element present in--->"
+
integer1
);
//Given a String, find the first non-repeated character in it using Stream functions
Optional
<
Character
>
first
=
name
.
chars
().
mapToObj
(
ch
->
(
char
)
ch
).
collect
(
Collectors
.
groupingBy
(
Function
.
identity
(),
Collectors
.
counting
()))
.
entrySet
().
stream
().
filter
(
m
->
m
.
getValue
()
==
1L
).
map
(
Map
.
Entry
::
getKey
).
findFirst
();
System
.
out
.
println
(
"find the first non-repeated character"
+
first
.
get
());
//Given a list of integers, sort all the values present in it using Stream functions?
List
<
Integer
>
collect3
=
integers2
.
stream
().
sorted
(
Comparator
.
comparing
(
a
->
a
)).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
"sort all the values present in it using Stream functions"
+
collect3
);
//Given a list of integers, sort all the values present reverse order in it using Stream functions?
List
<
Integer
>
collect4
=
integers2
.
stream
().
sorted
(
Collections
.
reverseOrder
()).
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
"sort all the values present reverse order in it using"
+
collect4
);
}
}
src/com/java8/features/strings/AngramString.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
strings
;
import
java.util.Arrays
;
public
class
AngramString
{
public
static
void
main
(
String
[]
args
)
{
boolean
b
=
anagramString
(
"anagram"
,
"margana"
);
if
(
b
)
{
System
.
out
.
println
(
"anagram"
);
}
else
{
System
.
out
.
println
(
"Not anagrams"
);
}
}
public
static
boolean
anagramString
(
String
input1
,
String
input2
)
{
input1
=
input1
.
replaceAll
(
"\\s"
,
""
);
input2
=
input2
.
replaceAll
(
"\\s"
,
""
);
boolean
test
=
true
;
if
(
input1
.
length
()
!=
input2
.
length
())
{
test
=
false
;
}
else
{
char
[]
chars1
=
input1
.
toLowerCase
().
toCharArray
();
char
[]
chars2
=
input2
.
toLowerCase
().
toCharArray
();
Arrays
.
sort
(
chars1
);
Arrays
.
sort
(
chars2
);
test
=
Arrays
.
equals
(
chars1
,
chars2
);
}
return
test
;
}
}
src/com/java8/features/strings/Example1.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
strings
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Scanner
;
public
class
Example1
{
public
static
void
main
(
String
[]
args
)
{
List
<
String
>
list
=
new
ArrayList
<>();
Scanner
scan
=
new
Scanner
(
System
.
in
);
String
s
=
scan
.
nextLine
();
list
=
generate
(
s
);
System
.
out
.
println
(
list
);
}
public
static
List
<
String
>
generate
(
String
input
)
{
if
(
input
.
isEmpty
()
&&
input
.
length
()
==
0
)
{
return
null
;
}
List
<
String
>
result
=
new
ArrayList
<>();
String
cells
[]
=
input
.
split
(
":"
);
if
(
cells
.
length
!=
2
)
{
return
null
;
}
String
startcell
=
cells
[
0
];
String
endcell
=
cells
[
1
];
if
(!
startcell
.
isEmpty
()
&&
startcell
.
length
()
>
1
&&
!
endcell
.
isEmpty
()
&&
endcell
.
length
()
>
1
)
{
if
(
Character
.
isAlphabetic
(
startcell
.
charAt
(
0
))
&&
Character
.
isAlphabetic
(
endcell
.
charAt
(
0
)))
{
char
startcoloumn
=
Character
.
toUpperCase
(
startcell
.
charAt
(
0
));
char
endcoloumn
=
Character
.
toUpperCase
(
endcell
.
charAt
(
0
));
int
startrow
=
Integer
.
parseInt
(
startcell
.
substring
(
1
));
int
endrow
=
Integer
.
parseInt
(
endcell
.
substring
(
1
));
for
(
char
col
=
startcoloumn
;
col
<=
endcoloumn
;
col
++)
{
System
.
out
.
println
(
col
);
for
(
int
i
=
startrow
;
i
<=
endrow
;
i
++)
{
result
.
add
(
Character
.
toString
(
col
)
+
i
);
}
}
}
}
return
result
;
}
}
\ No newline at end of file
src/com/java8/features/strings/ExcelSheet.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
strings
;
import
java.io.StringReader
;
import
java.nio.CharBuffer
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Scanner
;
import
java.util.StringJoiner
;
import
java.util.stream.Collectors
;
public
class
ExcelSheet
{
//A B
//D5:D5
//A2:B
//2A:B1
//empty
//2A:
//22:33
//d5:a2A
//A2:b12
public
static
void
main
(
String
[]
args
)
{
Scanner
scan
=
new
Scanner
(
System
.
in
);
String
s
=
scan
.
nextLine
();
if
(
s
.
isEmpty
()
&&
s
.
length
()
==
0
)
{
System
.
out
.
println
(
"Please provide proper output"
);
}
else
{
String
[]
excelSheet
=
s
.
split
(
":"
);
if
(
excelSheet
!=
null
&
excelSheet
.
length
>
1
)
{
String
sheet1
=
excelSheet
[
0
];
//--A1
String
sheet2
=
excelSheet
[
1
];
//--B12
if
((!
sheet1
.
isEmpty
()
&&
sheet1
.
length
()
>
1
)
&&
(!
sheet2
.
isEmpty
()
&&
sheet2
.
length
()
>
1
))
{
if
(
sheet1
.
matches
(
".*\\d.*"
)
&&
sheet2
.
matches
(
".*\\d.*"
))
{
if
(
Character
.
isAlphabetic
(
sheet1
.
charAt
(
0
))
&&
Character
.
isAlphabetic
(
sheet2
.
charAt
(
0
)))
{
int
istart
=
Character
.
codePointAt
(
sheet1
,
0
);
int
iend
=
Character
.
codePointAt
(
sheet2
,
0
);
int
beginRowNumber
=
Integer
.
parseInt
(
sheet1
.
substring
(
1
,
sheet1
.
length
()));
int
endRowNumber
=
Integer
.
parseInt
(
sheet2
.
substring
(
1
,
sheet2
.
length
()));
System
.
out
.
println
(
"Jstart-->+"
+
beginRowNumber
+
"''''"
+
endRowNumber
);
List
<
String
>
list
=
new
ArrayList
<>();
if
(
istart
<=
iend
)
{
for
(
int
i
=
istart
;
i
<=
iend
;
i
++)
{
for
(
int
j
=
beginRowNumber
;
j
<=
endRowNumber
;
j
++)
{
list
.
add
(
Character
.
toString
((
char
)
i
)
+
j
);
}
}
System
.
out
.
println
(
list
);
}
}
}
}
}
else
{
System
.
out
.
println
(
"Sheet doesn't contain number"
);
}
}
}
//A2,A3,A4,A5,A6
//B2,B3,B4,B5,B6
}
src/com/java8/features/strings/Palindrom.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
strings
;
import
java.util.Scanner
;
public
class
Palindrom
{
public
static
void
main
(
String
[]
args
)
{
Scanner
sc
=
new
Scanner
(
System
.
in
);
String
A
=
sc
.
next
();
/* Enter your code here. Print output to STDOUT. */
boolean
test
=
true
;
for
(
int
i
=
0
;
i
<
A
.
length
()
/
2
;
i
++)
{
if
(
A
.
charAt
(
i
)
!=
A
.
charAt
(
A
.
length
()
-
i
-
1
))
{
test
=
false
;
break
;
}
}
if
(
test
)
{
System
.
out
.
print
(
"Yes"
);
}
else
{
System
.
out
.
print
(
"No"
);
}
}
}
\ No newline at end of file
src/com/java8/features/strings/Solution.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
strings
;
import
java.io.*
;
import
java.util.*
;
public
class
Solution
{
public
static
void
main
(
String
[]
args
)
{
Scanner
scan
=
new
Scanner
(
System
.
in
);
String
s
=
scan
.
nextLine
();
// Write your code here.
s
=
s
.
trim
();
if
(
s
.
length
()
==
0
)
{
System
.
out
.
print
(
0
);
}
else
{
String
[]
splitArray
=
s
.
split
(
"[,[ ]+'?!._@]+"
);
System
.
out
.
println
(
splitArray
.
length
);
for
(
String
string
:
splitArray
)
{
System
.
out
.
println
(
string
);
}
}
scan
.
close
();
}
}
src/com/java8/features/strings/SplitString.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
strings
;
import
java.util.Scanner
;
public
class
SplitString
{
/*
On the first line, print an integer, , denoting the number of tokens in string (they do not need to be unique).
Next, print each of the tokens on a new line in the same order as they appear in input string .
*/
public
static
void
main
(
String
[]
args
)
{
Scanner
scan
=
new
Scanner
(
System
.
in
);
String
s
=
scan
.
nextLine
();
String
[]
splitArray
=
s
.
trim
().
split
(
"[, '?!._@]+"
);
System
.
out
.
println
(
splitArray
.
length
);
for
(
String
string
:
splitArray
)
{
System
.
out
.
println
(
string
);
}
scan
.
close
();
}
}
\ No newline at end of file
src/com/java8/features/strings/String1.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
strings
;
import
java.io.*
;
import
java.util.*
;
public
class
String1
{
public
static
void
main
(
String
[]
args
)
{
Scanner
sc
=
new
Scanner
(
System
.
in
);
String
A
=
sc
.
next
();
String
B
=
sc
.
next
();
/* Enter your code here. Print output to STDOUT. */
System
.
out
.
print
(
A
.
length
()
+
B
.
length
()
+
"\n"
);
if
(
A
.
compareTo
(
B
)
<=
0
)
{
System
.
out
.
print
(
"No"
+
"\n"
);
}
else
if
(
A
.
compareTo
(
B
)
>
0
)
{
System
.
out
.
print
(
"Yes"
+
"\n"
);
}
A
=
A
.
substring
(
0
,
1
).
toUpperCase
()
+
A
.
substring
(
1
).
toLowerCase
();
B
=
B
.
substring
(
0
,
1
).
toUpperCase
()
+
B
.
substring
(
1
).
toLowerCase
();
System
.
out
.
print
(
A
+
" "
+
B
);
}
}
src/com/java8/features/strings/String2.java
0 → 100644
View file @
f73fc4d0
package
com
.
java8
.
features
.
strings
;
public
class
String2
{
public
static
void
main
(
String
[]
args
)
{
// smallestAndLargestString("welcometojava", 3);
String
s
=
"2A"
;
String
s1
=
"B"
;
boolean
matches
=
s
.
matches
(
".*\\d.*"
);
System
.
out
.
println
(
"Matches--->"
+
matches
);
boolean
matches1
=
s1
.
matches
(
".*\\d.*"
);
System
.
out
.
println
(
"Matches1--->"
+
matches1
);
}
public
static
void
smallestAndLargestString
(
String
intput
,
int
value
)
{
String
output
=
intput
.
substring
(
0
,
value
);
String
smallest
=
output
;
String
largest
=
output
;
for
(
int
i
=
value
;
i
<
intput
.
length
();
i
++)
{
output
=
output
.
substring
(
1
,
value
)
+
intput
.
charAt
(
i
);
if
(
largest
.
compareTo
(
output
)
<
0
)
{
largest
=
output
;
}
if
(
smallest
.
compareTo
(
output
)
>
0
)
{
smallest
=
output
;
}
}
System
.
out
.
println
(
largest
);
System
.
out
.
println
(
smallest
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment