Browse Source

feat: interactive console

master
QuentinN42 9 months ago
parent
commit
eb454529dc
Signed by: number42 GPG Key ID: 2CD7D563712B3A50
  1. 14
      src/main/java/com/project/Main.java

14
src/main/java/com/project/Main.java

@ -1,7 +1,11 @@
package com.project;
import java.util.*;
import org.apache.log4j.Logger;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.BasicConfigurator;
public class Main
{
@ -10,6 +14,12 @@ public class Main
public static void main( String[] args )
{
BasicConfigurator.configure();
log.info("Hello this is an info message");
Scanner sc=new Scanner(System.in);
while (true)
{
System.out.print("> ");
String s=sc.nextLine();
log.info("User input : " + s);
}
}
}

Loading…
Cancel
Save