I got this unwanted message | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I got this unwanted message

Java uses unchecked or unsafe operations. When i compile this code in my laptop. Which line is causing this message. And how to remove it. https://code.sololearn.com/c58mwd4bCcdd/?ref=app

21st Aug 2020, 6:20 PM
stephen haokip
stephen haokip - avatar
5 Answers
+ 1
same as Coder Kitten: public static Set<Object> join(Set<Cat> cats, Set<Dog> dogs) { //HashSet pets = new HashSet(); HashSet<Object> pets = new HashSet<>();
21st Aug 2020, 9:51 PM
zemiak
0
Coder Kitten can you teach me how to edit?
21st Aug 2020, 8:23 PM
Goldicane
Goldicane - avatar
- 1
Let me check it
21st Aug 2020, 6:41 PM
Goldicane
Goldicane - avatar
- 1
Looks legit
21st Aug 2020, 6:42 PM
Goldicane
Goldicane - avatar
- 1
Yeah I dunno if it's a bug or you did it wrong
21st Aug 2020, 6:54 PM
Goldicane
Goldicane - avatar