Array help needed!!!

import java.lang.String;
import java.io.*;
import java.io.IOException;
import java.util.*;
import java.lang.Boolean;
class Books
public static final int SIZE=3;
// public static final int LOAN;
// public static final int RETURN;
//public static final int QUERY;
static int option;
String title;
String author;
boolean loanStatus;
String borrowerID;
Date loanDate;
Date dueDate;
Books[]p0=new Books[SIZE];
static void DisplayMenu()
System.out.println("===Menu===");
System.out.println("0 to Exit");
System.out.println("1 to Borrow a book");
System.out.println("2 to Return a book");
System.out.println("3 to Query a book");
System.out.print("===Your Choice>>");
public static void main(String[] args)
throws IOException
BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in));
String string;
Books display =new Books();
do
System.out.println("\n\n");
Date loanDate = new Date();
Date dueDate = new Date();
dueDate.setTime(loanDate.getTime() + (long)(24*60*60*1000)*14);
System.out.println(loanDate);
System.out.println(dueDate);
display.DisplayMenu();
System.out.flush();
string=stdin.readLine();
option=Integer.parseInt(string);
switch(option)
case 0:
System.out.println("Exit");
break;
case 1:
//display.displayBookList(Books[] p0)
display.displayBookList(p0);
display.loanBook();
break;
case 2:
display.returnBook();
break;
}while(option!=0);
void loanBook() throws IOException {
BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in));
String string;
if(!loanStatus){
System.out.println("Enter borrower ID: ");
System.out.flush();
borrowerID=stdin.readLine();
loanStatus=true;
else
System.out.println("Book is on loan");
public void Books()
// Books[]p0=new Books[SIZE];
     loanStatus=false;      
p0[0]=new Books();
p0[0].title="Java Software Solution";
p0[0].author="Lewis Loftus";
p0[1]=new Books();
p0[1].title="Java How To Programming";
p0[1].author="Lewis Loftus";
p0[2]=new Books();
p0[2].title="Java";
p0[2].author="Lewis Loftus";
void returnBook()
if( loanStatus)
loanStatus=false;
System.out.println("Book is return");
else
System.out.println("Book is Not on loan");
static void displayBookList(Books[] p0)
//Books display=new Books();
System.out.println("===Book List===");
System.out.println("0 Back To Main Menu");
System.out.println("1 "+p0[0].title);
System.out.println("2 "+p0[1].title);
System.out.println("3 "+p0[2].title);
System.out.print("===Your Choice>>");
static void processBook(Books[] p0) throws IOException
System.out.flush();
string=stdin.readLine();
option=Integer.parseInt(string);
switch(option)
case 0:
display.DisplayMenu();
break;
case 1:
break;
case 2:
display.returnBook();
break;
Does anyone know how why i cant access the array???

Hello,
After u make p0 as display.p0 inside choice 1 in your main method u can compile the code.
But still there are some problems in ur code.
1)when u will try running it and give option as 1.
ur constructor --- public void Books() will not be called because its not a constructor at all its a method. In any case a constructor can not have a return type.
if u give a return type to a constructor as given void by u.then that constructor wil be treated as a method and when u costruct the objects default costructor will be called. So ur constructor is never called.Thats why it will
give u null pointer exception when u try to display the list of books.
2) if u remove void from ur constructor...
then also u are calling new Books() constructor again in side new Books() constructor, so it will go in to an infinite loop....
so be clear what u want to do and then proceed..
hope this will be of help.
Amrainder

Similar Messages

  • Urgent array help needed! come get some duke points

    this program keeps track of rentals for a shop. Other methods and classes not shown (like Customer, Transaction classes) are also in this program. Every item (created with a constructor in Item class) can hold an array of up to 20 transactions; part of a Transaction object is a rental total, based on a number of rental days * specific rental price for that item rented (backhoe, edger, etc.) If the user presses "t" for total amount of transactions, the following method is called, which calls the getTotalPrice() in another class called Item. My problem here is that even if I enter in transaction amounts, when I press "t", the program just quits, not producing the report and returning me to the main class. I have been over it with the debugger and I am still lost. Below is some selected code; I hope it is sufficient. Please let me know if I need to put up more
    //main
    String input = JOptionPane.showInputDialog(null, "Enter a rental transaction (x)" +
                                                      "\nAdd a customer (c)" +
                                                      "\nAdd an item (i)" +
                                                      "\nReport on a specific item (r)" +
                                                      "\nReport on total dollar amounts of rentals for all items (t)" +
                                                      "\nReport on total rentals for a specific customer (s)" +
                                                      "\nStrike cancel to exit from the program");
              //big huge while
              while (input != null){
                   if (input.equals("x")){
                        rentalTrans();
                   }//if
                   if (input.equals("c")){
                        addCustomer();
                   }//if
                   if (input.equals("i")){
                        addItem();
                   }//if
                   if (input.equals("r")){
                        specificItemReport();
                   }//if
                   if (input.equals("t")){
                        allItemReport();
                   }//if
                   if (input.equals("s")){
                        customerReport();
                   }//if
                   input = JOptionPane.showInputDialog(null, "Enter a rental transaction (x)" +
                             "\nAdd a customer (c)" +
                             "\nAdd an item (i)" +
                             "\nReport on a specific item (r)" +
                             "\nReport on total dollar amounts of rentals for all items (t)" +
                             "\nReport on total rentals for a specific customer (s)" +
                             "\nStrike cancel to exit from the program");
    //allItemReport()
    public static void allItemReport(){ //menu item t
              Item temp = null;
              for (int index = 0; index < items.length; index++){
                   temp = items[index];
              }//for
              JOptionPane.showMessageDialog(null, "Total rental transactions to date amount to: $" + temp.getTotalPrice());
    //Item Class
    public String getTotalPrice() {
              double total = 0;
              String output = "";
              for (int i = 0; i < trans.length; i++) {
                   if (trans[i] == null) {
                        if (i == 0) {
                             output = "There are currently no transactions.";
                        }// if
                        break;
                   }// if
                   else{
                   total += getPerDayRentalPrice();
                   }//else
              }// for
              output+= total;
              return output;
         }//getTotalPrice

    Don't flag your questions as urgent. It's rude. Also don't think that waving with a couple of worthless Dukes is going to get you better/quicker help.
    The reason I respond to your question is because you have explained your problem well and used code tags.
    Try this:class Main {
        public static void main (String[] args) {
            String message = "Enter a rental transaction (x)\nAdd a customer (c)" +
                "\nAdd an item (i)\nReport on a specific item (r)\nReport on total "+
                "dollar amounts of rentals for all items (t)\nReport on total rentals"+
                " for a specific customer (s)\nStrike cancel to exit from the program";
            String input = JOptionPane.showInputDialog(null, message);
            while(input != null){
                if (input.equals("x")) rentalTrans();
                else if (input.equals("c")) addCustomer();
                else if (input.equals("i")) addItem();
                else if (input.equals("r")) specificItemReport();
                else if (input.equals("t")) allItemReport();
                else if (input.equals("s")) customerReport();
                else System.out.println("Invalid option!");
                input = JOptionPane.showInputDialog(null, message);
            System.out.println("Bye!");
        // the rest of your methods ...
    }

  • Javascript array help needed to generate narrative from checkboxes

    For context...  the user will indicate symptoms in cardiovascular section, selecting "deny all", if none of the symptoms apply.  The narrative sub-form needs to processes diagnosis sub-form and generate text that explains the symptoms in a narrative form.  For example, if the user selects "deny all" in the cardiovascular section, the Cardiovascular System Review field would have:  "The patient denies:  High Blood Pressure, Low Blood Pressure.  The logic associated with the narrative needs to account for "deny all" and all the variations of selections.
    I have what I think is a pretty good start on the logic, but would like some help with the following:
    1) loading selected fields into the cv_1s array
    2) loading fields not selected into the cv_0s array
    3) generating the narrative
    See "phr.narrative.cv_nar::calculate - (JavaScript, client)" for the coding I've done thus far.  Feel free to comment on any efficiency opportunities you see.  I have a SAS programming background, but I'm new to Javascript.  Thanks...
    Rob

    Hi Rob,
    One approach would be to give your checkboxes the same name so they can then be referenced as a group and use the caption as the source of your text, so you shouldn't have to duplicate the text and will make it easier to add more later.
    Attached is a sample doing that.
    Hope it helps.
    Bruce

  • Basic Array Help needed

    K all i am trying to do is Make an array of 5 int and then make a small basic test program that returns the smallest index of the matrix. Now the way i am doing this i want to make two files and make a call to the method that i createded called getSmallest of the public class SmallestIndex. The reason i am doing it this way nstead of putting the code in the main method is because i want to learn to pass arrays as parameters . I am learning them for the first time. This is my code:
    import java.util.*;
    import java.io.*;
    public class SmallestIndex
         public static int getSmallest(int[] matrix)
              int minIndex = 0;
              int smallestmatrix;
              for(int index = 1; index < matrix.length; index++)
                   if(matrix[minIndex] < matrix[index])
                        minIndex = index;
                   smallestmatrix = matrix[minIndex];
                   return smallestmatrix;
         public static void fillarray(int[] matrix, int numofelements) throws IOException
              BufferedReader board = new BufferedReader(new InputStreamReader(System.in));
              StringTokenizer tokenizer;
              tokenizer = new StringTokenizer(board.readLine());
              for(int index = 0; index < numofelements; index++)
                   matrix[index] = Integer.parseInt(tokenizer.nextToken());
                   if(!tokenizer.hasMoreTokens())
                        tokenizer = new StringTokenizer(board.readLine());
         public static void printArray(int[] matrix, int numofelements)
              for(int index = 0;index < numofelements; index++)
                   System.out.print(matrix[index] + " ");
    import java.io.*;
    public class TestMatrix
         static BufferedReader board = new BufferedReader(new InputStreamReader(System.in));
         public static void main(String[] args) throws IOException
              int[] matrix = new int[5];
              for(int index = 0; index < matrix.length; index++)
                   matrix[index] = Integer.parseInt(board.readLine());
              System.out.print("Elements");
              SmallestIndex.printArray(matrix, matrix.length);
              //SmallestIndex.fillarray(matrix);
              //SmallestIndex.getSmallest(matrix);

    Here's something slightly different. Compare to yours to see differences
    import java.io.*;
    class SmallestIndex
      public SmallestIndex()
        int[] matrix = fillArray();
        printArray(matrix);
        System.out.println("Smallest          = " + getSmallestNumber(matrix));
        System.out.println("Index of smallest = " + getSmallestIndex(matrix));  
        System.exit(0);
      private int[] fillArray()
        int[] temp = new int[5];
        try
          BufferedReader board = new BufferedReader(new InputStreamReader(System.in));
          for( int x = 0; x < 5; x++)
            System.out.print("Enter a number: ");
            temp[x] = Integer.parseInt(board.readLine());
        catch(Exception e) {System.out.println("error - " + e.getMessage());}   
        return temp;  
      private void printArray(int[] arrayToPrint)
        for(int x = 0; x < arrayToPrint.length; x++)
          System.out.println("Element "+ x + " = " + arrayToPrint[x]);
      private int getSmallestNumber(int[] arrayToGetNumber)
        int smallest = arrayToGetNumber[0];
        for(int x = 1; x < arrayToGetNumber.length; x++)
          if(arrayToGetNumber[x] < smallest)
            smallest = arrayToGetNumber[x];
        return smallest;
      private int getSmallestIndex(int[] arrayToGetIndex)
        int smallest = arrayToGetIndex[0];
        int smallestIndex = 0;
        for(int x = 1; x < arrayToGetIndex.length; x++)
          if(arrayToGetIndex[x] < smallest)
            smallest = arrayToGetIndex[x];
            smallestIndex = x;
        return smallestIndex;
      public static void main(String[] args){new SmallestIndex();}
    }

  • Point Array Help needed

    I'm trying to create an array of points and set all to points to (0,0)     
    private Point[] triPoints = new Point[2];
    this is what i have used but i'm not sure if it sets every point to (0,0) cos i get nullPointerException.
    Is there a quick way of declaring all the Points in the array (0,0)??
    Thanks in advance

    not that I'm aware of. Best way is:
    for (int x=0; x < triPoints.length; x++)
      triPoints[x] = new Point(0,0);
    }

  • Help needed in constructing a tree

    Help needed in constructing a tree. I was wondering if some one can suggest me how to add messages in the second column for both the parent node and child elements.
    I was able to create a tree succefully, but want to add some description in the second column for the first column elements, for both parent and child elements.
    Please suggest me how to add the arrays to second column for parent and child nodes.
    Solved!
    Go to Solution.
    Attachments:
    Tree_fix.vi ‏15 KB

    The Child Text parameter is the one you are searching for. It accepts a 1D string array for the following columns.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • T400 - Accidentaly formatted the disk 1 (IMD-0) partition in disk management - Help Needed

    Hello,
    Initially when I re-formatted my computer to get rid of the factory image, I found that there was a hidden partition of 1.37GB which I could not touch, meaning i could not delete. I ignored it at that time and formatted my computer and reinstalled vista business on it using the license i got from lenovo. Now after some days, I was kind of getting concerned as to what exactly was the 1.37Gb partition on my computer. I guess I was getting worried as to why I was not able to reclaim that space for normal use. Today, I tried to reclaim it, by deleting the volume, thinking it should merge into the unallocated space, that I have on my primary hard drive. But it did not. However, what happened was that this space of 1.37GB did start showing up on My Computer, once I formatted it using NTFS. I then checked its properties in My Computer and it had an option of readyboost. I selected the option which says use this disk for readyboost, and immediately in no time, the disk was full with on 68MB remaining as free space. It also has an icon of readyboost in the drive, when I double-click it. This is when I figured that this space could be on a separate physical disk. I did some research and found out that this drive or device or chip, is listed as Disk-1 in disk management and as IMD-0 under Disk Drives in Device Manager. I googled about it, and found that it was related to the turbo memory. Now, I believe that turbo memory would be a separate flash chip, which would be hardwired to function in a particular way (enabling boosting speeds), and that it would be non-accessible to users from within windows for formatting or doing anything else. Hence, I also believe that the space which I reclaimed, is existing on my primary 320GB hard drive and is used in addition to the turbo memory, as a  cache, to boost speeds. However, since I do not understand the turbo memory concept very well, I would really appreciate if someone could explain how the turbo memory works, i.e. including IMD-0 and all that. And the main help I need is on how to hide the 1.37GB partition again, and put it in a format that it was earlier in, and usable for turbo memory. At present I do not know if it is being used by turbo memory or not, but below is the current status of the turbo memory:
    1. In Device manager, under disk drives, IMD-0 shows up, and in properties it just says device type -- disk drive. Now I read somewhere that it should say NVCACHE, but it does not say that on my pc, under any tabs of the properties of IMD-0. Can someone help me putting it back there.
    2. Under Disk Management, it says Local Disk H:, 1.37GB NTFS, Healthy (Active, Primary Partition). I don't exactly remember, but I guess prior to me formatting it, it said unallocated. Help needed here too.
    3. In the Turbo memory controller, it says Windows readyboot enabled, Windows Readydrive enabled, 2GB
    and below that I have checkboxes for enabling windows readyboost and readydrive checked.
    So guys, can please anyone help me in re-hiding the 1.37GB partition and making it in the state it was before.
    Thanks a lot for your help.

    Hi Eric,
    Please refer the following HP article to expand your array , refer the TechNet article to expand your drive:
    HP Proliant Servers - How to Expand an Array and Extend the Logical Drive
    http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/mostViewedDisplay/?javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&javax.portlet.prp_efb5c0793523e51970c8fa22b053ce01=wsrp-navigationalState%3DdocId%253Demr_na-c03510253-1%257CdocLocale%253Den_US&javax.portlet.tpst=efb5c0793523e51970c8fa22b053ce01&sp4ts.oid=4231377&ac.admitted=1411638027623.876444892.199480143
    TechNet article:
    Extend System/Boot Volume on Windows Server 2008/ Windows Vista/Win7 Beta
    http://blogs.technet.com/b/mghazai/archive/2009/02/24/extend-system-boot-volume-on-windows-server-2008-windows-vista-win7-beta.aspx
    Extend a simple or spanned volume
    http://technet.microsoft.com/en-us/library/cc776741.aspx
    I’m glad to be of help to you!
    *** This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control
    these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the
    use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. ***
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Troubleshoting help needed:  My iMac keeps crashing and restarting with a report detail: "spinlock application timed out"  What can I do to fix this?timed out"

    Troubleshooting help needed:  My iMac keeps crashing and restarting with a notice: "Spinlock application timed out"  What can I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • Help needed I have a canon 40D. I am thinking of buying a canon 6D.But not sure that my len

    Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
    But not sure that my lenses will work.
    I have a 170mm/ 500mm APO Sigma.
    A 10/20 ex  Sigma   HSM  IF.
    And a 180 APO Sigma Macro or do I have to scrap them and buy others.
    ALL Help will be greatly received. Yours  BRODIE

    In short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
    I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
    Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

  • Help needed! Raid degraded again!

    Hi!
    Help needed! I hava made bootable RAID with two S-ATAII 250Gb HDD and its not working! Every now and then at bootup I get a message RAID -> DEGRADED... Must be seventh time! Rebuild takes its own time!
    What am I doing wrong!
    T: Ekku
    K8N Neo4 Ultra
    AMD 64 4200+
    2 Gb RAM
    2 x 250 Gb HDD (Maxtor)
    nVidia RAID (in mb)
    P.S. I wery SORRY with my poor language!

    I'm going to blame the nVRAID because I've seen issues with it in the past. If your motherboard has another non-nVidia RAID solution, use that instead. Using the nVidia SATA ports as BASE or JBOD is fine and dandy but RAIDing always had issues. It's not even a driver issue I think it's just instability. Latest drivers and even boxed drivers never helped. Granted, some will report success with their rig. But on a professional level I've seen nForce issues on different motherboards and different hard drives that had RAID disaster stories.
    Good luck and if you don't have another RAID solution, my suggestion would be to buy a dedicated RAID controller card.
    LPB

  • HELP NEEDED WITH ADDAPTER-DVI TO VGA.

    PLEASE ...HELP NEEDED WITH WIRING CROSS OVER....CAN YOU HELP WITH BACK OF PLUG CONNECTIONS...I SORTA UNDERSTAND THE PINOUTS BUT CANT MAKE AN EXACT MACH...WOULD LIKE TO BE 100% SURE...
    ......THIS ENSURES NO SMOKE!!!                                                                                           
    THE CARD IS AN ATI RADEON RX9250-DUAL HEAD-.........ADDAPTER IS DVI(ANALOG)MALE TO VGA(ANALOG)FEMALE.
    ANY HELP VERY MUCH APPRECIATED........ SEEMS YOU NEED TO BE ROCKET SCI TO ATTACH A BLOODY PICTURE...SO THIS HAS BEEN BIG WASTE OF FING TIME!

    Quote from: BOBHIGH on 17-December-05, 09:21:31
    Get over it mate !
    I find it easy t read CAPS...and if you dont like it ...DONT READ IT!
    And why bother to reply...some people have nothing better to do.
    Yes there chep and easy to come by...Ive already got a new one.
    All I wanted was to make a diagram of whats inside the bloody thing...it was a simple question and required a simple answer.
    NO NEED TO A WANKA !!
    I feel a bann comming up.
    Have you tryed Google ? really.. your question is inrelevant. No need to reply indeed.
    Why do you come here asking this question anyway ? is it becouse you have a MSI gfx card ? and the adapter has nothing to do with this ?
    You think you can come in here yelling.. thinking we have to put up with it and accept your style of posting. This is not a MSI tech center.. it's a user to user center.. Your question has nothing to do with MSI relavant things anyway's.
    Google = your friend.
    Quote from: BOBHIGH on 17-December-05, 09:21:31
    it was a simple question and required a simple answer
    Simple for who ? you (buying a new one) ? me ? we ?   .really...........
    Quote from: Dynamike on 16-December-05, 04:11:48
    1: There are allot of diffrent types of those adapters.
    If any of the mods have a problem about my reply.. please pm me.

  • Help needed for grouping.

    Hi,
        Help needed .
    I have an internal table having 6 .
    Ex :
    f1     f2    f3     f4    f5    f6
    a     aa    11    p1  10    10
    a     aa    12    p1  20    20
    b     aa    11    p2  30    30
    b     aa    12    p2  40    30
    Now i want to sum the fields f5 and f6 individually and need to display based upon the fields f1 and f4.
    To Display :
    f1     f2    f3     f4    f5    f6
    a     aa    11    p1  30    30.
    b     aa    11    p2  70    60.
    can anyone help me.How to do this..?
    Thanks

    Here you go
    DATA:
      BEGIN OF cur_tab OCCURS 0,
        f1        TYPE c,
        f2(2)     TYPE c,
        f3(2)     TYPE c,
        f4(2)     TYPE c,
        f5(2)     TYPE c,
        f6(2)     TYPE n,
      END OF cur_tab.
    DATA:
      BEGIN OF sum_tab OCCURS 0,
        f1        TYPE c,
        f4(2)     TYPE c,
        f5        TYPE p,
        f6        TYPE p,
      END OF sum_tab.
    DATA:
      BEGIN OF final_tab OCCURS 0,
        f1        TYPE c,
        f2(2)     TYPE c,
        f3(2)     TYPE c,
        f4(2)     TYPE c,
        f5(5)     TYPE c,
        f6(5)     TYPE c,
      END OF final_tab.
    START-OF-SELECTION.
      cur_tab-f1 = 'a'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p1'.
      cur_tab-f5 = '10'.
      cur_tab-f6 = '10'.
      APPEND cur_tab.
      cur_tab-f1 = 'a'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p1'.
      cur_tab-f5 = '20'.
      cur_tab-f6 = '20'.
      APPEND cur_tab.
      cur_tab-f1 = 'b'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p2'.
      cur_tab-f5 = '30'.
      cur_tab-f6 = '30'.
      APPEND cur_tab.
      cur_tab-f1 = 'b'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p2'.
      cur_tab-f5 = '40'.
      cur_tab-f6 = '30'.
      APPEND cur_tab.
      LOOP AT cur_tab.
        MOVE-CORRESPONDING cur_tab TO sum_tab.
        COLLECT sum_tab.
      ENDLOOP.
      LOOP AT sum_tab.
        READ TABLE cur_tab WITH KEY f1 = sum_tab-f1
                                    f4 = sum_tab-f4.
        IF sy-subrc NE 0.
          WRITE:/ 'Something went very wrong'.
          CONTINUE.
        ENDIF.
        MOVE-CORRESPONDING cur_tab TO final_tab.
        MOVE-CORRESPONDING sum_tab TO final_tab.
        APPEND final_tab.
      ENDLOOP.
      LOOP AT final_tab.
        WRITE:/1 final_tab-f1,
              AT 5 final_tab-f2,
              AT 10 final_tab-f3,
              AT 15 final_tab-f4,
              AT 20 final_tab-f5,
              AT 25 final_tab-f6.
      ENDLOOP.
    and the output
    a   aa   11   p1     30   30  
    b   aa   11   p2     70   60  

  • Help needed on installation of Oracle 9i on Sun Solaris 8

    Hey,
    Help needed on installation of Oracle 9i EE on Sun Solaris 8. The problem I met was: we followed the installation guide from the documentation. And we selected the choice "install software only". After it was done successfully, we run Database Configuration Assistant utility to create a database instance. But finally it always tried to create the instance at the root directory ( / ) which doesn't have enough space and then failed. The case was that we have set the enviroment parameters: $ORACLE_BASE = /export/mydata, $ORACLE_HOME = /export/apps/oracle9i. That means it should be installed at /export/mydata, but it didn't. Any help or advice are welcome. Thanks.
    Simon

    I have downloaded Oracle 11G R2 version from Windows and extracted it in Windows and copied it into DVD after extraction in two folders. Now I am mounting that DVD in Solaris 10 installed in my VMware . I made a new directory named as 'installation ' under /export/home/oracle and copied the folders from DVD to 'installation' folder. Now I am entering installation folder and try to do ./runInstaller as 'oracle ' user and getting the error mentioned before.
    Edited by: 916438 on Mar 31, 2012 5:55 PM

  • Help needed on installation of Oracle 9i EE on Sun Solaris 8

    Hey,
    Help needed on installation of Oracle 9i EE on Sun Solaris 8. The problem I met was: we followed the installation guide from the documentation. And we selected the choice "install software only". After it was done successfully, we run Database Configuration Assistant utility to create a database instance. But finally it always tried to create the instance at the root directory ( / ) which doesn't have enough space and then failed. The case was that we have set the enviroment parameters: $ORACLE_BASE = /export/mydata, $ORACLE_HOME = /export/apps/oracle9i. That means it should be installed at /export/mydata, but it didn't. Any help or advice are welcome. Thanks.
    Simon

    I have downloaded Oracle 11G R2 version from Windows and extracted it in Windows and copied it into DVD after extraction in two folders. Now I am mounting that DVD in Solaris 10 installed in my VMware . I made a new directory named as 'installation ' under /export/home/oracle and copied the folders from DVD to 'installation' folder. Now I am entering installation folder and try to do ./runInstaller as 'oracle ' user and getting the error mentioned before.
    Edited by: 916438 on Mar 31, 2012 5:55 PM

Maybe you are looking for