printing - What does "%%" mean in Java? -


i've inherited code i'm trying modify, , i've see following syntax in number pf places.

int titlerecend        = inputline.indexof("%%headerend");   ... int filenamestart      = inputline.indexof("%%file: ")+8; int filenameend        = inputline.indexof("%%filenameend"); 

i've reviewed this related link can;t find exact match dual % either answer or in javadoc associated answer. understand has print formattimg, can't seem find syntactical information %% instead of, %.

what these veriable declarations do--or supposed do?

%% means % character java.util.formatter pattern. since % denotes beginning of format specifier %% used escape % char.

system.out.println("%%"); 

prints

% 

for string.indexof % or %% have no special meaning.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -