0
Doubt about the program of calculate the current day of year java
I knows that sum the values the vector sout("insert the day:"); int day = teclado.nextInt(); I use days[]={1,2,3,4,5,6,....,etc}; Int sumDays=0; After I use for (int i =0 ; i<days.length; i++){ days[i]=day; sumDays += days[i]; } The my problem is the month 29 and 28 frebuary and I think that need the one class that call the first year when came the computer if not mistake. Can I help me?
1 Odpowiedź
0
there is the Calendar or Date libraries which make your life easier. Search for them