aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/server/scrap.jpage
blob: 1666502007e3c3cc857c4c59b251a93ee577b88e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24


String p="\"123456\"";

System.out.println(p.substring(1,p.length()-1));


	String path ="c:/baseq2/game/*.sav";
	String findbase;
	String findpattern;
	
	int i = path.lastIndexOf('/');
	if (i!=-1)
	{
		findbase = path.substring(0,i);
		findpattern = path.substring(i+1,path.length());
	}
	else
	{
		findpattern = "*";
		findbase = path;
	}
	
	
	System.out.println(findbase + ":" + findpattern);