they are only initialized if you actually run that if block, so, they're not always initialized.
stultuske
Industrious Poster
4,366 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 23
Some of your variables will only be initialized if conditions are met. The compiler requires that they be initialized under all conditions.
If you declare them to have an initial value, the compiler will be satisfied
String ch2="";
Edit: cross-posted with above.
Ezzaral
null
16,110 posts since May 2007
Reputation Points: 3,292
Solved Threads: 873
Skill Endorsements: 27