+ 1

What does this error means?

System cannot be resolved to a variable

26th May 2022, 12:33 PM
Himanshu Sharma
Himanshu Sharma - avatar
10 odpowiedzi
+ 2
In addition to what Davinder Kumar said, this can also be something that's more easier Google'd instead of waiting for someone to answer.
26th May 2022, 1:00 PM
Justice
Justice - avatar
+ 1
you are assigning the value into a variable but its datatype isn't given yet or may be you are putting there wrong variable which isn't declared. For example , int a=5; it means we are assigning 5 value into a variable and its data type is integer.
26th May 2022, 12:49 PM
Davinder Kumar
Davinder Kumar - avatar
+ 1
Problem was in s small in System... Thanks for helping Davinder Kumar
26th May 2022, 1:08 PM
Himanshu Sharma
Himanshu Sharma - avatar
+ 1
Himanshu Sharma Your welcome happy coding...!
26th May 2022, 1:13 PM
Davinder Kumar
Davinder Kumar - avatar
0
import java.util.Scanner; class marks{ public static void main(String[] args) { System.out.println("enter marks of 5 subject"); Scanner s = new Scanner(system.in); int a=s.nextInt(); int b=s.nextInt(); int c=s.nextInt(); int d=s.nextInt(); int e=s.nextInt(); } }
26th May 2022, 1:01 PM
Himanshu Sharma
Himanshu Sharma - avatar
0
Code...
26th May 2022, 1:01 PM
Himanshu Sharma
Himanshu Sharma - avatar
0
Okk Justice .. I goggle it but cannot find related to this
26th May 2022, 1:03 PM
Himanshu Sharma
Himanshu Sharma - avatar
0
Himanshu Sharma you are just creating input interface. you also need to print it like System.out.prinln(a); ....... or you can use for loop
26th May 2022, 1:03 PM
Davinder Kumar
Davinder Kumar - avatar
0
Himanshu Sharma and (System.in) correct it also
26th May 2022, 1:04 PM
Davinder Kumar
Davinder Kumar - avatar
- 1
28th May 2022, 8:47 AM
Магистр головой пронувшийся. я уже почтм 2 месяц