Code example for TreeMap

Methods: getkeySet

0
 
		Intent i = new Intent(this, MainActivity.class);
		i.putExtra(currentSetPath, category+difficulty);
		i.putStringArrayListExtra(currentSet, getSet(category+difficulty));
		Log.i("info", category+difficulty);
		Log.i("info", catToWords.keySet().toString());
		startActivity(i);
	} 
 
	public ArrayList<String> getSet(String key){
		return catToWords.get(key);
	} 
	 
	public class DifficultySelectedListener implements OnItemSelectedListener {
 
		@SuppressLint("DefaultLocale") 
		public void onItemSelected(AdapterView<?> parent, View view, int pos,long id) {
			difficulty = parent.getItemAtPosition(pos).toString();	
			difficulty = difficulty.replaceAll("\\s","");
			difficulty = difficulty.toLowerCase();
Stop searching for code, let great code find you!  Add Codota to your java IDE