J
J
Jake Taylor2020-08-20 15:44:54
Java
Jake Taylor, 2020-08-20 15:44:54

Is it possible to create comments as a txt file in Java?

There is a very large piece of text - this is a comment to the method. Is there a way to create some kind of comment annotation or something without having to write 20 lines of comment inside the class?
To create a txt file, write a comment there and already on top of the method, for example, do something like this: @Comment com.company.comment

big comment

/**
         * sdfs
         * sdf
         * sd
         * fsd
         * f
         * sd
         * fsd
         * f
         * ds
         * f
         * ds
         * fs
         * dsf
         * sd
         * 
         */
        void getHttp() {
            
        }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-08-20
@n199a

Annotations are information either for the compiler or for the virtual machine. The first one does not care about comments, while the second one does not have any comments at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question