How can i display the message

public class Userdefined extends Exception {
          Userdefined(String sparam){
          System.out.println(sparam);
          Userdefined(){
     private static int acno[]={100,105};
     private static double bal[]={100.00,200.00};
     public static void main(String args[]) {
          try{
          for(int i=0;i<2;i++)
               System.out.println("ACCCCNO------>"+acno[i]+"BAl------>"+bal);
               if(bal[i]<150.00)
          Userdefined udexp=new Userdefined("bal less");
          throw udexp;
          catch(Userdefined e){
               System.out.println("--->"+e);
How can i display the message "less amt" using my parmeterized constructor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

VinayTK wrote:
How can i display the message "less amt" using my parmeterized constructor.Erm ... what? You can't --- at least not with the stuff you've got there.
A properly formed question, with some idea of what you're trying to accomplish would be a huuuuge help.
Winston
BTW: Congratulations. At my age, 'first's in computing are rare; but it's definitely the first time I've seen an Exception class with a main() method.
Edited by: YoungWinston on Sep 1, 2009 9:46 AM

Similar Messages

  • How can i display the error count

    Hi I'm using jdev11g
    How can i display the count of errors in validation error message pop up instead of displaying the entire list.

    Searching the forum would help
    Re: How to customize Error?

  • How can I display the data in table in separate column?

    I have a vi reading data one by one in the same column.
    How can I display the data with separate column?
    like this:
    data 1 | read | read
    data 2 | read | read
    data 3 | read | read
    (would you mind if I will ask for an example
    because it is much easier for me to work
    with an example)
    THANK YOU.

    If you're reading your data in as a 1D array, this is as simple as using the Reshape Array to make a 2D array. I've attached an example in LabVIEW 6.1 format. The example rearranges a single column of data fill several columns horizontally, but you can easily modify this code to fill the columns downward instead.
    Attachments:
    Data_Column_Example.vi ‏18 KB

  • How can I display the front panel of the dinamically loaded VI on the cliente computer, the VI dinamically loaded contains files, I want to see the files that the server machine has, in the client machine

    I can successfully view and control a VI remotly. However, the remote VI dinamically loads another VI, this VI loaded dinamically is a VI that allows open others VIs, I want to see the files that contains the server machine, in the client machine, but the front panel of the dinamic VI appears only on the server and not on the client, How can I display the fron panel with the files of the server machine of the dinamically loaded VI on the client computer?
    Attachments:
    micliente.llb ‏183 KB
    miservidor.llb ‏186 KB
    rdsubvis.llb ‏214 KB

    I down loaded your files but could use some instructions on what needs run.
    It seems that you are so close yet so far. You need to get the data on the server machine over to the client. I generally do this by doing a call by reference (on the client machine) of a VI that is served by the server. THe VI that executes on the server should pass the data you want to diplay via one of its output terminals. You can simply wire from this terminal (back on the client again) to an indicator of your choosing.
    Now theorectically, I do not think that there is anything that prevents use from getting the control refnum of the actual indicator (on the server) of the indicator that has the data, and read its "Value" using a property node. I have never tried this idea but it seems t
    hat all of the parts are there. You will need to know the name of the VI that holds the data as well as the indicator's name. You will also have to serve all VI's. This is not a good idea.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I display the range for LastFullMonth in the header of a report

    How can I display the month for LastFullMonth in the header of a report run in the past so that a report that ran sept 1 2009 selecting data for LastFullMonth (august 2009)  displays sept 2009 in the header even if there is no data selected by the report?

    Good,
    Sometimes I answer these questions and completly miss it....
    ( lack of understanding on my part )   

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • How can I display the vendor associated with result of my running total sum

    I have a report that lists vendors with their most vecent order dates.  I need to set up a rotation so that the vendor with the latest order date is next to be selected.  I used the running total summary to pick the latest date.  How can I display the vendor associated with result of my running total summary?

    If your "latest" order date means the "oldest" order date, why don't you try this:
    Go to Report tab -> Record Sort Expert -> Choose your order date in ascending order
    This will make your oldest order your first record shown. 
    You can then create a running total count for each record.
    Lastly, in your section expert under conditional suppress X+2 formula, write this:
    {#CountRecords}>1
    The result will only show the oldest record in your report.
    I hope that helps,
    Zack H.

  • How can we display the list of Report Names in Dashboard Prompt?

    How can we display the list of Report Names in Dashboard Prompt?

    Hi,
    No its not possible to display list of reports in dashboard prompts.
    Can do this using SQl results in prompt(we write query checking out report names manualy),but its not easy thing if you are having many report names to be displayed.
    Assign points and close your threads if answered.
    Refer : http://forums.oracle.com/forums/ann.jspa?annID=939
    Regards,
    Srikanth

  • How can  i  display the Number  instead of  E

    Hello Everyone ;
    I am getting confused. How can i display the Number but the Exponential value is coming as E.
    SQL> select sum(amount_sold) from sales;
    SUM(AMOUNT_SOLD)
    1.1287E+11
    Table details ..
    SQL> desc sales
    Name                                          Null?        Type
    AMOUNT_SOLD NUMBER
    i want to change 1.1287E+11 to "numeric"
    DB : 10.2.0.4
    os : rhel 5.1

    Just a minor correction on an obvious math/responding too fast error: 1.1287E+11 is a 12 digit number. You move the decimal 11 positions to the right which would add 7 zeroes to the value.
    MPOWEL01> l
      1  select length(to_char(1.1287E+11)), to_char(1.1287E+11,'999,999,999,999'), 1.1287E+11 "TEST"
      2* from sys.dual
    MPOWEL01> col TEST format 999999999999
    MPOWEL01> /
    LENGTH(TO_CHAR(1.1287E+11)) TO_CHAR(1.1287E+          TEST
                             12  112,870,000,000  112870000000the problem was that the OP failed to alias the sum result to the formatted column rather than the lenght of the data.
    HTH -- Mark D Powell --

  • TS3276 I have an old version, 10.5. A few days ago, my Inbox stopped showing new messages received, although they are coming in and show under Messages on Server.  How can I get the messages on the server to go to my Inbox so I can access them?

    I have an old version, 10.5. A few days ago, my Inbox stopped showing new messages received, although they are coming in and show under Messages on Server.  How can I get the messages on the server to go to my Inbox so I can access them?

    Make sure Mail is selected in System Preferences > iCloud

  • How can i display the days of the month in my report, please help

    dear all
    my table name is day_close_table
    it contains these columns:
    product_code number,
    the_date date,
    sale_qty number,
    buy_qty number
    price number
    i need to make report like the fiollowing
    product : 10144 from: 1-jan-2006 to :10-jan-2006
    days | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
    Sale | 50| 10| 20| 15|10|5 | 6 | 11|12|6 |
    buy |10 | 20 | 10| 0 | 0 | 0 | 10| 1 | 1| 1|
    i created two query and i decieded to join them
    the first one is to display days in horizon direction
    my query is:
    SELECT TO_CHAR(THE_DATE,'DD-MONTH')D,
    FROM HS_DAY_CLOSE;
    my question is how can i display the records in horizone direction
    please help

    i solved this problem using this query
    SELECT STOCK_CODE, COUNTRY_ID,
    SUM(DECODE(to_char(the_date,'dd') ,'01', buy_qty)) "1",
    SUM(DECODE(to_char(the_date,'dd') , '02', buy_qty)) "2",
    SUM(DECODE(to_char(the_date,'dd') , '03', buy_qty)) "3",
    SUM(DECODE(to_char(the_date,'dd') , '04', buy_qty)) "4",
    SUM(DECODE(to_char(the_date,'dd') , '05', buy_qty)) "5",
    SUM(DECODE(to_char(the_date,'dd') , '06', buy_qty)) "6",
    SUM(DECODE(to_char(the_date,'dd') , '07', buy_qty)) "7",
    SUM(DECODE(to_char(the_date,'dd') , '08', buy_qty)) "8",
    SUM(DECODE(to_char(the_date,'dd') , '09', buy_qty)) "9",
    SUM(DECODE(to_char(the_date,'dd') , '10', buy_qty)) "10",
    SUM(DECODE(to_char(the_date,'dd') , '11', buy_qty)) "11",
    SUM(DECODE(to_char(the_date,'dd') , '12', buy_qty)) "12",
    SUM(DECODE(to_char(the_date,'dd') , '13', buy_qty)) "13",
    SUM(DECODE(to_char(the_date,'dd') , '14', buy_qty)) "14",
    SUM(DECODE(to_char(the_date,'dd') , '15', buy_qty)) "15",
    SUM(DECODE(to_char(the_date,'dd') , '16', buy_qty)) "16",
    SUM(DECODE(to_char(the_date,'dd') , '17', buy_qty)) "17",
    SUM(DECODE(to_char(the_date,'dd') , '18', buy_qty)) "18",
    SUM(DECODE(to_char(the_date,'dd') , '19', buy_qty)) "19",
    SUM(DECODE(to_char(the_date,'dd') , '20', buy_qty)) "20",
    SUM(DECODE(to_char(the_date,'dd') , '21', buy_qty)) "21",
    SUM(DECODE(to_char(the_date,'dd') , '22', buy_qty)) "22",
    SUM(DECODE(to_char(the_date,'dd') , '23', buy_qty)) "23",
    SUM(DECODE(to_char(the_date,'dd') , '24', buy_qty)) "24",
    SUM(DECODE(to_char(the_date,'dd') , '25', buy_qty)) "25",
    SUM(DECODE(to_char(the_date,'dd') , '26', buy_qty)) "26",
    SUM(DECODE(to_char(the_date,'dd') , '27', buy_qty)) "27",
    SUM(DECODE(to_char(the_date,'dd') , '28', buy_qty)) "28",
    SUM(DECODE(to_char(the_date,'dd') , '29', buy_qty)) "29",
    SUM(DECODE(to_char(the_date,'dd') , '30', buy_qty)) "30",
    SUM(DECODE(to_char(the_date,'dd') , '31', buy_qty)) "31"
    FROM HS_DAY_CLOSE
    GROUP BY STOCK_CODE,COUNTRY_ID

  • How can i display the login details in the Web Ui

    Hi All,
              How can i display the information regarding the person who logged into the Web Ui and where can i find the seetings regardin this.Please provide your valuable suggestions
    Regrads,
    Lakshman.P

    look at this link https://wiki.sdn.sap.com/wiki/display/CRM/WelcomeUserMessageinWeb+UI and you will solve your problem.
    have a nice day.

  • How can I change the message for ( Find My I phone )

    How can I change the message on ( Find my I phone )

    I'm not sure if you can change the meesage but try here.

  • How can I remove the messages list on imessage on ipad?

    How can I remove the messages list on imessage on ipad?

    If you want to delete messages from the list - Tap the Edit button in the upper left corner of the messages app - above the Messages list. Then tap the red circle next to the messages that you want to delete.
    But ....if you are asking how to remove the entire list from the screen so that you can use messages in a "full screen" type mode, there is no way to do that.

  • How can I disable the Message Center?

    How can I disable the Message Center? I'm not quite understanding why I should keep it.
    Rainer,
    Germany
    Solved!
    Go to Solution.

    Hello Rainer,
    yes, simply disable autostart. Click on briefcase in tasklist, then uncheck box:
    Dieses Programm beim Start von Windows ausführen.
    At start-->programs-->thinkvantage you can acitivate it.
    regards/grüße
    Andreas
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

Maybe you are looking for

  • Premier Elements 7 out of memory solution, but....

    I finished making my first video in Prem. Elements 7. It's a 4 min long series of about 25 short clips with a few transitions and effects and cuts. I have a Dell Inspiron 1525 w/ 4 gigs of ram with Vista. I did a complete clean out of old programs, d

  • Run XML Publisher Report  via URL (like Oracle Reports)

    Hi All, Is it possible to run xml-publisher report via URL? In Oracle Reports works this fine: http://test:7777/reports/rwservlet?server=test_bihome1&report=test1.rdf&userid=test/testv@db&desformat=pdf&destype=cache We need this for public reports wi

  • 17" Studio Display Problem/Question

    The bottom right light/button on the display started constantly blinking and the top portion of my screen has decreased in brightness. The bottom portion looks fine. Any ideas on the problem?

  • Macbook Pro not working with replacement logic board

    Hello everyone! About two months ago, someone spilled tea over my macbook pro. Upon taking it to the Apple store the representative told me that it would cost me over $1,000 to repair it and that I would be better off getting a new one (I know most o

  • How do I transfer a ringtone from my iPad to my non-apple phone over my mac (running OS X Yosemite Beta)

    I have a ringtone I like on my iPad (running iOS 8.0.2). I want to get it onto my phone (not apple product) over my mac (running OS X Yosemite). The problem is that although I got the file onto my computer, my phone is not showing up anywhere, even t