I need to know, is there any way to *force* the code conventions to our students?
Yeah, at least the indentation.
I'm teaching Java...
You know that! There is a LOT of conventions in Java.
I just don't get it. I told them by applying code conventions leads to a more readable code that will be useful to debugging.
Since they are totally noob in programming, I think...
Will be more readable than...Code:double result = price - ( price * ( discount / 100 ) ); System.out.println( "Discount: " + result );
And MOST of them wrote:Code:System.out.println("Discount: "+price-price*discount/100);
... which is leads to an error.Code:System.out.println("Discount:+nPrice-nPrice*nDiscount/100);