0
What's wrong with this code, please help
Program should enable me enter name, admission number and marks/scores of different subjects and it will give me the total and average https://code.sololearn.com/cZZZlzK78804/?ref=app
2 Respostas
+ 2
Gregory O Wanga
If one scanner object can do all things then why need of another scanner object.
2nd your code is not properly readable. Use proper indentation to make readable code.
3rd you need understand naming convention in Java. Class name starts from Capital letter, variables starts from small letter and should be camelCase.
0
//Admission=op.nextint();
Admission=op.nextInt(); //typo Int upper case
sololearn doesn't support two Scanner_s as input
use one for all