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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:50:59+00:00 2026-05-26T05:50:59+00:00

I get FC when running but it compiles. NOTE: Changes have been made following

  • 0

I get FC when running but it compiles.

NOTE: Changes have been made following Rasel’s comment’s. Still FC’s

                        btnExecute.setOnClickListener(new View.OnClickListener() //this worked
        {
            private AlertDialog show;
            public void onClick(View arg0) 
            { //start of get stack shape and provide area and equivalent diameter
              //20110720
              //just trying to evaluate the shape to use the correct inputs for area calculation
              //I will then add and evaluate for the units of input to build universal
              //values(_eng and _met)variables to use for all further calculations. KISS!

                if (((m1_ss_spinner.getSelectedItem().toString().equals("Square")))) //cant compare a string with == operator.  Use equals() to compare
                {
                    if ((m1_sqs1.getText().length() == 0)              //if m1_sqs1 is empty
                        || (m1_sqs1.getText().toString().equals("")))  //if m1_sqs1 is blank
                    {           
                            show = new AlertDialog.Builder(mContext).setTitle("Error") //this worked
                                .setMessage("The Square Side length is empty")               
                                .setPositiveButton("OK", null).show();          
                    } else
                        {
                            double result = new Double(m1_sqs1.getText().toString()) * new Double(m1_sqs1.getText().toString());   
                            m1_sa_in.setText(Double.toString(result));
                        } //end of square area
                } else      

                    if (((m1_ss_spinner.getSelectedItem().toString().equals("Rectangle"))))
                    {
                        if ((m1_rs1.getText().length() == 0)
                            || (m1_rs1.getText().toString().equals("")
                            || (m1_rs2.getText().length() == 0)
                            || (m1_rs2.getText().toString().equals(""))))
                        {
                                show = new AlertDialog.Builder(mContext).setTitle("Error")
                                .setMessage("A Rectangle Side length is empty")               
                                .setPositiveButton("OK", null).show();
                        } else 
                            {
                                double result = new Double(m1_rs1.getText().toString()) * new Double(m1_rs2.getText().toString());   
                                m1_sa_in.setText(Double.toString(result));
                            } //end of rectangle area
                } else

                    if (((m1_ss_spinner.getSelectedItem().toString().equals("Circle"))))
                    {
                        if ((m1_cd.getText().length() == 0)            
                            || (m1_cd.getText().toString().equals("")))
                        {
                                show = new AlertDialog.Builder(mContext).setTitle("Error")
                                .setMessage("The Circle Diameter is empty")               
                                .setPositiveButton("OK", null).show();
                        } else 
                            {
                                double result = new Double(m1_cd.getText().toString()) * new Double(m1_cd.getText().toString());   
                                m1_sa_in.setText(Double.toString(result));
                            } //end of circle area
                } else

                        if (((m1_ss_spinner.getSelectedItem().toString().equals("Elliptical")))) 
                        {
                            if ((m1_els1.getText().length() == 0)           
                            || (m1_els1.getText().toString().equals("")
                            || (m1_els2.getText().length() == 0)
                            || (m1_els2.getText().toString().equals(""))))
                            {
                                show = new AlertDialog.Builder(mContext).setTitle("Error")
                                .setMessage("An Elliptical Diameter is empty")               
                                .setPositiveButton("OK", null).show();
                        } else 
                            {
                                double result = new Double(m1_els1.getText().toString()) * new Double(m1_els2.getText().toString());   
                                m1_sa_in.setText(Double.toString(result));
                            }; //end of elliptical area
                    } // end of onClick code
                }
        });
  • 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-26T05:51:00+00:00Added an answer on May 26, 2026 at 5:51 am

    Compiling seems to only verify code but not logic One needs to be very careful with code and I now recommend plenty of comments and strict format with indentions so if statements are easy to determine the beginning and end FCs occur when the program is left with decision it cant make

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

Sidebar

Related Questions

When running the following code I get no output but I cannot work out
I am trying to get some XML data with LINQ, but running into a
I'm trying to get Thinking Sphinx running on my site but I'm not sure
I am trying to get in place editing working but I am running into
I can get a list of running threads from Process.GetCurrentProcess().Threads, but I need to
I'm just trying to get started with NDjango but am having issues running a
You can use command lsof to get file descriptors for all running processes, but
I have a simple rails 2.3.4 application I am trying to get running with
getting really close to running my first stored procedure. This one compiles but when
I am using SASS and it has been working, but now I get this...

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.