Created
May 20, 2012 12:21
-
-
Save brokendish/2757897 to your computer and use it in GitHub Desktop.
PrefixDataSet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package brokendish; | |
import java.util.ArrayList; | |
public class PrefixDataSet { | |
public ArrayList<PrefixDataStruct> PrefixDataSet(){ | |
ArrayList<PrefixDataStruct> prefixData = new ArrayList<PrefixDataStruct>(); | |
for (int i=0;i<3;i++){ | |
PrefixDataStruct pre = new PrefixDataStruct(); | |
//PrefixDataStructにデータをセット | |
pre.setPrefix("Prefix00" + i); | |
pre.setCord("00" + i); | |
pre.setindex("000" + i); | |
//ArrayListに追加 | |
prefixData.add(pre); | |
} | |
//--------------------------------------- | |
return prefixData; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment