- #1
1/2"
- 99
- 0
Homework Statement
Well this actually a part of a different problem and there i want to make use of subscript function but its giving a funny problem .
it's like this:
public class test
{ void main(String m)
{ int a =m.length(),b=0;
System.out.println(m.subscript(b,a));
}
}
The Attempt at a Solution
When i try to compile this it gives me an error " cannot find symbol - method subscript(int,int)"
So it tried to declare a and b in separate lines and the are obviously int type.
Please can you point out my mistake(It may be very silly ,i know)
Thank you
Last edited by a moderator: