braju.com Java fprintf, printf, sprintf (fscanf, scanf, sscanf)

 

Home

Download
Purchase
History
Examples
Documentation
API/javadoc
FAQ
Feedback
About

Donate

Java scanf

Download

There are two versions of the package:

  1. hb16.zip (13224 bytes) recommended

    This is the normal printf package for Java 1.1 and Java 2 and it is probably the package you are looking for.

  2. hb16102.zip (15452 bytes)

    Same functionalities, but specially written to be able to run under Java 1.0.2. This is an issue if you want to write applets that should be compatible with as many browsers as possible. There are not many browser that still only support Java 1.0.2, but just in case...


Installation instructions

Installing on Java 1.1 and Java 2 systems

Include C:\java\classes\hb16.zip as it is (no unpacking needed) in the class path. Example:

    set CLASSPATH=%CLASSPATH%;C:\java\classes\hb16.zip (Windows systems) or
    setenv CLASSPATH=$CLASSPATH:~/java/classes/hb16.zip (Unix systems)

You can test that you have set up the class path correctly by writing

    >java com.braju.format.Format -help

Installing on Java 1.0.2 systems

Since Java 1.0.2 systems does not support archived files, the package has to be extracted. At the prompt you write:

    >jar xf hb16102.zip

This will result in in a directory named com (e.g. C:\java\classes\com\) containing a subdirectory named braju etc.

Now make sure that the directory where com is located is in in the class path. Example:

    set CLASSPATH=%CLASSPATH%;C:\java\classes\ (Windows systems) or
    setenv CLASSPATH=$CLASSPATH:~/java/classes/ (Unix systems)

You can test that you have set up the class path correctly by writing

    >java com.braju.format.Format -help