mardi 12 mai 2015

Array problem

ich hab versucht mal aus einer Datei mit split etwas in zwei teile zu teilen
und den anderen teil dann als text für ein Label(auf Fx) zu setzen
siehe hier
Java Code:

  1. public static void setName(Label n,String Nam){ try {
  2. sc = new Scanner(Paths.get(dir + File.separator +"langEN.BLACKOUT"));
  3. } catch (IOException ex) {
  4. }
  5. while(sc.hasNext()){
  6. String[] te;
  7. te = sc.next().split(":");
  8. if(te[2].equals(Nam)){
  9. n.setText(te[2]);
  10. }
  11. }

und noch was
Java Code:

  1. static String dir = System.getProperty("user.dir") + "/Blackout/";


Array problem

0 commentaires:

Enregistrer un commentaire