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
// 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 3File details
Download from the command line
curl -L -o Large.java https://files.samplefiles.com/code/java/Large.javawget https://files.samplefiles.com/code/java/Large.javahttps://files.samplefiles.com/code/java/Large.javaprintf '%s %s\n' bd98b68e0e0116884a7c82550942018442ed9ab68621709d64a072f63aefb537 Large.java | shasum -a 256 -cOr 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
| File | Size | Details | Download |
|---|---|---|---|
| Sample Java fileSample.java | 763 B | Download |