This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(d,b,e,g){for(var h=e-b,c=Array(d),f={};b<=e;b++){var a=b;do a=a.toString().split("").reduce(function(a,b){return parseInt(a,10)+parseInt(b,10)});while(a>d||-1<g.indexOf(a));c[a-1]=void 0===c[a-1]?1:c[a-1]+1}c.forEach(function(a,b){f[b+1]=100*a/h});return f})(24,1362,1832,[17]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static String getConsonanti(String stringa) { | |
| String risultato = ""; | |
| for(int i = 0; i < stringa.length(); i++) { | |
| if("AEIOU".indexOf(stringa.charAt(i)) == -1) { | |
| risultato += stringa.charAt(i); | |
| } | |
| } | |
| return risultato; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package solitari; | |
| public class Carta { | |
| int numero; | |
| int seme; | |
| public Carta(int numero, int seme) { | |
| this.numero = numero; | |
| this.seme = seme; |
NewerOlder