java calcular a c3 b1os

Solutions on MaxInterview for java calcular a c3 b1os by the best coders in the world

showing results for - "java calcular a c3 b1os"
Bilel
08 Jul 2018
1public class PeriodClass { 
2  
3    // Function to calculate period between 
4    // start and end date 
5    static void calculatePeriod(LocalDate startDate, 
6                                LocalDate endDate) 
7    { 
8        Period period = Period.between(startDate, endDate); 
9        System.out.println("Period between start and end "
10                           + "date is : " + period); 
11    } 
12  
13    // Driver Code 
14    public static void main(String[] args) 
15    { 
16        // Start date 
17        LocalDate startDate = LocalDate.parse("2017-02-13"); 
18  
19        // End date 
20        LocalDate endDate = LocalDate.parse("2018-08-20"); 
21  
22        calculatePeriod(startDate, endDate); 
23    } 
24}