public static String szesnastkowo(int a){
        String h="";
        String tmph = "";
            int tmp=0;
            while (a!=0){
                tmp=(a%16);
                if (tmp<10){
                    tmph += String.valueOf(tmp);
                }else if(tmp==10){
                    tmph +="A";
                }else if(tmp==11){
                    tmph +="B";
                }else if(tmp==12){
                    tmph +="C";
                }else if(tmp==13){
                    tmph +="D";
                }else if(tmp==14){
                    tmph +="E";
                }else if(tmp==15){
                    tmph +="F";
                }
                a/=16;
            }
            for (int i=tmph.length(); i>0; i--){
                h += tmph.charAt(i-1);
            }
        return(h);
    }