All pastes #513824 Raw Edit

Mine

public text v1 · immutable
#513824 ·published 2007-05-27 13:05 UTC
rendered paste body
	public static void startaRänta()
	{
		String Dir = System.getProperty("user.dir");
		   File dir = new File(Dir);
		   if (dir.isDirectory()) {
	            String[] children = dir.list();
	            for (int i=0; i<children.length; i++) {
	            	int tilde = children[i].indexOf("~");
	            	if(tilde == -1)
	            	{
	            		int underscore = children[i].indexOf("_");
	            		if(underscore == -1)
	            		{
	            			int punkt = children[i].indexOf(".txt");
	            			if(punkt != -1)
	            			{
	            				String person = children[i].substring(0, punkt);
	            				ränta p = new ränta(person);
	            				new Thread(p).start(); 
	            			}
	            		}
	           		}
	           	}
	         }
	     }