Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article}
- \usepackage{verbments}
- %\plset{language=java,texcl=true,style=vs,bgcolor=Moccasin}
- \begin{document}
- \begin{pyglist}[language=java]
- // Hello Java program
- import java. util . *;
- public class Hello {
- public static void main(String[] args) {
- Scanner kb = new Scanner(System.in);
- System.out.print (" What is your name? ");
- String name = kb.nextLine();
- System.out.println (" Hello " + name + "!");
- }}
- \end{pyglist}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement