<filename>style_java.tex<gh_stars>0
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\lstdefinelanguage{java}{
  morekeywords={abstract, assert,%
    boolean, break, byte, case, catch, char, class,
    continue, default, do, double, else, enum, extends,
    final, finally, float, for, gotto, if, implements,
    import, instanceof, int, interface, long, native,
    new, package, private, protected, public, return, short,
    static, super, switch, synchronized, this, throw, throws,
    transient, try, void, volatile, while,
    true, false, null},
  otherkeywords={=>,<-,<\%,<:,>:,\#,@, ==, !=},
  sensitive=true,
  morecomment=[l]{//},
  morecomment=[n]{/*}{*/},
  morestring=[b]",
  morestring=[b]',
  morestring=[b]"""
}
 
\lstset{frame=tb,
  language=java,
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=flexible,
  numbers=left,  
  stepnumber=4,
  numberstyle=\tiny\color{gray},
  keywordstyle=\color{blue},
  commentstyle=\color{dkgreen},
  stringstyle=\color{mauve},
  breaklines=true,
  breakatwhitespace=true
  tabsize=3
}

