Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.util.Arrays;
- class Bank{
- public static void main(String[] args){
- Scanner ob = new Scanner(System.in);
- double a = ob.nextDouble();
- int b= ob.nextInt();
- float [] tb= new float[b];
- try{
- tb[b]=12;
- System.out.println(tb[b]);
- }
- catch(ArrayIndexOutOfBoundsException ex){
- System.out.println("Exception: ArrayIndex Out Of Bounds Exception");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement