This is a straight code to make an android logo or doll with just under 30 line applet Java:

Note: To run this program in my macOS I used java 8.Terminal 👨🏼‍💻: javac --release 8 AndroidDoll.java && appletviewer AndroidDoll.java

Output :

Because of having less time I am not being able to explain my code. Please comment below. If you have any issues or queries understanding the code.

Follow me (if want more): https://github.com/ssadev/

--

--