YES!! I finally got it working. It may be complicated, but it's not for something important, just a homework assignment.
while(years > 0){
jTextField1.setEditable(false);
...
Type: Posts; User: maxman190
YES!! I finally got it working. It may be complicated, but it's not for something important, just a homework assignment.
while(years > 0){
jTextField1.setEditable(false);
...
That's what I don't understand. Isn't that I did here for gathering data for 12 months per year??
while(monthcount < 14){
monthrain =...
That doesn't really help... It basically you calling me stupid... I tried to simplify it, but I don't know how.
import java.text.*;
public class Rainfall extends javax.swing.JFrame {
DecimalFormat df = new DecimalFormat("#.##");
double monthrain = 0, sum = 0, average;
int years,...