[Solved] Street Lights with Java
![[Solved] Street Lights with Java [Solved] Street Lights with Java](https://realcoder.techss24.com/wp-content/uploads/2022/11/Solved-Street-Lights-with-Java-768x506.png)
One of the streets in your city has a total of L street lights. Each light i covers the street from Xi to Yi distance. Find the length of street covered with light. Input Specification: input1: L, denoting the number…