Need help in doing exercise with classes

Here is my exercise:
1.     An object Student has: id, last name, first name, number of AAS courses and number of ESL courses in current semester and whether student uses laptop or not.
The formular to calculate tuition fee:
Tuition fee = AAS courses *20 ESL courses * +15+
+If student uses laptop, tuition fee will be deducted 5%
Write the methods to:
o     Calculate tuition fee.
o     Display student information
My Student class:
public class Student {
     private String id;
     private String lastName;
     private String firstName;
     private double nAAS;
     private double nESL;
     public void setIdentification(String input) {
          id = input;
     public void setLastName(String input) {
          lastName = input;
     public void setFirstName(String input) {
          firstName = input;
     public String getID() {
          return id;
     public String getLastName() {
          return lastName;
     public String getFistName() {
          return firstName;
     public void setNumberOfAAS(String input) {
          nAAS = Double.parseDouble(input);
     public void setNumberOfESL(String input) {
          nESL = Double.parseDouble(input);
     public double getNumberOfAAS() {
          return nAAS;
     public double getNumberOfELS() {
          return nESL;
     public double result(String input) {
          if (input.equalsIgnoreCase("true")) {
               return (getNumberOfAAS() * 20 + getNumberOfELS() * 15) * 0.95;
          } else {
               return getNumberOfAAS() * 20 + getNumberOfELS() * 15;
}And my DisplayResult class:
import javax.swing.JOptionPane;
public class DisplayResult {
     public static void main(String[] args) {
          String input;
          Student st = new Student();
          input = JOptionPane.showInputDialog("Enter the ID here:");
          st.setIdentification(input);
          input = JOptionPane.showInputDialog("Enter the last name:");
          st.setLastName(input);
          input = JOptionPane.showInputDialog("Enter the first name:");
          st.setFirstName(input);
          input = JOptionPane
                    .showInputDialog("Enter number of AAS courses you took:");
          st.setNumberOfAAS(input);
          input = JOptionPane
                    .showInputDialog("Enter number of ESL courses you took:");
          st.setNumberOfESL(input);
          input = JOptionPane
                    .showInputDialog("Enter \"true\" for using laptop and \"false\" if not:");
          st.result(input);
          // Display the result
          JOptionPane.showMessageDialog(null, "The result is:\n" + st.getID()
                    + " " + st.getLastName() + " " + st.getFistName()
                    + "\nYou have: " + st.getNumberOfAAS() + " AAS "
                    + st.getNumberOfELS() + " ESL\n" + "Using laptop: " + input
                    + "\nYour tuitionFee is: "
                    + st.result());
System.exit(0);
}The eclipse notice an error which is st.result in DisplayResult class. Please tell my what 's wrong with it?
Edited by: congtm88 on May 4, 2009 9:43 AM

Oh thax. I corrected it.
     public static void main(String[] args) {
          String input;
          Student st = new Student();
          input = JOptionPane.showInputDialog("Enter the ID here:");
          st.setIdentification(input);
          input = JOptionPane.showInputDialog("Enter the last name:");
          st.setLastName(input);
          input = JOptionPane.showInputDialog("Enter the first name:");
          st.setFirstName(input);
          input = JOptionPane
                    .showInputDialog("Enter number of AAS courses you took:");
          st.setNumberOfAAS(input);
          input = JOptionPane
                    .showInputDialog("Enter number of ESL courses you took:");
          st.setNumberOfESL(input);
          input = JOptionPane
                    .showInputDialog("Enter \"true\" for using laptop and \"false\" if not:");
          // Display the result
          JOptionPane.showMessageDialog(null, "The result is:\n" + st.getID()
                    + " " + st.getLastName() + " " + st.getFistName()
                    + "\nYou have: " + st.getNumberOfAAS() + " AAS "
                    + st.getNumberOfELS() + " ESL\n" + "Using laptop: " + input
                    + "\nYour tuitionFee is: "
                    + st.result(input));
System.exit(0);
     }But I think that, I should change result method into useOfLaptop then write one more instance method name getResult in Student class, right?

Similar Messages

  • Need help using hierarchical list with class cl_salv_hierseq_table

    I'm trying to learn how to use a hierarchical avl.
    so I grabbed this code http://wiki.sdn.sap.com/wiki/display/Snippets/displaysimplehirarchiallistwithclass+cl_salv_hierseq_table
    and changed it in order to use the tables bkpf and bseg instead

    TABLES: bkpf.
    TYPES: BEGIN OF ty_bkpf ,
           belnr LIKE bkpf-belnr,
           bukrs LIKE bkpf-bukrs,
           gjahr LIKE bkpf-gjahr,
           bldat LIKE bkpf-bldat,
           waers LIKE bkpf-waers,
           END OF ty_bkpf.
    TYPES: BEGIN OF ty_bseg ,
           buzei LIKE bseg-buzei,
           shkzg LIKE bseg-shkzg,
           END OF ty_bseg.
    DATA: it_bkpf TYPE STANDARD TABLE OF ty_bkpf ,
          it_bseg TYPE STANDARD TABLE OF ty_bseg .
    DATA: ibinding TYPE salv_t_hierseq_binding.
    DATA: xbinding TYPE salv_s_hierseq_binding.
    DATA: gr_table TYPE REF TO cl_salv_hierseq_table.
    SELECT-OPTIONS:
      ndoc FOR bkpf-belnr,
      empr FOR bkpf-bukrs,
      anod FOR bkpf-gjahr.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM relat_tables.
      PERFORM display_alv.
    *&      Form  get_data
    FORM get_data .
      SELECT belnr bukrs gjahr bldat waers
             INTO TABLE it_bkpf
             FROM bkpf
             WHERE belnr IN  ndoc AND
                   bukrs IN empr AND
                   gjahr IN anod.
      IF sy-subrc = 0.
        SELECT buzei shkzg
               FROM bseg
               INTO TABLE it_bseg
               FOR ALL ENTRIES IN it_bkpf
               WHERE belnr = it_bkpf-belnr AND
                     bukrs = it_bkpf-bukrs AND
                     gjahr = it_bkpf-gjahr.
      ENDIF.
    ENDFORM." get_data
    *&      Form  relat_tables
    FORM relat_tables .
      xbinding-master = 'BUKRS'.
      xbinding-slave  = 'BUKRS'.
      APPEND xbinding TO ibinding.
    ENDFORM. " relat_tables
    *&      Form  display_alv
    FORM display_alv .
      cl_salv_hierseq_table=>factory(
      EXPORTING
      t_binding_level1_level2 = ibinding
      IMPORTING
      r_hierseq = gr_table
      CHANGING
      t_table_level1 = it_bkpf
      t_table_level2 = it_bseg
      gr_table->display( ).
    ENDFORM. " display_alv

  • Need help on struts configuration with ColdFusion 10 using IIS

    We need help on struts configuration with ColdFusion 10 using IIS.
    Earlier we were using ColdFusion 8 with IIS 6 for one of our application.  This application internally calls struts. After upgrading to ColdFusion 10 struts calls are not loading. We get 404 error.
    In ColdFusion 8 struts were configured using  actions extension .do in IIS from this file-
    C:\ColdFusion8\runtime\lib\wsconfig\jrun_iis6.dll.
    But in ColdFusion 10 this file is not present as ColdFusion 10 uses Tomcat in place of Jrun.
    Also there is no information in ColdFusion log file.

    Duane wrote:
    doctormirabilis, Welcome to the discussion area!
    1) how can i configure the time capsule in order to operate as a remote base station synchronizing with the relay using the ethernet port?
    Configure the Time Capsule to act as a bridge (not distributing IP addresses). Also configure the Time Capsule to create an 802.11n wireless network with a unique network name (SSID). That's it.
    2) how can i avoid that my powerbook while accessing my wireless network does connect through the relay station instead of using the time capsule?
    Configure the Time Capsule to use a different network name than the WDS link between the 2 AirPort Express (AX). Configure the PowerBook to use the Time Capsule network.
    There are 2 pieces of information that you should be aware of...
    (1) None of the PowerBooks are capable of 802.11n.
    (2) The WDS link cuts your available bandwidth in half. So the wireless link to your neighbor's has a maximum potential of 27 Mbps.
    Let's for a minute assume that you have a Mac compatible with 802.11n. In your configuration the time you could take advantage of the 802.11n speed is when the Mac is sending/recieving data directly from/to the Time Capsule.
    There would be NO speed increase in Internet access. The speed of Internet access is going to be controlled by the slowest link in the path to the Internet. That is probably the connection to the ISP. The next slowest path is the WDS link to your neighbor's.
    Duane,
    I am in a similar situation, sharing internet with my neighbor. Do you think it would be plausible to hook up a vonage phone adapter to time capsule's ethernet port if time capsule is bridging from my neighbor's router in the configuration you have described? A check of my upload speed shows 1.67Mbps (powerbookG4 w/ airport extreme). Vonage reccommends 90kbps minimum upload speed. Am I going to lose some speed putting the Vonag adapter behind time capsule?
    Thank you

  • Re: Beginner needs help using a array of class objects, and quick

    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ? In html, I assume. How did you generate the html code of your three classes ? By help of your IDE ? NetBeans ? References ?
    I already posted my question with six source code classes ... in text mode --> Awful : See "Polymorphism did you say ?"
    Is there a way to discard and replace a post (with html source code) in the Sun forum ?
    Thanks for your help.
    Chavada

    chavada wrote:
    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.You think she's still around almost a year later?
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ?Just use [code] and [/code] around it, or use the CODE button
    [code]
    public class Foo() {
      * This is the bar method
      public void bar() {
        // do stuff
    }[/code]

  • Hi I need help. Does anyone knows joel brotonel? I bought an iPhone from him because he said he is working in apple warehouse. He tricked me. I just want to ask what should I do to get my money back?

    Hi I need help. Does anyone knows joel brotonel? I bought an iPhone from him because he said he is working in apple warehouse. He tricked me. I just want to ask what should I do to get my money back?

    thanks for advice but my problem is im far from him, i just met him online he has gained my trust. i dont know where can i complain. or to whom should i complain.

  • I have misplaced my iPod Touch 4th Generation. According to Find my iPhone, it should show up in offline mode. I need help on locating it with a software or some other way. Help?

    I have misplaced my iPod Touch 4th Generation. According to Find my iPhone, it should show up in offline mode. I need help on locating it with a software or some other way. Help?

    There is no other way.
    Sorry

  • Need help re-synching iPods with new computer and getting iTunes to...

    Need help re-synching iPods with new computer and getting iTunes to recognize our iPods (it doesn't even recognize them when they're plugged in).
    Hubby wiped my harddrive for me, so now I need to get everything back in proper places. I'm using windows XP and installed iTunes once again (I believe it's version 8). I also installed all of my iTunes songs. Now I need to know where to go from here. We have 3 iPods and I need to get them all synched once again. I know how to create different libraries for each of us, but I can't figure out how to get our songs back into our iTunes libraries. When I open iTunes and plug in an iPod, iTunes doesn't even show that an iPod is plugged in.
    What do I do now to get each of our iPods synched with our own libraries?
    TIA
    Brandy

    Thanks Zevoneer. The "Restart ipod service" worked and itunes is now recognizing my ipod! Hooray!
    Okay, now how do I synch all of our ipods with our individual libraries (I don't want all of my kids' songs and vice versa)? We each have hundreds of songs on our ipods that we don't want to lose.
    Thanks again!

  • I need help why does i send to this friend there is a redbox + x

    i need help why does i send to this friend there is a redbox + x , but i send to other friend there is no problem. for anorid samung s3 phone

    Are you sure you have the right pin for your other friend? Try deleting the contact and re-adding them. Also, BBM has to be approved in the countries of both parties.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Need help to create report with jpeg/gif image

    Hello,
    I need help with creating a form with a special jpeg/gif seal. I never done this Java. Until now, I created all forms with ansi C++ with HP escape characters to draw lines, boxs, and text. This form will contain boxes which is populated with database information read from a text file.
    Since this form contains a special seal on the upper right, I don't think it can be done with old fashion ansi C++. How can I create a form with Java and create it as a simple exe to just print the form to a specified printer.
    Thanks,
    John

    Hi,
    I am creating a form with boxes (lines and text). What is special about this form is that it has an image jpeg or gif at the top right corner. Is is a state department seal. Up to this form, I had used ansi C++ and print out escape HP character to print out the lines, boxes, and text. I have no idea how to print out the image. I am new to JAVA and only 1 class in it. Is there sample code out there to create this type of form with the image? I need a starting point.
    Thanks,
    John

  • Need Help in trying to understand class objects

    I need help on understanding following problem.I have two files for that, which are as follows:
    first file
    public class Matrix extends Object {
         private int  matrixData[][];     // integer array to store integer data
         private int    rowMatrix;     // number of rows
         private int    colMatrix;     // number of columns
         public Matrix( int m, int n )
         {       /*Constructor: initializes rowMatrix and colMatrix,
              and creates a double subscripted integer array matrix
              of rowMatrix rows and colMatrixm columns. */
              rowMatrix = m;
              colMatrix = n;
              matrixData = new int[rowMatrix][colMatrix];
         public Matrix( int data[][] )
         {     /* Constructor: creates a double subscripted integer array
              and initilizes the array using values of data[][] array. */
              rowMatrix = data.length;
              colMatrix = data[0].length;
              matrixData = new int [rowMatrix][colMatrix];
              for(int i=0; i<rowMatrix; i++)
                   for(int j=0; j<colMatrix; j++)
                        matrixData[i][j] = data[i][j];
         public int getElement( int i, int j)
         {      /* returns the element at the ith row and jth column of
              this matrix. */
              return matrixData[i][j];
         public boolean setElement( int  x, int i, int j)
         {     /* sets to x the element at the ith row and jth column
              of this matrix; this method  should also check the
              consistency of i and j (i.e.,  if  i and j are in the range
              required for subscripts; only in this situation the operation
              can succeed); the method should return true if the operation
              succeeds, and should return false otherwise.
              for(i=0;i<rowMatrix;i++){
                   for(j=0;j<colMatrix;j++){
                        x = matrixData[i][j];
              if(i<rowMatrix && j<colMatrix){
                   return true;
              else{
                   return false;
         public Matrix transposeMatrix( )
         {     /*returns a reference to an object of the class Matrix,
              that contains the transpose of this matrix. */
         Verify tata;
         Matrix trans;
         //Matrix var = matrixData[rowMatrix][colMatrix];
         for(int row=0;row<rowMatrix;row++){
              for(int col=0;col<colMatrix;col++){
              matrixData[rowMatrix][colMatrix] = matrixData[colMatrix][rowMatrix];
         trans = new Matrix(matrixData);
                         return trans;
         public Matrix multipleMatrix( Matrix m )
              /*returns a reference to an object of the class Matrix,
              that contains the product of this matrix and matrix m. */
          m = new Matrix(matrixData);
              //Matrix var = matrixData[rowMatrix][colMatrix];
              for(int row=0;row<rowMatrix;row++){
                   for(int col=0;col<colMatrix;col++){
                        //trans[row][col] = getElement(row,col);
         return m;
         public int diffMatrix( Matrix m )
              /*returns the sum of the squared element-wise differences
              of this matrix and m ( reference to the formula in the description
              of assignment 5) */
         return 0;
         public String toString(  )
              /* overloads the toString in Object */
              String output = " row = " + rowMatrix + " col="+colMatrix + "\n";
              for( int i=0; i<rowMatrix; i++)
                   for( int j=0; j<colMatrix; j++)
                        output += " " + getElement(i,j) + " ";
                   output += "\n";
              return output;
    Second file
    public class Verify extends Object {
         public static void main( String args[] )
              int[][] dataA = {{1,1,1},{2,0,1},{1,2,0},{4,0,0}}; // data of A
              int[][] dataB = {{1,2,2,0},{1,0,3,0},{1,0,3,4}};   // data of B
              Matrix matrixA = new Matrix(dataA);     // matrix A
              System.out.println("Matrix A:"+matrixA);
              Matrix matrixB = new Matrix(dataB);     // matrix B
              System.out.println("Matrix B:"+matrixB);
              // Calculate the left-hand matrix
              Matrix leftFormula = (matrixA.multipleMatrix(matrixB)).transposeMatrix();
              System.out.println("Left  Side:"+leftFormula);
              // Calculate the right-hand matrix
              Matrix rightFormula = (matrixB.transposeMatrix()).multipleMatrix(matrixA.transposeMatrix());
              System.out.println("Right Side:"+rightFormula);
              // Calculate the difference between left-hand matrix and right-hand matrix
              // according to the formula in assignment description
              double diff = leftFormula.diffMatrix(rightFormula);
              if( diff < 1E-6 ) // 1E-6 is a threshold
                   System.out.println("Formula is TRUE");
              else
                   System.out.println("Formula is FALSE");
    }My basic aim is to verify the formula
    (A . B)' =B' . A' or {(A*B)tranpose = Btranspose * A transpose}Now My problem is that I have to run the verify class file and verify class file will call the matrix class and its methods when to do certain calculations (for example to find left formula it calls tranposematrix() and multipleMatrix();)
    How will I be able to get the matrix which is to be transposed in transposeMatrix method (in Matrix class)becoz in the method call there is no input for transposematrix() and only one input for multipleMatrix(matrix m).
    please peeople help me put in this.
    thanking in advance

    Please don't crosspost.
    http://forum.java.sun.com/thread.jspa?threadID=691969
    The other one is the crosspost.Okay, whatever. I'm not really concerned with which one is the original. I just view the set of threads overall as being a crosspost, and arbitrarily pick one to point others toward.
    But either way
    knightofdurham... pick one thread and post only in
    the one.Indeed. And indicate such in the other one.

  • Need help in text field with 2D array

    text field with 2D array
    Hi
    I need help to represent (i) in from field and (j) in to field
    I and j are 2D an array indices.
    This code are not complated
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    //declaring class
    public class test3 extends Applet implements ActionListener
    { //declaring the TextField
    private TextField fromField ,toField;
    //declaring an array
    int weight[][];
    int m = 99; // m is infinity
    int N; // Set of Nodes
    int d; // distance
    int i; // source Node
    int j; // destition Node
    //declaring values of text field
    private int from = i; // start Node
    private int to = j; // end node
    public void init()
    setBackground(Color.white);
    setForeground(Color.red);
    //giving labels
    Label TITLE2,TITLE1;
    TITLE1 = new Label("from:");
    add(TITLE1);
    fromField = new TextField(5);
    add(fromField);
    // register listener using void add actionListener
    fromField.addActionListener(this);
    TITLE2 = new Label("to");
    add(TITLE2);
    toField = new TextField(5);
    add(toField);
    // register listener using void add actionListener
    toField.addActionListener(this);
    // event handler methods
    public void actionPerformed(ActionEvent event) {
    //declaring textfield
    from=Integer.parseInt(fromField.getText());
    to=Integer.parseInt(toField.getText());
    weight =new int[7][7];
    weight[1][1] = 0; weight[2][1]= 2;
    weight[1][2]= 2; weight[2][2]= 0;
    weight[1][3]= 5; weight[2][3]= 3;
    weight[1][4]= 1; weight[2][4]= 2;
    weight[1][5]= 99; weight[2][5]= 99;
    weight[1][6]= 99; weight[2][6]= 99;
    weight[3][1]= 5;
    weight[3][2]= 3;
    weight[3][3]= 0;
    weight[3][4]= 3;
    weight[3][5]= 1;
    weight[3][6]= 5;
    for (int i=1; i<7; ++i) {
    for (int j=1; j<7; ++j)

    all your base are belong to us

  • New and need help - drag and drop with dynamic text

    So I'm doing this project and as an animator I'm not familiar with the whole action script side of flash
    Okay so far I've managed to create the whole Drag and Drop feature and it works well, the thing is I want to make it so when you drag in object in the correct spot and new text appears, and I need like six different object with the dynamic text. but I have no idea how to integrated it in my code or where I should start!
    So i based myself on some tutorial so theres some code in there that had dynamic text, but not exactly what i wanted
    Your help would be much appreciated!
    This is my code:
    var counter:Number = 0;
    var startX:Number;
    var startY:Number;
    six_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    six_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    five_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    five_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    four_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    four_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    three_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    three_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    two_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    two_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    one_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    one_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    function pickUp(event:MouseEvent):void {
        event.target.startDrag(true);
    reply_txt.text = "";
    event.target.parent.addChild(event.target);
    startX = event.target.x;
    startY = event.target.y;
    function dropIt(event:MouseEvent):void {
        event.target.stopDrag();
    var myTargetName:String = "target" + event.target.name;
    var myTarget:DisplayObject = getChildByName(myTargetName);
    if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
        reply_txt.text = "Good Job!";
    event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
    event.target.buttonMode = false;
    event.target.x = myTarget.x;
    event.target.y = myTarget.y;
    } else {
    reply_txt.text = "Try Again!";
    event.target.x = startX;
    event.target.y = startY;
        if(counter == 6){
            reply_txt.text = "Congrats, you're finished!";
    six_mc.buttonMode = true;
    five_mc.buttonMode = true;
    four_mc.buttonMode = true;
    three_mc.buttonMode = true;
    two_mc.buttonMode = true;
    one_mc.buttonMode = true;

    where you have
    xxx.text = ....
    is where you're assigning text.

  • NEED HELP!!! with my Micro Photo

    i need help i was having problems with my computer recognizing my Micro Photo so i was in to recovery menu so then i accidentally hit the reload firmware option and now i cant get it to work it only goes onto the Recovery Menu and i cant get the firmware updater to work and i cnat find no files of the firmware itself...but the weird thing is i can access the Micro Photo itself through my computer and browse it but idk wat to do some plzzz help me

    themagooshow,
    You don't need USB2.0 but you will need to have at least Service Pack for your Windows XP and Windows Media Player 0 installed.
    Jason

  • Need help - I2C write/read with TAOS TCS3414 light sensor using USB-8451

    Hello, I'm new to labview and need help setting up a vi that will allow me to communicate with a digital light sensor (TAOS TCS3414) using a USB-8451. I need to use the sensor to measure light from a light source that I designed and built as part of a project im working on. I've tried looking at several labview I2C exampled but find them to be very confusing. I've used an arduino to interface with the sensor successfully but need to use labview and dont understand how to write the program. The actions are simple; I need initialize the sensor with a simple command and then request data from 8 data registers and then read that data. The data will then be used in further calculations. The portion i need help with is writing and reading from the sensor. I've attached the datasheet for the sensor as a guide. I can also provide the arduino code that i use to read data from the sensor if that would help. 
    Pleae keep in mind that i am completely new to labVIEW. I really do want to learn from this but need quick results so the more help the better. It would greately appreciate any help or explaination. 
    Attachments:
    TCS3414_Datasheet_EN_v1.pdf ‏1806 KB

    Hi Aaron,
    Here you go, this is made with a USB-8452.
    When you run the code tick the power en dac enable box on.
    Maybe you can help me with my problem, I want to use a fiber to sense light from a led.
    Do you use any fiber hardware with the TCS3414?
    gr,
    Attachments:
    TCS3414.vi ‏63 KB

  • Need help on ammount formating with num{$z,zzz,zz9.99}

    Hi All
    Need help in formating the amount fields.
    Currently I am using num{$z,zzz,zz9.99} Its working fine for positive ammount value.
    But for negative amount its giving output as $-18,970.50
    Expected out is -$18,970.50
    need '-' sign before $
    Thanks,
    Abhijit

    issue resolved by setting pattern as  = num{z$z,zzz,zz9.99}

Maybe you are looking for

  • I need help changing my credit card details so that I can use the App Store but I can't get it to work

    I need help updating credit card. Details as its not sllowing me to get any apps

  • Display Condition info of a PO

    Hello Gurus,   How can I display the condition records maitained in a PO? I tried using table konh but it only works for quotations. The bapi (BAPI_PO_GETDETAIL) that I'm currently using only displays line items. Thanks, Jeffrey

  • Java ClassNotFoundException

    hi all: F:\>set JAVA_HOME=F:\jdk1.1.8 F:\>set path=%JAVA_HOME%\bin; F:\>set classpath=.;F:\jar\saxjava-1.0.jar;%JAVA_HOME%\lib;%JAVA_HOME%\lib\class es.zip;F:\jarfiles\xml.jar;F:\jarfiles\saxon-aelfred.jar; F:\>echo %classpath% .;F:\jar\saxjava-1.0.j

  • "Show Grid" in a GridBagLayout

    I'm trying to show the grid for a GridBagLayout in a the Java Visual Editor for Swing, but I don't find any "Show Grid" option in the popup menu, as it's mentioned in the JDev help. I'm using JDeveloper 10.1.3. Thanks in advance.

  • Importing issue, trash issue, and music store issue.

    1. When importing a song from a CD it imports most of the song then "unexpectedly quits" not importing the song at all. 2. My trash can won't "see" some items when I try and throw them away from my itunes, so I have to "move to trash" rather than dra