diff --git a/java/samples/sample-code/src/main/java/com/microsoft/semantickernel/samples/documentationexamples/Prompts.java b/java/samples/sample-code/src/main/java/com/microsoft/semantickernel/samples/documentationexamples/Prompts.java
index 8b6349436a..82ce0e3c8e 100644
--- a/java/samples/sample-code/src/main/java/com/microsoft/semantickernel/samples/documentationexamples/Prompts.java
+++ b/java/samples/sample-code/src/main/java/com/microsoft/semantickernel/samples/documentationexamples/Prompts.java
@@ -48,7 +48,9 @@ public class Prompts {
What is the intent of this request? %s
""".formatted(request);
- /* Uncomment this block to make this example interactive
+ // @formatter:off
+ /*
+ Uncomment this block to make this example interactive
//
System.out.println("Your request: ");
String request = new Scanner(System.in).nextLine();
@@ -58,6 +60,7 @@ public class Prompts {
""".formatted(request);
//
*/
+ // @formatter:on
System.out.println("0.0 Initial prompt");
//