Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- double[] a;
- double[] b;
- double c;
- double d;
- double[] ans;
- System.out.println("Please choose an option.");
- int opt = getMenuOption();
- if(opt == 5){
- c = getOperand("Please enter the lower limit");
- d = getOperand("Please Enter the upper limit");
- }else{
- a = getOperand();
- }
- }
- public static double[] getOperand(String prompt, int size){
- System.out.println(prompt);
- double[] a;// = in.nextDouble();
- return a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement