rana-cli/tests/samples/codefiles/java.java

23 lines
696 B
Java
Raw Normal View History

2015-09-16 21:59:30 +00:00
// Hello.java
import java.io.*;
import static java.lang.Math.*;
import static com.googlecode.javacv.jna.highgui.cvReleaseCapture;
import javax.servlet.*;
import com.colorfulwolf.webcamapplet.gui.ImagePanel;
import com.foobar.*;
2017-11-23 17:48:14 +00:00
import package com.apackage.something;
import namespace com.anamespace.other;
2015-09-16 21:59:30 +00:00
public class Hello extends GenericServlet {
public void service(final ServletRequest request, final ServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
final PrintWriter pw = response.getWriter();
try {
pw.println("Hello, world!");
} finally {
pw.close();
}
}
}