
Hallar Año Bisiesto con Java
Java
Publicado el 27 de Mayo del 2020 por Hdb Programming (46 códigos)
1.618 visualizaciones desde el 27 de Mayo del 2020
Este es un programa hecho en Java con la finalidad de hallar años bisiestos.





IntToString([[5, 4, [3, [2], 1]], [5, 4, []], [5, [4]]]) # [['5', '4', ['3', ['2'], '1']], ['5', '4', []], ['5', ['4']]]







(2)


createMatrix(5, 3); // [[0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4]]
createMatrix(0, 3); // [[], [], []]
createMatrix(3, 0); // []
createMatrix(3, 2, 0); // [[0, 0, 0], [0, 0, 0]]
createMatrix(3, 2, ""); // [["", "", ""], ["", "", ""]]
createMatrix(2, 3, "a"); // [['a', 'a'], ['a', 'a'], ['a', 'a']]





(1)createMatrix(5, 3) # [[0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4]]
createMatrix(0, 3) # [[], [], []]
createMatrix(3, 0) # []
createMatrix(3, 2, 0) # [[0, 0, 0], [0, 0, 0]]
createMatrix(2, 3, "None") # [['None', 'None'], ['None', 'None'], ['None', 'None']]

getVowels("") # {a: 0, e: 0, i: 0, o: 0, u: 0}
getVowels("zzzz") # {a: 0, e: 0, i: 0, o: 0, u: 0}
getVowels("the bIg house") # {a: 0, e: 2, i: 1, o: 1, u: 1}
str="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
getVowels(str) # {a: 29, e: 59, i: 38, o: 25, u: 17}