Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
424 B
2
Indexable
Never
package airflow;

import java.util.Deque;
import java.util.LinkedList;
import java.util.concurrent.SynchronousQueue;

public class veeru1  {    
	public static void main(String[] args){	
		int entering[]={7,0,5,1,3};
		int leaving[]={1,2,1,3,4};
		int hr=5;
		int max=0;
		int tmp=0;
		for(int i =0;i<=hr;i++){
			tmp=entering[i]-leaving[i];
			if(tmp>max)max=tmp;
		}
		System.out.println(max);
	}
}