Answers for "java interactive console"

2

get process running on port

# ss -tanp | grep 6379
LISTEN   0    128  127.0.0.1:6379   *:*   users:(("redis-server",pid=2531,fd=4))
Posted by: Guest on August-06-2021
-1

See process on port

netstat -ano | findstr 8080Code language: Bash (bash)
Posted by: Guest on May-12-2021
0

console java

try(Scanner scan=new Scanner(System.in)){
	//read from console
	String textRead=scan.nextLine();
	//write to console
  	System.out.println(textRead);
}
Posted by: Guest on April-06-2021
0

console java

# comile Java class
javac YourClass.java
# run compiled Java class
java YourClass
# run Java class directly
java YourClass.java
# run JAR
java -jar YourJar.jar
Posted by: Guest on April-06-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language