r/learnjava • • Oct 08 '25

my command prompt not working properly after executing java program

1 Upvotes

im using windows 10, after executing a java program in cmd, im not able to see the letters i type.
for example: if i type help, it it not showing on cmd, but still executing and showing all help commands.
here is the java code:

import java.util.stream.*;

import java.util.*;

class rohan1{

`public static void main(String[] args){`

`Stream.iterate(1,n->n+1).limit(5).forEach(System.out::println);`

`}`

}

i tried to use echo on, but didnt worked.