//Zobrazenie dialogoveho okna:
JOptionPane.showMessageDialog(this,"Spravny vysledok!");

//Konvertovanie sustav
public int HexaToDecimal(String hexa){
        int deci=Integer.parseInt(hexa,16);
        return deci;
        }

public String DecimalToHexa(int deci){
        String hexa=Integer.toHexString(deci);
        return hexa;
        }

//Datumy:
        SimpleDateFormat dateFormat=new SimpleDateFormat("dd.MM.yyyy");
        try{
        this.datum=dateFormat.parse(inDate.trim());
        }
        catch(ParseException pe){
        return false;
        }
        long diff=today.getTime()-datum.getTime();

//Subor citanie
private String path="";
private File file=null;

public Subor(String path){
        this.path=path;
        this.file=new File(this.path);
        }

public void ReadFile(int paLine,String FilePath){
        String fileContent="";
        int nrLine=paLine;
        try{
        BufferedReader in=new BufferedReader(new FileReader(file));
        String str;
        while((str=in.readLine())!=null){
        nrLine++;
        fileContent+=nrLine+" "+str+"\n";
        }
        in.close();
        }catch(IOException e){}

//subor zapis
        try{
        File output=new File(FilePath);
        Writer writer=new BufferedWriter(new FileWriter(output));
        writer.write(fileContent);
        writer.close();
        }catch(IOException ioe){}

        }

//sort
        ArrayList<Word> words = new ArrayList<Word>();
        Collections.sort(words);

//split string
        String string = "004-034556";
        String[] parts = string.split("-");
        String part1 = parts[0]; // 004
        String part2 = parts[1]; // 034556





