I reviewed my lessons on declaring String variables, yet I cannot understand why I am unable to declare String variables in my "if" statements. Thanks so much for your help!
package com.codegym.task.task04.task0426;
/*
Labels and numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
if (a % 2 == 0)
String s1 = "even";
else
String b = "odd";
if (a > 0)
String c = "Positive";
else if (a < 0)
String c = "Negative";
else
System.out.println("Zero");
System.out.println(c + " " + b + " " + "number");
}
}