这基本上是我所拥有的:
public class Game extends Activity{
public class Work{
public class Shuffle{
*Class I need to access*
}
}
}
这是我将从中访问 Shuffle 的课程:
public class Deck extends Game {
public int shuffle() {
//WHAT DO I NEED TO DECLARE HERE IN ORDER TO ACCESS Shuffle.getShuffle()?
int[] shuffDeck = (MY SHUFFLE CLASS).getShuffle();
int x = shuffDeck[i];
String y = String.valueOf(x);
i += 1;
return x;
}
}
我需要声明什么才能在我的 Deck 类中访问 Shuffle.getShuffle() ?