demodocker / TextUtils.java
sashtech's picture
Create TextUtils.java
cefe567 verified
raw
history blame contribute delete
515 Bytes
// TextUtils.java
public class TextUtils {
public static String processText(String input) {
// Example transformation: trimming whitespace
return input.trim();
}
public static void main(String[] args) {
// Check if an argument is provided
if (args.length > 0) {
String result = processText(args[0]);
System.out.println(result); // Output the processed text
} else {
System.out.println("No input provided.");
}
}
}