Function to print the required values after performing shortest job first
static void print ( int n ) { System . out . println ( " ProcessId ▁ Arrival ▁ Time ▁ Burst ▁ Time " + " ▁ Completion ▁ Time ▁ Turn ▁ Around ▁ Time ▁ Waiting ▁ Time " ) ; for ( int i = 1 ; i <= n ; i ++ ) { System . out . printf ( "%d		%d		%d		%d		%d		%dNEW_LINE", ar[i].id, ar[i].at, ar[i].bt, ar[i].ct, ar[i].tat, ar[i].wt); } }