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 1022211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:25:54+00:00 2026-05-16T11:25:54+00:00

Howdy, I am a programmer that has worked almost exclusively with c++/c#/vbs and am

  • 0

Howdy, I am a programmer that has worked almost exclusively with c++/c#/vbs and am just now entering into the world of Android development. I am running into a few issues that I cant seem to find answers for/ dont want to watch lengthy tutorial videos to find out so I figured I would ask here and get a quick answer.

I dont know if this is the best way to do this, so I am open to any suggestions.

I need some custom data containers for my program, lets say I want an ‘Achievement’ class so I can have an array of them!

now in C# I would do something like

public class Achievment  
{
    bool locked;
    string achName;
    string achSubName;

    public Achievement(string name, string subname)
    {
        //ctor code goes here
    }
}

Thats not everything I would need but thats the idea of the data layout I would like. However when I try to make a custom class in Eclipse it is all up in my grill about ‘Public type achievement must be defined in its own file?’ I’m writing this in the application’s .java file… Is there somewhere else this should go? I am so confused. Basically java may as well be swahili to me… I like my intuitive c# layouts!

Like essentially I want to store my data separate from my UI, and when I generate an ‘Achievement List’ it looks at the current user’s achievement array and populates from there. Good, bad?

Any answers that are not in the form of a redirect to a tutorial are much appreciated!

  • 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-05-16T11:25:54+00:00Added an answer on May 16, 2026 at 11:25 am

    You either have to remove public modifier from the class (thus its visibility will be default level — visible only from the package your Application class is placed) OR you need to move your class to Achievment.java file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I want is, I think, relatively simple: > Bin = <<Hello.world.howdy?>>. > split(Bin,
Howdy all, I have a weird situation. I have a C++ code that overloads
Howdy, I'm writing a batch script that will run on a Windows XP machine.
Howdy, I have a DataRow pulled out of a DataTable from a DataSet. I
Howdy. Consider the following: SQL> DECLARE 2 b1 BOOLEAN; 3 b2 BOOLEAN; 4 FUNCTION
Howdy... here on my local LAN, I have a Windows Server 2k8 box with
Howdy and Thanks in Advance! I'm trying to access the USB port from a
Howdy! I am looking for a way to list all of the image files
Howdy, codeboys and codegirls! I have came across a simple problem with seemingly easy
Howdy all. I am trying to solve a problem which is apparently not uncommon

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.