Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8452443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:30:05+00:00 2026-06-10T11:30:05+00:00

Here is basically what I have: public class Game extends Activity{ public class Work{

  • 0

Here is basically what I have:

public class Game extends Activity{
    public class Work{
        public class Shuffle{
            *Class I need to access*
        }
    }
}

Here is the class I will be accessing Shuffle from:

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;
    }
}

What do I need to declare to be able to access Shuffle.getShuffle() in my Deck class?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:30:06+00:00Added an answer on June 10, 2026 at 11:30 am

    Now taking of Nested Classes its of 2 types :

    1. Inner Classes (Non-static)

    2. Top Level Classes (static)

    – Inner Class (Non-static) has an Implicit Reference to its Outer Class (Enclosing Class).
    To access an Inner Class from outside you need to access it using the Outer Class Object.

    Eg:

     public class Outer{
    
    
         class Inner{
    
    
         }
    
     }
    
    
    public class Test{
    
    
       public static void main(String[] args){
    
             Outer o = new Outer();
             Outer.Inner i = o.new Inner();
    
        }
    } 
    

    – A Top-Level Class (static) is just like a separate class in the Outer Class.
    Top-level class needs to create an object of the Outer Class to access its Non-static members, but It can Access the Static methods and Static variables of the Outer class directly.

    Eg:

    public class Outer{
    
    
             class Inner{
    
    
             }
    
         }
    
    
        public class Test{
    
    
           public static void main(String[] args){
    
    
                 Outer.Inner i = new Outer.Inner();
    
            }
        } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an interesting issue today!! Basically I have two classes. public class A
I have a class that extends TabControl, basically to have one with the tabs
Basically I have a GUI that inherits from the JFrame class and has its
I need a little help here.So basically I have to make a test of
So basically I have this constructor for the class League : import java.util.*; public
I am making a game and have started to work on a class called
Ok guys I basically have a class which takes in 3 strings through the
I have two two types of base class; public abstract class Base { public
Hey everyone, not sure what is going on here :( Basically I have a
I'm new at MVC and can't get this to work. I basically have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.