Mercurial > hg > testrepo
view World.java @ 117:b78fd1b4c352
First push.
author | Miloslav Zezulka <mzezulka@redhat.com> |
---|---|
date | Mon, 16 Oct 2017 14:28:15 +0200 |
parents | 347e3fb76105 |
children |
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; return; } }; ff.accept(new File("dfds fds")); System.out.println ("arch: " + System.getProperty("os.arch")); } }