Having problems with this code its giving me one error
Error: Main method not found in class MultiplicationApplet, please define the ma
in method as:
public static void main(String[] args)
here is the code
import java.awt.Graphics; // program uses class Graphics
import javax.swing.JApplet; // program uses class JApplet
import javax.swing.JOptionPane; // program uses class JOptionPane
public class MultiplicationApplet extends JApplet
{
private double sum; // sum of the values entered by user
// intialize applet by obtaining values from user
public void init()
{
I think something needs to go somewhere up here .
Arithmetic Operations
Page 1 of 11 Replies - 405 Views - Last Post: 05 October 2011 - 07:00 PM
Replies To: Arithmetic Operations
#2
Re: Arithmetic Operations
Posted 05 October 2011 - 07:00 PM
You try to run this program as an Application while it is an Applet
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|