What does this error means? | Sololearn: Learn to code for FREE!

+1

What does this error means?

System cannot be resolved to a variable

5/26/2022 12:33:10 PM

Himanshu Sharma

10 Answers

New Answer

+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.

+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.

+1

Problem was in s small in System... Thanks for helping Davinder Kumar

+1

Himanshu Sharma Your welcome happy coding...!

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(); } }

0

0

Okk Justice .. I goggle it but cannot find related to this

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

0

Himanshu Sharma and (System.in) correct it also

-1