Here is an example of my code:
I know that the switch statement is right (I did finish it off at the bottom it was just to long full deck of cards worth.). My problem here is that the variable SN that I made is not storing. When I try to print it via a println it says "The local varriable SN may not have been initialised. If you need any more information please feel free to let my know.import java.util.Random; public class cards { public void Dimonds(){ int Rnumber; Random rng = new Random(); String SN; Rnumber = rng.nextInt(51); switch(Rnumber){ case 0: SN = "Ace of Dimonds"; break; case 1: SN = "2 of Dimonds"; break; case 2: SN = "3 of Dimonds"; break; case 3: SN = "4 of Dimonds"; break; ...