Java · 264 KB

Large Java file (about 10,000 lines)

1,428 generated functions in about 10,000 lines of valid Java, for testing editors, syntax highlighters, linters and diff tools with big files.

CC0 · free for any use · Verified by an independent tool · Report a problem

Large.java — first linesJava
// Generated 10,000-line Java file — samplefiles.com
public class Large {
    static double compute0(double[] values) {
        // Scaled sum for batch 0
        double total = 0;
        for (double v : values) total += v * 0;
        return total;
    }

    static double compute1(double[] values) {
        // Scaled sum for batch 1
        double total = 0;
        for (double v : values) total += v * 1;
        return total;
    }

    static double compute2(double[] values) {
        // Scaled sum for batch 2
        double total = 0;
        for (double v : values) total += v * 2;
        return total;
    }

    static double compute3(double[] values) {
        // Scaled sum for batch 3

File details

Size
264 KB (270,924 bytes)
MIME type
text/x-java
Lines
9,999
SHA-256
bd98b68e0e0116884a7c82550942018442ed9ab68621709d64a072f63aefb537
MD5
f74d24a0ddb3c2d262bc46d3027bc9b6

Download from the command line

curl -L -o Large.java https://files.samplefiles.com/code/java/Large.java

Or check the download in your browser with the checksum calculator.

Same sample in other formats

Python · 213 KBJavaScript · 205 KBC · 268 KBGo · 167 KBRust · 250 KB

Similar Java files

FileSizeDetailsDownload
Sample Java fileSample.java763 BDownload