So if I wanted tcode 3 to terminate the program, wouldn't my while statement be:
}while (tcode > 0 || tcode < 3);
this statement means, if tcode is greater than 0, and tcode is less than 3,...
Type: Posts; User: alex067
So if I wanted tcode 3 to terminate the program, wouldn't my while statement be:
}while (tcode > 0 || tcode < 3);
this statement means, if tcode is greater than 0, and tcode is less than 3,...
So if I wanted tcode 3 to terminate the program, wouldn't my while statement be:
}while (tcode > 0 || tcode < 3);
this statement means, if tcode is greater than 0, and tcode is less than 3,...
Values of tcode that would end the loop would just be 3
Values for tcode to stay in the loop would be 1,2
So I would do, }while (tcode > 0 || tcode < 3) ? So for every tcode greater than 0 (to...
So how should the while statement be constructed in order to make tcode = 3 to input the last of the transaction and end the program?
import javax.swing.JOptionPane;
import java.text.DecimalFormat;
public class Assignment1
{
public static CheckingAccount info;