I'm trying to switch a string type value which I have made static. However I can't figure out how to put this into a switch statement I was previously using an 'if else' statement but due to the number of items I want to switch this doesn't work.
For the if else I was using `
if (item.ActivityFeedType.equals("Comment"))
for switch I;m trying to use
case (item.ActivityFeedType.equals("Comment")):
Is there something I'm missing?