|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmx.edu.ulsa.cib4132005.practica1.MinutosSegundos
public class MinutosSegundos
| Constructor Summary | |
|---|---|
MinutosSegundos()
|
|
| Method Summary | |
|---|---|
void |
convertir(int segundos)
|
int |
getMinutos()
|
int |
getSegundos()
|
void |
setMinutos(int minutos)
|
void |
setSegundos(int segundos)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinutosSegundos()
| Method Detail |
|---|
public void convertir(int segundos)
segundos - Convierte los segundos a minutos y segundos, usando los operadores / y %
MinutosSegundos minseg= new MinutosSegundos(); minseg.convertir(72); //convierte a 1 minuto y 12 segundos
public void setMinutos(int minutos)
minutos - Los minutos a poner.public int getMinutos()
public void setSegundos(int segundos)
segundos - Los segundos a poner.public int getSegundos()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||