Why my program doesn't compile?
package pl.codegym.task.task04.task0408;
/*
Dobry czy zły?
*/
public class Solution {
public static void main(String[] args) {
porownaj(3);
porownaj(6);
porownaj(5);
}
public static void porownaj(int a) {
if (a<5)
{
System.out.print("Liczba jest mniejsza niż 5");
}
else
{
}
if (a = 5)
{
System.out.print("Liczba jest równa 5");
}
else
{
}
if (a>5)
{
System.out.print("Liczba jest większa niż 5");
}
else
{
}
}
}