Posted January 4, 20169 yr So, I need to get the String from my HashMap into an ArrayList. Here's the problem, I can't find anywhere that get's the String, only the float. Here's an example: //This is my map Map<String, Float> items = new HashMap<String, Float>(); //I need to get all the Strings (modIDs) and set them in this list: List<String> itemsOrganized = new ArrayList<String>(items.?); //But, how do I get the string? Nothing in Map seems to get it, besides values (which gets my float) I am just lost on this. I have checked out docs, stackoverflow, java sites, everything. I just need to organize my Strings from my map. How do I do this? I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.
January 4, 20169 yr Maps are Keys and Values. Look into it... I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
January 4, 20169 yr Author I'm certainly off tonight... Map#keySet(). Thank you. I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.