Configuraciones, Explicaciones, Sistemas y mas

Agregando un nuevo dia a la Semana


Lo que hace uno para refrescar un poco la mente a las 4.32 am ahí les dejo mi pieza de código espero les sirva para aquellas semanas que se quedan cortas de días!!!

while(semana.next != sunday)
semana = semana.next;
/******/
if(semana.next == thursday){
semana.next = newDay;
thursday.next = newDay;
newDay.back = thursday;
newDay.next = friday;
friday.back = newDay;
System.out.print(“Agregue un nuevo día a la Semana, buena falta me hace”);
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s