If AL_DENSITY is equal to density then it's the same between

System.out.println("The mass of the block is" + massOfTheBlock + "grams")

and

System.out.println("The mass of the block is " +...