Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
19 lines
562 B
Java
19 lines
562 B
Java
//JAVA 25+
|
|
//SOURCES Shout.java
|
|
//FILES banner.txt=banner.txt
|
|
|
|
import java.io.InputStream;
|
|
|
|
/**
|
|
* More than one file: //SOURCES pulls in Shout.java, //FILES makes banner.txt
|
|
* available on the classpath as a resource.
|
|
*/
|
|
public class Main {
|
|
public static void main(String[] args) throws Exception {
|
|
try (InputStream in = Main.class.getClassLoader().getResourceAsStream("banner.txt")) {
|
|
System.out.print(new String(in.readAllBytes()));
|
|
}
|
|
System.out.println(Shout.shout("one script, two sources, one resource"));
|
|
}
|
|
}
|