1

I'm trying to create a HashSet of type byte in my class, like so:

public HashSet<byte> transparent;

But the eclipse error message shows:

Syntax error, insert "Dimensions" to complete ReferenceType

I don't know what this is, or what it means! I am a bit of a coding newbie, especially for java 8. I am not even sure if that's the problem!

Pocketkid2
  • 803
  • 1
  • 11
  • 16

1 Answers1

1

You have to use the byte wrapper class Byte. Generics cannot use primitive types

Neil Locketz
  • 4,228
  • 1
  • 23
  • 34