package com.codegym.task.task01.task0125;
/*
The great purge
*/
public class Solution {
public static void main(String[] args) {
// String s = "15"; //variable not used
a = 5;
// int z = 18; //variable not used
int d = 18;
c = a + d;
b = " is better than ";
System.out.println(a + b + c);
}
}
I have commented out the two unused variables, I am still getting errors.
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Ryan
17 November 2018, 20:35
When you declare variables, you must include the data types.
0
Saint-Paul
14 November 2018, 16:38
As Alex said, make sure that all variables that you are using are declared. Start from the first one and check them one by one and add the type to those variables which don't have a type defined in order to declare them.
0
Alex
13 November 2018, 13:38
Do not forget that you have to declare variables that you are using.
0