Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C-sharp's "#region" & "#endregion" in Java? [duplicate]

Possible Duplicate:
Java equivalent to #region in c#

Is there something in Java that would allow for structuring the source code as it is done in C# with the pre-processor directives

#region

and

#endregion

?

like image 486
Ta Sas Avatar asked Sep 22 '10 19:09

Ta Sas


People also ask

Is C sharp high level?

C# language is considered a high-level language because its syntax resembles human language. In other words, it has a high level of abstraction from a machine code, which is why we need to compile the code written in C# for the hardware to understand its commands.

Is it C sharp or C sharp?

C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in . NET.

What is C sharp mainly used for?

C# is often used to develop professional, dynamic websites on the . NET platform, or open-source software. So, even if you're not a fan of the Microsoft architecture, you can still use C# to create a fully-functional website.

Is C sharp difficult to learn?

C# is one of the easiest programming languages to learn. C# is a high-level, general-purpose programming language that is easy to read because of its well-defined class hierarchy. It is the perfect language for beginner developers as it will be straightforward to grasp compared to most other languages.


1 Answers

No, there is nothing equivalent.

Code folding is an IDE feature, not a language feature.

Eclipse has code folding for classes and members when Java files are loaded in it. It may be extended (for example) to add code folding on carefully crafted comment lines.

like image 154
Oded Avatar answered Oct 01 '22 21:10

Oded