Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java won't work

Name: Anonymous 2010-09-23 19:47

why?

import java.text.DecimalFormat;
public class Internetcosts
{
    public static void main(String[] args)
    {
        int hours = 10;
        double packa = 9.95;
        double packb = 13.95;
        double packc = 19.95;
       
        DecimalFormat formatter = new DecimalFormat("#00.00");
       
        System.out.print("Hours     Pack A     Pack B     Pack C");
        System.out.print("-----------------------------");
       
process_hours:
        System.out.print(formatter.format(packa + 2));
        System.out.print(formatter.format(packb + 1));
        System.out.print(formatter.format(packc);
        ++hours;
        if(hours <= 50)
            goto process_hours;
    }
}

Name: Anonymous 2010-09-23 20:01

>>4
what's that? I'm new to programming and the stuff i use is just a button click

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List