Question: In the following code, which lines have code that does not adhere to the Java coding standard? 1 public class myProgram { 2 public static

In the following code, which lines have code that does not adhere to the Java coding standard?
1 public class myProgram {
2 public static void main(String[] args){
3
4//Declare variables
5 int age =20;
6 double ageInDogYears =140;
7
8//Print out age and age in dog years.
9 System.out.print("I am "+ age + "years old.");
10 System.out.print("In dog years, I would be "+ ageInDogYears );
11 System.out.print(" years old.");
12}
13}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!