error: variable might not have been initialized & if statement

后端 未结 4 496
一生所求
一生所求 2020-12-04 01:32

So basically, the

 //Black ops 2 Class generator Please help me FIX!!!!!!
    import java.util.Scanner;
    import java.util.Random;
    public class money
         


        
4条回答
  •  悲&欢浪女
    2020-12-04 01:45

    There are cases where PrimaryWeapon is never initialized (whenever PrimaryWeapon1 is not equal to 1).

    Use this and it's fixed:

    String primaryWeapon = "";
    

提交回复
热议问题