Mercurial > hg > testrepo
view World.java @ 64:347e3fb76105
Adjust World.java indentation (GNU style of course).
author | Mark Wielaard <mark@klomp.org> |
---|---|
date | Sun, 06 Mar 2011 16:04:18 +0100 |
parents | fc4a8b16fe2e |
children | b78fd1b4c352 |
line wrap: on
line source
import java.io.File; import java.io.FileFilter; public class World { static void world() { String classpathVersion = System.getProperty("gnu.classpath.version"); System.out.println ("vm: " + System.getProperty("java.vm.name") + (classpathVersion != null ? " running on GNU Classpath " + classpathVersion : "")); System.out.println ("version: " + System.getProperty("java.vm.version")); System.out.println ("vendor: " + System.getProperty("java.vm.vendor")); System.out.println ("os: " + System.getProperty("os.name")); FileFilter ff = new FileFilter() { int x; int y; public boolean accept(File pathname) { // and here? // or here? return (pathname.getName().toUpperCase().endsWith(".JAVA")); /* and what about ... .. ?*/ } int a; int b; int c; public void ahoj() { a=b+c; c=a-b; } }; ff.accept(new File("dfds fds")); System.out.println ("arch: " + System.getProperty("os.arch")); } }