π in Java
I think I'm pretty much doing pi approximations in every language now, so here it is in Java!
Here are the other approximations so far:
QBasic - https://repl.it/talk/share/p-in-QBasic/34973
Fortran - https://repl.it/talk/share/p-in-Fortran/34890
APL - https://repl.it/talk/share/p-in-APL/34888
Forth - https://repl.it/talk/share/p-in-Forth/34652
LOLCODE - https://repl.it/talk/share/p-in-LOLCODE/34421
Python and Node.js (Node is linked in post) - https://repl.it/talk/share/2-Approximations-of-p-In-Only-Four-Lines-of-Code/32773
C - https://repl.it/talk/share/p-Approximations-in-C/33461
Credit to @TheForArkLD , @Warhawk947 , and @LizFoster for inspiring these approximations. Most of these use the Nilakantha Series, although I also use the arctangent method (multiplying the radian arctangent of 1 by 4 to get pi and getting the arctangent with an infinite series) in three of them (Python, Node, and C).
are you kidding me????
you are in any palce code any lang????
@ipastrano Unfortunately, Repl.it doesn't have a hex editor (and I also think Assembly would be better before binary...). Also, I'm probably going to save the esolangs for last (well, besides LOLCODE which I just did for a proof of concept really). Also, since C and C++ are so similar (and even share compilers), I'm not currently planning on doing it in C++ as well since I could just copy everything into a C++ repl and it should work.
Suggestion: Do HTML / CSS next... If you somehow find a way to do it in those 2 langs, I will upvote all of your projects.