Advertisement
Cihat47

Cihat47

Jun 10th, 2011
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.03 KB | None | 0 0
  1. /*
  2. * Hier meine Klasse Auslesen, in der ich
  3. * in der Methode 'public static void EF_ID_func(CardChannel channel)'
  4. * diesen String 'EF_ID_inhalt.substring(8, 14).toUpperCase()' der Variable abc zuweise
  5. * Mein String hat den Inhalt '123456'. So, und diesen Inhalt mรถchte ich nun in meiner
  6. * main ausgeben, was ja in meiner GUI Klasse ist
  7. */
  8.  
  9. public class Auslesen
  10.  
  11. public static String abc;
  12. public String getAbc(){    
  13. return abc;
  14. }
  15.  
  16. public static void EF_ID_func(CardChannel channel)throws CardException {
  17.     Gui.textArea.append("  EF_ID:");    
  18.     if (check9000_func(APDU_resp)) {        
  19.  
  20.     Gui.textArea.append("- nummer:"+ inhalt.substring(8, 14).toUpperCase() +);        
  21.  
  22.     abc = "" +EF_ID_inhalt.substring(8, 14).toUpperCase();
  23.  
  24. .
  25. .
  26.     }
  27.     }
  28. }
  29.  
  30. /*
  31. * Hier meine Gui Klasse, in der main mรถchte ich den Inhalt der Variable abc aus
  32. * der Klasse Auslesen ausgeben!
  33. */
  34.  
  35. public class GUI extends JFrame implements ActionListener{
  36.  
  37.     public static void main(String[] args) {
  38.         System.out.println(Auslesen.abc);
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement