Advertisement
alexhorner

Main class

Jul 9th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. package main;
  2.  
  3. import config.ConfigHandler;
  4.  
  5. public class Main{
  6.     static ConfigHandler test = new ConfigHandler("D:\\test.cfg");
  7.    
  8.     public static void main(String[] args){
  9.         while(test.isReady()){
  10.             System.out.println("Loaded: "+test.loadNext());
  11.         }
  12.         System.out.println(test.getValue("test") + test.getValue("hello") + test.getValue("world") + test.getValue("cheese"));
  13.         test.closeConfig();
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement