Re: [RESOLVED] Mid function
And my posts didn't tell you this because ...?
Re: [RESOLVED] Mid function
it actually does not do what you have talked (above). With the below code, it should start at a position 2 and returns 5 characters.
System.out.println(strFirstBigIn.substring(2,5)+"");
See the out put for more explaination:
Please enter your first BigInt
123456789
345
Re: [RESOLVED] Mid function
Quote:
Originally Posted by AlnavPlatinum
it actually does not do what you have talked (above). With the below code, it should start at a position 2 and returns 5 characters.
System.out.println(strFirstBigIn.substring(2,5)+"");
See the out put for more explaination:
Please enter your first BigInt
123456789
345
Im not seeing that anywhere in the thread..?
It goes from position 2 to position 5 which is 3 characters..where is the problem?