Alvaroo Hernandez wrote:
how do i go about entering the ctrl-z to get the output? this is the first program i do that issues NO prompt.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Henry Wong wrote:Alternatively, you can try control-D instead. Does that work?
Henry
fred rosenberger wrote:Does it work from your command line? That would let you know if it's a problem with your code or with your tool...
Campbell Ritchie wrote:There seems something wrong with a program which requires ctrl‑D or ctrl‑Z. You have written an infinite loop and can only exit the loop by closing System.in. You should think of some way of passing a sentinel value which allows you to terminate the loop instead.
Try to enjoy your work while doing it,it will Automatically convert in Hard Work...
All things are lawful, but not all things are profitable.
Unfortunately, you will have to comply with that instruction, even though it is incorrect practice.Alvaroo Hernandez wrote:. . .
**** NOTE: To signal end-of-input to your program, type Ctrl-Z in Eclipse or Ctrl-Z and Enter in a cmd window.****
. . .