So I am trying to write some code that checks each char of an inputstream if it is a number and adds them up. I can handle most of it but it is just that I don't really understand inputstreams.
I want to write a simple for loop for checking each char but I am not sure how I would check in input stream I was thinking something like:
I just don't know how I would put those parts in for an inputstreamfor(int i = 0; i < ???; i++){ if(???? == [0-9]){