How do I code a sine wave program in JAVA

12/13/2019 6:57:30 AM

Sohom Banerjee

3 Answers

New Answer


Sine wave formula is on wikipedia


Well I wrote a code for drawing a graph for the sine wave, but in C... I didn't used any predefined graphics files, just simple code. Maybe the logic could help. https://code.sololearn.com/cfr86tQ7E3L3/?ref=app


Math.sin(double radians) and you need GUI: https://www.codejava.net/java-se/graphics/drawing-lines-examples-with-graphics2d