Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
More Efficient way of downcasting a variable in a 2D array?
Post Body

So basically I have this switch statement which checks the id of the variable inside the 2D array, and sets it directly. I know my explaining is terrible but the code explains everything pretty simply. Is there an even more efficient way to do this? I researched and found that downcasting is basically impossible in Java so maybe this is my only option, however when I add more and more tiles I wouldn't want to keep adding another case.

Here is the pastebin link:

https://pastebin.com/7gKkF0T3

Thanks,

James

Author
User Disabled
Account Strength
0%
Disabled 6 months ago
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
7,182
Link Karma
190
Comment Karma
6,963
Profile updated: 5 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago