I can't use Math.class

I can't use Math.class although I import java.lang.*.
plz help me.

and tell us what you mean by "can't use"My father began to work a PC as he was already
retired. He has been fighting with it ever since.
Sometimes he calls me for help crying "everthying has
disappeared!"
I ask him: "What is 'everything' and what does it
mean 'disappeared'?"you could then go on to throw a further spanner in the works by asking what "has" means :)

Similar Messages

  • Can i Use java Class

    Can any help, can i use java class in
    froms 6 or any one have designed form
    of progress bar please help me

    Thanks for your reply...
    Actually the task is quite simple... It requires me to do a better interface for a tomcat server folders...
    For example, users are free to access
    http://apache.oss.eznetsols.org/jakarta/tomcat-5/v5.0.12-beta/
    to download the tomcat... However, its index may not nice and easy for browing.. Therefore, the task requires a new dynamic page to access this server folder, and get all file names under this folder, anlaysis whether it is file or directory..and finally get its path....
    It is quite easy to do a JSP page, but I don't know whether it is possible to do by using JavaScript .... Although JS is running in client side, the user/client also can access the tomcat folder, why not JavaScript?
    Thanks a lot!
    SD

  • Can I use Flash classes in Flex?

    Hello,
    I need to know if all the flash classes can work in Flex,
    since some Actionscript which use flash classes works as expected
    in flash but NOT in Flex, so I need to understand or know which do
    works and which does not?
    ..and thanks for any response :)
    Regards,
    Jamal

    it is possible to import any UIComponent made in FLASH CS3 or
    even previous versions into Actionscript and use them. The process
    is more complex though.
    I'll try to explain:
    First make sure that when you created the UIComponent it
    actually exists as a class with in the flash movie, this is give it
    a LINKAGE NAME.
    Second compile this SWF or SWC and put it in the path of your
    flex Proyect.
    Third use de [EMBED] compiler command to include this class
    into your AS class, the way to do it is this:
    [Embed (source="/assets/UICOMPONENT.swf")]
    [Binddable]
    private var UI:Class;
    Once you do that you can use the class each time you want:
    var tmp:MopvieClip= new UI();
    if You don't want to load the hole movie, you can add
    elements of it, just read the documentation on the EMBED Command.
    One thing I've used though is to clone child element's of the movie
    and use them in my class later.
    Some tips I've found out:
    1.- The object created is a MovieClip whith one Child Element
    that's a Loader class.
    2.- You have to implement a Listener to make sure the Embed
    element is loaded before use it or you'll get an error.
    3.- You'll then be able to access all the elements in the
    movieclip created with Flash CS 3 or 2.
    4.- I've noticed that there are some compiling isues when
    using filters in button frames, I've only used the CS2 Actionscript
    preview and not CS3 so I don't know if this was solved.

  • Can I use any Class in a Use Bean Tag of a JSP

    I have tried to modify the existing EditForm.java file and created a new Class File which changes the presentation(render method)in the Edit Form.
    can I use the new class as a Bean in the use bean tag of a JSP.

    You can use any class as part of the useBean tag. If you want to add your class to the list of available webbeans, you can add it to <jdev dir>\teamplates\webbeans.xml.

  • Can I use message class(from se91) in BSP applications

    Hi,
    Can I use message from message class(se91) to display in pages of BSP application.
    Best Regards
    Rayudu

    Hi,
      Thanks for response.
    How can I get se91 message in onInput processing?
    I understand that for long texts i can use OTR texts. Weather I need to maintain OTR texts for simple error messages?
    Best Regrads
    Rayudu

  • OpenerLink - url ends with ampersand.  can't use style class...

    hello. i am using openerLink to link to communities. i also want to apply a style class to the link text. however the url that is generated ends with an ampersand. consequently, it ignores the style class. the href is shown below.
    href="http://hera:8080/portal/server.pt?space=Opener&control=OpenObject&cached=true&parentname=Gateway&parentid=None&in_hi_ClassID=512&in_hi_userid=2&in_hi_ObjectID=209&in_hi_OpenerMode=2&" class="bulletTextLink2" border="0"
    when i remove the ampersand, it works perfectly (it uses the style).
    what is the solution? obviously i don't have direct control over the generation of the href. can i append something to the url so that it doesn't end in an ampersand?
    thanks
    chris

    The message above was posted by me two years ago and was brought to my attention today. Here's a short update: The network team added a load balancer mdaoid in front of, and resolved to, mdaoid1 and mdaoid2 (in round-robin fashion). The problem described in this thread is bypassed because the JDBC URL can simply use one-OID format, in which mdaoid is used as the LDAP server.

  • How can I use a class in an application

    here are my instructions, my professor confuses me like crazy, so I'm thinking this is a basic question:
    Input Requirements
    Ask the user to enter the value of the radius. You may assume that the user will enter a positive value for the radius. Your program should display the instructions for using the program and a prompt for the radius as illustrated in the sample run shown above.
    Miscellaneous Requirements
    Using Windows Explorer, copy your Circle.java file from your Lab04 project folder into your Hmwk04 project folder. This makes the Circle class available to your application. Your application should use a Circle object to store the radius entered by the user. Your application should get the specified output values (radius, diameter, circumference, and area) from this Circle object.
    I have the Circle.java thing in my folder, (we use blue j) so it is useable, but I really do not know what to do. The Circle object has the information about the area and stuff
    ex)
    public double getDiameter ()
    return 2.0* radius ;
    public double getCircumference ()
    return 2.0*Math.PI*radius;
    etc and stuff, but I really do not know how to bring that thing over to use it,
    this is what I have so far and this is right, I just do not know where to go from here.
    public static void main(String[] args) throws Exception
    double radius;
    Circle myCircle = new Circle();
    Scanner dl = new Scanner(System.in);
    System.out.println("Given the radius of a circle, this program");
    System.out.println("finds the diameter, the circumference and the area");
    System.out.println(" ");
    System.out.println(" ");
    System.out.println("Please enter the Radius: ");
    radius = dl.nextDouble();so any help would be great
    Edited by: border9 on Feb 11, 2009 9:00 AM

    Pay more attention in class?

  • Can i use a class for this or do i need to use a type def

    what i am trying to do is have a parent cluster witch has a file name and some free space to put is children's data in with decorations at the bottom.
    i then need to have a child with a graph in the middle blank space of the parent.
    i also need to have another child with a table in the middle blank space.
    can i do this with classes or do i need to use typdefs.
    tks in advance

    Hello vivi,
    I'm not entirely sure what you mean.  The classes that you create in LabVIEW 8.2 are meant to be containers for data and methods, not displayable items.  Even though a class's private data members are defined in a cluster, you can't think of a class and a cluster as the same thing.  A cluster is an object that you can use to bundle different kinds of information together.  You can also design a cluster to be displayed on a front panel.
    If you want to use LabVIEW's object oriented features, I would suggest creating a class which stores your objects data (non displayable).  You could then create a method on your class to convert some of its internal data into a cluster which can be displayed to the user.
    Regards,
    Justin D
    Applications Engineer
    National Instruments

  • Can I use Partial class to enhance a typed dataset without losing the custom code?

    Hi All,
    I wanted to see if I could use a Partial class for one of the datatable classes to add custom code so that when the dataset is regenerated I don't lose my code.
    Partial public
    Class
    WA_MMTP_TrackerDataSet1
     'Code for dataset
     Partial Public Class PATIENTSTableAdapter
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
             Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
             Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
            Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
                 Dim dd As System.Data.SqlClient.SqlCommand
                dd = new System.Data.SqlClient.SqlCommand
                dd.CommandText = Sql
                dd.Connection = OpenConnection() '  UsersTableAdapter1.Connection
                Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
                If (Me.ClearBeforeFill = true) Then
                    dataTable.Clear
                End If
                Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
                Return returnValue
            End Function
    'Other code for datatable
    end class
    end class
    I'd like to take the function FillbyClinicianId and put it in a separate partial class like so and remove the function by the same name from the original file (dataset file):
    Partial Public Class PATIENTSTableAdapter
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
             Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
             Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
            Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
                 Dim dd As System.Data.SqlClient.SqlCommand
                dd = new System.Data.SqlClient.SqlCommand
                dd.CommandText = Sql
                dd.Connection = OpenConnection() '  UsersTableAdapter1.Connection
                Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
                If (Me.ClearBeforeFill = true) Then
                    dataTable.Clear
                End If
                Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
                Return returnValue
            End Function
    end class
    But when I try this, the compiler gives the following errors:
    Error 91 'Adapter' is not a member of 'AttendTrackerFull.WA_MMTP_TrackerDataSet1.PATIENTSTableAdapter'. 
    Error 92 'ClearBeforeFill' is not a member of 'AttendTrackerFull.WA_MMTP_TrackerDataSet1.PATIENTSTableAdapter'. 
    I guess I'm a little confused. once code is moved into the custom partial class it seems to lose any knowledge of the main class file and any references in the class. Am I doing it wrong? or is it a restriction of the .Net since it is in another
    file. If its because its in another file, my next question would it be better to take the partial class I created to contain my custom code, should I just move my partial class to the bottom of the dataset.designer.vb file? But if I do this, wont it still
    erase my custom code. Any suggestions?
    Thanks
    Michael

    Thanks for the reply.
    They are compile time errors, but the error shows up even before compiling, so I guess it would be designer time exception also.
    What I did the other day was to create a new class file (didn't add a namespace statement to class) then added the code in prev message. This morning I added a new module and added the prev code in it incased in the namespace
    namespace ADO.NET.DataSet1TableAdapters statement. But I still have the same errors messages. I tried
    to set the Custom tool.namespace property of the dataset to WA_MMTPDataset and then did the following in a module:
    namespace WA_MMTPDataset
    Module Module4
    Partial Public Class PATIENTSTableAdapter
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
    Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
    Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
    Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
    Dim dd As System.Data.SqlClient.SqlCommand
    dd = new System.Data.SqlClient.SqlCommand
    dd.CommandText = Sql
    dd.Connection = OpenConnection() ' UsersTableAdapter1.Connection
    Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
    If (Me.ClearBeforeFill = true) Then
    dataTable.Clear
    End If
    Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
    Return returnValue
    End Function
    End Class
    Partial Public Class UsersTableAdapter
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
    Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
    Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
    Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.UsersDataTable, ClinicianId As Integer, sql As string) As Integer
    Dim dd3 As System.Data.SqlClient.SqlCommand
    dd3 = new System.Data.SqlClient.SqlCommand
    dd3.CommandText = Sql
    dd3.Connection = OpenConnection()
    Me.Adapter.SelectCommand = dd3 'Me.CommandCollection(0)
    If (Me.ClearBeforeFill = true) Then
    dataTable.Clear
    End If
    Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
    Return returnValue
    End Function
    End Class
    End Module
    End Namespace
    But I'm still getting the same errors.

  • Can I use math functions in a PDF?

    I've got a document where scores are entered (1 - 5) in numeric fields. Is there a way to add these and average them, and output that value into another field on the fly, or by pressing a button on the form?

    you can also do it in formcalc.
    For adding use the sum() function.
    For averages use the Avg() function.
    You could put the formula in the calculate event of the field you want the results to show in and it would appear as soon as the initial numers are entered, or if you want to use a button you could put the formula in the click event of the button.

  • Coversions using math class

    public class MeasurementConverterV2_Key
    //Purpose of program
        public static void printPurpose( )  //notice that this method is void, nothing is returned
            System.out.println("This program converts to and from");
            System.out.println("English and metric units of measure.");
            System.out.println("=====================================");
        //convert feet to miles
        //the ft parameter receives the value of the feet argument passed from main method.
        public static double convertFeetToMiles(double ft)
            return ft / 5280;     
        //convert miles to feet
        public static double convertMilesToFeet(double mi)
            return mi * 5280;     
        //convert miles to kilometers
        public static double convertMilesToKilometers(double mi)
          return mi * 1.61;      
        //convert kilometers to miles
        public static double convertKilometersToMiles(double km)
            return km / 1.61;    
        //convert pounds to kilograms
        public static double convertPoundsToKilograms(double lbs)
            return lbs / 2.2;  
        //convert kilograms to pounds
        public static double convertKilogramsToPounds(double kl)
            return kl * 2.2;   
        //convert gallons to liters
        public static double convertGallonsToLiters(double gl)
           return gl * 3.79;    
        //convert liters to gallons
        public static double convertLitersToGallons(double lt)
            return lt / 3.79;     
        public static void main(String[ ] args)
            //local variables
            //double miles, feet, inches, pounds, gallons;
           // double kilometers, kilograms, liters;
            //variable declaration and initialization
            printPurpose();                                    //invoke the printPurpose() method
            double feet = 6230;
            double miles = convertFeetToMiles(feet);            //invoke the convertFeetToMiles() static method and pass the feet variable as an argument
            System.out.printf("%8.1f ft. = %7.1f mi. %n", feet, miles);
            miles = 1.9;
            feet = convertMilesToFeet(miles);
            System.out.printf("%8.1f mi. = %7.1f ft. %n", miles, feet);
            miles = 22.3;
            double kilometers = convertMilesToKilometers(miles);
            System.out.printf("%8.1f mi. = %7.1f km. %n", miles, kilometers);
            kilometers = 1000.0;
            miles = convertKilometersToMiles(kilometers);//call method to convert kilometers to miles goes here
            System.out.printf("%8.lf km. = %7.lf mi. %n", kilometers, miles);//print results goes here
            double pounds = 204;
            double kilograms = convertPoundsToKilograms(pounds); //call method to convert pounds to kilograms goes here
            System.out.printf("%8.lf lbs. = %7.lf kl. %n", pounds, kilograms);//print results goes here
            kilograms = 98;
            pounds = convertKilogramsToPounds(kilograms);//declare and initialize the kilograms variable goes here
            System.out.printf("%8.lf kl. = %7.lf lbs. %n", kilograms, pounds);//call method to convert kilograms to pounds goes here
            //print results goes here
            double gallons = 55;//declare and initialize the gallons variable goes here
            double liters = convertGallonsToLiters(gallons);
            System.out.printf("%8.lf gl. = %7.lf lt. %n", gallons, liters);//call method to convert gallons to liters goes here
            //print results goes here
            liters = 2;//declare and initialize the liters variable goes here
            gallons = convertLitersToGallons(liters);//call method to convert liters to gallons goes here
            System.out.printf("%8.lf lt. = %7.lf gl. %n", liters, gallons);//print results goes here
        }//end of main method
    }//end of classthis program, when ran, tells me that "UnknownFormatConversionException" and " null(java.util.Formatter). I followed the directions very carefully and made sure everything was spelled correctly; why won't it run passed the point of "kilometers to miles"??

    Whenever you get an exception you should do two things:
    1.) Look at the stack trace and find the position highest on the stack trace that is your code (i.e. not a class that you didn't write) and look into that line and try to find out what you might be doing wrong there (or just before that)
    2.) Look at the API documentation of the Exception class and find out when it's thrown (in this case: look at http://java.sun.com/javase/6/docs/api/java/util/UnknownFormatConversionException.html )
    If you still can't figure out the problem post the line where the problem occured.

  • How can I use a class like this?

    public class Test<N, T extends Test<N, T>> {
    public static void main(String[] args) {
    Test<String, Test<String, Test>> test = null; //compile failed...
    }

    I could suggest the following example:public class Test<N, T extends Test<N, T>> {
        public void op(T t){
            System.out.println("T: " + t.getClass().getName());
        public static void main(String[] args) {
            SubTest<String> subTest = new SubTest<String>();
            subTest.op(subTest);
    class SubTest<N> extends Test<N, SubTest<N>>{   
    }The problem is that T parameter should be a descendant of Test class

  • Using java math class  for power's SQ rt and rounding.

    Hey all
    ive attempted to use maths class to create a program a user can enter a number and then the output shows
    The number rounded to the nearest integer
    The Square root of the number
    and finaly the number to the power of 6
    So far i have the following code but im a bit thick to what im missing ....
    import java.util.*;
    public class Mathclass
         public static void main(String[] args)
         Scanner kybd = new Scanner(System.in);
         double num = kybd.nextInt(); // kybd is an instance of Scanner
         public static double ceil (double num);
         public static double sqrt (double num);
         public static double exp (double num);
    }}Please be kind i know the outputs arnt there yet but im getting 15 errors in javac
    Thankyou

    Javaman01 wrote:
    i can understand that you feel this way , i just have a lot of programs i need to complete for a portfolio tommorow , so i need all the help i can get.Well, then I guess you started too late. Talk to your teacher that you won't be able to get it done on your own. Start learning your course book or the basic tutorials I posted and try to do the assignments again. I really think you know too little to get this done.
    Javaman01 wrote:
    if you wish not to help the please dont comment as i fear this will put others of helping me when i need it most.I did help you! And you have nothing to say about me posting here or not. Just as I can't stop you from trying to get others to do your homework.
    Javaman01 wrote:
    thankyouYou're welcome.

  • Can I use the CL_GUI_FRONTEND_SERVICES class in background jobs

    can i use the class CL_GUI_FRONTEND_SERVICES and its methods for the background job purposes...
    Thankyou
    Bhaskar

    Hi Bhaskar,
    normaly it doesn't work in background,
    But there is one solution shown by Srilatha Thirukkovalluri.
    Here the link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2
    Hope it helps.
    Regards, Dieter

  • Use of classes Vs tables

    Hi All,
    I have e requirement where i need to select data from tables....... It was told to me that i can make use of classes instead of tables...... I am working on Inbound delivery in EWMmodule.......
    can any one through some light on this....... how can i make use of classes to get data from sap tables.........
    Regards,
    Poonam

    Hi Faisal,
    Just to correct you it's "Methods of Global Persistent Classes".
    Not to hide my ignorance in OOPs, but i don't think persistent classes should be used for mundane selects. It's much easier to write, maintain & troubleshoot a select construct than a persistent class
    You can go through this discussion on: Why do we need Persistent Classes ?
    BR,
    Suhas

Maybe you are looking for

  • Distorted Sound with 6735S

    Hi, I have a 6735S and recently the sound has gone distorted and crackly when listening to music, watchin dvdx... even the start up tune! I ve tried headphones and speakers, still the same problem persists. I ve gone through the FAQ on the HP site, a

  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\ Missing in Registry

    I was trying to disable autorun on my labtop using the registry but the following registry folder is missing on my system:  HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\ I am running Windows 7 Home Premium x64. Is thi

  • ORA-02074 Error and MS Data Provider

    I have no idea where to post this kind of stuff, but let's give this a try and if it should be posted elsewhere, just let me know and I will move it! My C++ developers use the MS Data Provider to access our 9i database. They call stored procedures to

  • Forget my 4 pass codes

    I forgot my 4 digit passcode what can I do now???

  • Damage to the property

    My house was struck by lighting and fried all my electronics with the anguish of having this type of damage along with damage to the comcast equipment the technicians came to the house and supposed to be the savor but instead they have xaused more da