Home java tab and gap

tab and gap

Author

Date

Category

What is the tabulation? How to describe it in Java code and why some people write that it is always better to use a tab?


Answer 1, Authority 100%

Tabulation is an unprinted (managing) symbol, in the general case is entered by pressing the Tab key on the keyboard.

Good practice is the allocation of logical blocks in the code (cycles, conditions, classes and methods) using tabulation or several (usually four) spaces. It serves to read the code and accelerates his perception.

Compare the options with the tab and without:

Tabulation:

package hellowarld;
Public Class HelloWorld {
  Public Static Void Main (String [] Args) {
    System.out.PrintLN ("Hello, World!");
  }
}

without tabulation:

package hellowarld;
Public Class HelloWorld {
Public Static Void Main (String [] Args) {
System.out.PrintLN ("Hello, World!");
}
}

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions