Skip to content

Instantly share code, notes, and snippets.

import javax.faces.application.FacesMessage;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.primefaces.context.RequestContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
// STUDENT: Bloch Martin
import java.io.*;
public class TestA { // KLASICKE RESENI
static String data=" zde muzete zapsat libovolny vkusny a chytry text ";
static float total=data.length();
static File f = new File("prt.txt"); // vystupni soubor
public static void main(String[] args) throws Exception {