i am doing a very simple program which is calculating the charge for the call. i have already written the program, but i had a problem is: i want to keep asking using user to input the duration for the call, but i don't know how to using return value. could anyone fix it up for me please thanks a lot:here are the program
import TerminalIO.*; public class Callcharge{
KeyboardReader reader= new KeyboardReader(); ScreenWriter writer= new ScreenWriter();
int initialcost=25; double charge; double time;
public void run(){
time= reader.readDouble (" Please enter the calling time in seconds"); while(time<=0) time= reader.readDouble(" Invalid duration, please enter another duration");
charge = initialcost +(time/30 *35); writer.print(" The charge for the call is"); writer.println(charge); reader.pause();
} public static void main (String [] args) { Callcharge tpo= new Callcharge(); tpo.run(); } }