I'm am reasonably new at coding and am currently studying it at College. While in my break I found Project Euler a neat little site with problems which I have been working through for an extra challenge. This is the question that I am stuck on: http://projecteuler.net/index.php?section=problems&id=8 basically you are given a 1000 digit number and you have to find the greatest product of five consecutive digits in the 1000-digit number.
This here is where I am up to currently:
What I wanted to know is how do I get the scanner class to only read a single digit each time rather than trying to read the whole 1000 digit number at once. Which causes it to throw an error as it's too big to fit into an int.
So is there a way to get the scanner to read a single digit of the 1000 digit number or should I look at a different way to approach this?
Edit: And does anyone know any other sites similar to this which provide some extra coding practise for fun?
Edited by FlightOfGrey: n/a