import java.util.*;
import java.lang.*;
import java.io.*;
class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(new FileInputStream("/etc/passwd"))) {
for (int i = 0; i < 10; i++) {
System.out.println(sc.nextLine());
}
} catch (FileNotFoundException e) {
System.out.println(e.getMessage());
}
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: