How do I go about this method?
public Mys sub(int start, int end) { Mys index = MyString; return Mys; } How do I go about getting this to compile? I should return Mys, yet it is always telling me incompatible types. I tried returning a string and int and I get incompatible types. I don't understand how to make a variable with Mys. Thanks. I don't need anything in the method right now other than it compiling. I think I might have gotten it, now just want to check if I'm doing it right. I said Mys a = new Mys; and I used return a; It is compiling now, so I guess the return statement works, so is this the proper way to do it? Thanks.
TELL US , if you have any answer