What's wrong with this code, please help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

16th Oct 2021, 4:10 AM
Gregory O Wanga
Gregory O Wanga - avatar
2 Answers
+ 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.
16th Oct 2021, 6:09 AM
A͢J
A͢J - avatar
0
//Admission=op.nextint(); Admission=op.nextInt(); //typo Int upper case sololearn doesn't support two Scanner_s as input use one for all
16th Oct 2021, 4:39 AM
zemiak