Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
2 added 32 characters in body
source | link

Java (OpenJDK 8), 2828 23 bytes

-5 bytes thanks to fergusq

s->"WUBRGWGRBUW"."WUBRGWGRBUW"::contains(s)

Try it online!Try it online!

Java (OpenJDK 8), 28 bytes

s->"WUBRGWGRBUW".contains(s)

Try it online!

Java (OpenJDK 8), 28 23 bytes

-5 bytes thanks to fergusq

"WUBRGWGRBUW"::contains

Try it online!

1
source | link

Java (OpenJDK 8), 28 bytes

s->"WUBRGWGRBUW".contains(s)

Try it online!