In this article, you'll learn the simple steps to control a light using a Raspberry Pi and Java. Raspberry Pi (I have chosen the Raspberry Pi 3 model B, which has a built-in Wi-Fi dongle, ethernet cable support, 4 USB ports, and 2 GB of RAM) — $35 on Amazon.
Full article