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
Post a Comment