how to calculate percentage change in java?
['io.*;', 'util. Scanner;', 'lang.*;', 'class PercentageChange.', 'public static void main(String[] args)', 'Scanner in = new Scanner(System. in);', 'double perIncre,num1=123,num2=126;', 'perIncre =((num2 - num1)/num1)*100;']