hello very new to processing, this code is from the book Processing: An Introduction to Programming
when I use showMessageDialog after using JOptionPane i get an error saying "frame cannot be resolved to a variable"
import static javax.swing.JOptionPane.*;
String input;
input=showInputDialog("Enter an integer to be squared: ");
int integer;
integer = int(input);
int square;
square = integer*integer;
showMessageDialog(frame,integer+" squared is " + square);