Please help me with this program (Linear Search two arrays)
I have been staring at my stupid book for days. The book doesnt detail how to do what i want, and only uses integers, not strings. Basically i have 2 arrays initialized. One array has english words, then the other array has spanish words that are in the same order as their english counterparts. Basically what i have to do is use linear search and let the user enter a word in english or spanish(i guess use methods for them to decide), and then translate the word. Im seriosuly frustrated beyond belief. This is all i have:
public class Lab2
{
public static void main(String [ ] args)
{
String[] EnglishArray = {"cat", "dog", "house", "table", "turtle", "water", "yellow", "zoo"};
String[] SpanishArray = {"gato", "perro", "casa", "mesa", "tortuga", "agua", "amarillo", "zoologico"};
\ive tried so much and deleted like anything ive odne. help :(