<%! int numTimes = 3; public String sayHello(String name) { return "Hello, " + name + "!"; } %> Declaration test page

Declaration test page

The value of numTimes is <%= numTimes %>.

Saying hello to reader: "<%= sayHello("reader") %>".