Home / Questions / Reformat the following program according to the programming style and documentation guidelines. Use the end-of-line brace style.
Explanatory Question

Reformat the following program according to the programming style and documentation guidelines. Use the end-of-line brace style.

👁 1,242 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

public class Test
{
// Main method
public static void main(String[] args) {
/** Display output */
System.out.println("Welcome to Java");
}
}
 public class Test {
  // Main method 
  public static void main(String[] args) {
    /** Display outpput */
    System.out.println("Welcome to Java");
  }
}