I have to work on code that someone else has written, but not finished.
In the code ( a .JSP page) the following method is called
The class localiser, does not have a method for isUSA(), so i have to write it. My question is what is being returned, or how does this check work as nothing is being passed in, so i dont know what to pass out.
I am at a muddle.
I tried to implement it the way you suggested but i got a complier error.
I am passing in the string in the mehod header, as in boolean isUSA(String lang)
My original question was what am i actually sending back to the calling method
I am still getting a compiler error.
the JSP page is giving out about the localiser calling the method, isUSA();
its called like this :
The actual method in the Localiser class is :
Trying to simplify here, just to get the boolean working, will make it proper for international users then.
Originally posted by Ulf Dittmer:
And the USA -being a free country- allows you to install a Japanese JDK, or to set your computer to a timezone in South Africa, or to set the default language to German, all of which might result in the test not working the way you envision it
�Qui�n dice que un Americano no puede hablar Espa�ol?
Incidentally, I have heard rumors (or were they rumours?) that some people may speak English outside the USA. Which seems an even more likely reason the result of this method may be incorrect.