Problem with two dimensional Vector

It is better to use one dimensional array stored in Vector
or use Vector stored in Vector?

nwoedf wrote:
It is better to use one dimensional array stored in Vector
or use Vector stored in Vector?It's better not to use Vector at all, but rather to use a class from Collections such as ArrayList.
As to the question of what to nest in what, I think that this depends on what you are doing with this data structure, how you're using it. For instance in many situations it's often better to nest a non-array/collection object in an arraylist rather than an array or another collection.

Similar Messages

  • Problem with two of my business rule triggers

    Good morning every one,
    I have a small problem with two of my business rule triggers.
    I have these tables:
    pms_activity
    csh_cash
    csh_integrate_leh
    csh_integrate_led
    and my process goes like this:
    upon approval of a row in my pms_activity table I have a trigger that insert a row in my csh_cash - and in the csh_cash table I have a trigger that will insert in the csh_ingerate_leh and csh_integrate_led.
    my problem is pms_activity does generate a row in csh_cash but the trigger in the cash does not fire to generate a row in the csh_integrate_leh and led tables.
    I have generated in the following order after I created my business rule:
    I have generated the table from the designer (server module tab)
    I have generated the CAPI from the head start utility
    I have generated the API from the designer
    I have generated the CAPI from the designer
    I have run the recompil.sql
    I have checked that my business rule trigger is enabled and should run on insert and no where restriction
    === this is my business rule logic ======
    l_rule_ok boolean := true;
    begin
    trace('br_csh001_cev (f)');
    csh_gl_pkg.csh_gen_integ_jvs(p_id
    ,p_ref_num
    ,p_own_id
    ,p_trt_id
    ,p_value_date
    ,p_description
    ,p_amount
    ,p_cur_id
    ,p_gla_dr
    ,p_gla_cr
    ,p_gla_pl
    ,p_gla_rev
    ,p_gla_eqt);
    return l_rule_ok;
    exception
    when others
    then
    qms$errors.unhandled_exception(PACKAGE_NAME||'.br_csh001_cev (f)');
    end br_csh001_cev;
    ==== end =======================
    Any help will be appreciated as I have struggled with this for two days.
    Thanks

    hmmm...
    Try resetting it again and restoring with the same backup file...
    Does the phone work properly once you've reset it before you try restoring? A lot of people here have experienced problems restoring from backups... could be worth forgetting about it and starting from scratch.
    You could try contacting your nearest Nokia Service Centre (www.nokia.com/repair) and see if they can do anything - it may need the firmware reinstalling or upgrading... possibly... give them a call though and see.
    Nokia History: 3110, 5110, 7110, 7110, 3510i, 6210, 6310i, 5210, 6100, 6610, 7250, 7250i, 6650, 6230, 6230i, 6260, N70, N70, 5300, N95, N95, E71, E72
    Android History: HTC Desire, SE Xperia Arc, HTC Sensation, Sensation XE, One X+, Google Nexus 5

  • I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server wher

    I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server where the PDFs open fine) I get an error 'There was an error processing a page. Invalid function resource' The other one just doesn't open at all. Can anyone help with this please?

    Hello,
    Are the pdf linked correctly in the website? Is this a public website? If yes, please post the link here.
    ~Deepak

  • Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.

    Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.
    I saved a new workspace and it did not help.
    No problem before I went to Maverick.

    I found the fix, go to System Preferences and open Mission Control and uncheck the box to keep monitors as they were (When switching to an application...........)

  • Two Dimensional Vector ?

    Hya,
    Is it possible to have two dimensional Vectors ?
    if yes, how would be declared ?
    I have a class called pencil,
    I want to put each 12 pencils in 1 Vector (pencil box)
    then add each of those vectors into a vector (box of pencil boxes)
    thanks in advance

    There's not really any such thing as a 2D vector
    (unless you create such a class) but you can create a
    Vector of Vectors. You can just add pencils to
    vector and add that vector to another vector.
    You might want to consider creating a PencilBox
    class, rather than using a Vector to hold the
    pencils.
    You should also use ArrayList rather than Vector.When should an arrayList be used ? or when should a Vector be used?
    thanks

  • Little problems with two sensors

    Hi
    I've got a problem with two sensors.
    First, the luminosity sensor. I'd like to set the brightness to a fixed value. It would not vary from darkness to bright sunlight.
    Then, when i'm typing in landscape mode, it often switches back to portrait mode, wich make me terribly angry as i lose too much time.
    How can i solve these two problems ?
    Is there a special app?
    Last, but least, does anyone know if an app that would allow to take HDR/exposure blending pictures exist ? It'd take 3 to 5 photos with different exposures, and if it merged them to a good tonemapped picture it would be perfect.
    Thanks

     The light sensor can't be set to a fixed permanent value using the phones default settings, I'm afraid. You can only adjust it's sensitivity. However, some users have reported using an app to keep the screen set at maximum brightness.
     The motion sensor which switches the phone screen orientation has become more sensitive after the recent PR 1.1 update, so not a lot can be done about that either, apart from trying to hold the phone as steady  as possible when using it.
    Finally, there isn't any HDR available for the N8 at this time, nor is there any setting to increase the exposure time to something like a second, which would be a nice feature to add to  a great camera.
     All the best.
    Ray

  • Problem with two finger scrolling on s440

    Hello everyone
    I have a S440 (touch version) and some Problems with two finger scrolling on the touchpad.
    First, it isn't smooth, i.e.. If I move my fingers it only starts scrolling after a second or so, basically when I've already stopped (unless I move very slow). It then makes up for the lost time by scrolling very fast.
    The more serious problem (that makes it practically unusable) is that it randomly jumps back up, often to the top of the page/document, sometimes just a page or so.
    The problems are worst with firefox and acrobat, with IE and the Microsoft reader there's no response time problem but the jumping upwards still occurs.
    The problem is there with the preinstalled Windows 8 as well as my own Windows 8 Pro (with the original Lenovo drivers). Scrolling with the Trackpoint and an external mouse work fine, as well as scrolling via the touchscreen.
    Does anyone have any suggestion if/how I can fix this?

    I also have a S440 (non-touch screen), the scrolling on the touchpad worked perfectly when I bought it, no jumping, and scrolling perfectly smoothly comparable to an Mac. But after an upgrade to windows 8.1 which broke many things ( despite upgrading all drivers), I reset my thinkpad which brought it back to windows 8, everything working normally again except the two finger scrolling which is no longer smooth (moves incrementally now), and likes to jump randomly up or down the page, (not always, but enough to make it irritating. I notice this mostly with google chrome and adobe reader as these are the apps I use most frequently.
    So my questions is what drivers or settings do I need to bring the scrolling back to the configuration it was when I purchased my S440? My device manager says I'm running thinkpad ultranav with Synaptics driver version 16.6.4.38
    Cheers,
    Paul

  • Problem with two thunderbolt display's daisychained

    hey,
    i'm having problems with my mac setup. i've got two thunderbolt displays, hooked to a 15" mbp retina laptop.
    i've got my iphone hooked to one of the usb ports of the display then i've got a keyboard, a superdrive and a charger for my magic mouse hooked to the displays as well as a firewire hd. two usb 3 hard drives are hooked directly to the mbp.
    i also changed the audio midi setup to let the audio pla through both of the displays to get a better sound. the mbp is closed so only those two displays get a video signal.
    i have issues when data is transfered along the lines. f.eg my keyboard doesn't work from time to time, my iphone wont be recognized when connected to the dock. not really sure what the problems is a the transfercapacity shouldn't be to it's limit.
    could it be a energy problem? that the displays don't get enough power, my power strip has a voltag controller in it, might that be a problem?
    greets.

    I think Apple should extend the warranty if they have a known manufacturing issue.  I won't be investing another $1000 on a display from Apple ever again.  I can't afford it.  I can by an LG, Viewsonic, Dell, or "fill in the blank" for a fraction of the cost.
    I expect a $1000 display to last me more than 20 months.
    -md

  • Strange refresh problem with two heavily used forums...

    Hi,
    For last two weeks, I have observed a strange problem with Database-General and SQL-PL/SQL forums, which are used heavily (comparatively more number of users than other forums).
    If I navigate from Forum Home (http://forums.oracle.com/forums/index.jspa?categoryID=84) to Database-General (General Database Discussions or PL/SQL forum (PL/SQL these forum pages open within 2-3 seconds but they open.
    But if I hit refresh (F5) from within these forums, 9 out of 10 times, I get a timeout or a page not found error.
    I can navigate back one page, click on link to go to Forum home and from there to Database-General or PL/SQL forum and everything works fine.
    I have tried clearing all caches, cookies and other settings on my Firefox (3.0.1) but it has not helped so far.
    Is this a known issue?

    Satish,
    I have to use the back button when after writing a reply, I am welcomed by 500_internal Service error. If I would refresh there, I lose what ever I have written. So I go back and again submit.
    For the refresh,at times ( and very often) , I find forums being slow like dead. Ironically with the reply button,thread(s) work but otherwise not. So I do a logout , refresh the page and if have to reply,click on reply. After that again, logout and refresh.
    if things are fine than refresh works fine,sadly not quite often as it should be.
    Cheers
    Aman....
    PS: Are you on Oraclecommunity.net?

  • Problem with filling up vector

    Hello,
    i'm having a problem with the following code; when i try to fill up the vector, it overwrites the previous values with the new, so the when i add the second item, the first item becomes the second too. So when i return the vector, all values are similar (the last).
    public Vector getClients(){
    Database singleton = Database.getDatabase();
    User user=new User();
    Vector clients = new Vector();
    try{
    singleton.openConnection();
    ResultSet rs = singleton.getResultSet("SELECT * FROM tblClients");
    while(rs.next()){
    user.setNaam(rs.getString("naam"));
                   user.setVoornaam(rs.getString("voornaam"));
                   user.setNickname(rs.getString("nickname"));
                   user.setEmail(rs.getString("email"));
                   user.setPaswoord(rs.getString("paswoord"));
    System.out.print("user added:" + user.getNickname() + "\n" );
    clients.add(user);
    System.out.println(user);
    singleton.closeConnection();
    }catch(SQLException sqle){
    sqle.getMessage();
    sqle.printStackTrace();
    System.out.print(clients.size() + " users added\n");
    return clients;
    }

    You are always adding the same user-Object to the Vector.
    You should put the command
    user=new User();inside the while-loop to have different objects for different users.

  • How to change the value of a two dimensional vector

    hi,
    I have a two dimensional array, Vector<Vector> myData, which contains strings. It's size is 5 rows and 6 columns
    I would like to change the value of, say, row 3, colum 5 from whatever it contains now to "new data"? I have searched and searched, but no luck
    thanks

    micheleg wrote:
    hi,
    I have a two dimensional array, Vector<Vector> myData, which contains strings. It's size is 5 rows and 6 columns
    I would like to change the value of, say, row 3, colum 5 from whatever it contains now to "new data"? I have searched and searched, but no luck
    thanksFirst off, you do not have an array of any dimension.You have a Vector that contains Vectors that contain Objects (you should provide a more specific type in your declaration).
    To change the element at position x in the y'th Vector, get the y'th Vector and change the x'th element in said Vector.
    As a side note, you should be using ArrayList instead of Vector these days.

  • Problem with two-column layout

    Hello,
    I've done table-based layouts for several years, but I'm
    trying to switch to CSS. I still have a lot to learn...
    I'm trying to create a web site as a favor for a friend. She
    hasn't figured out what she wants yet, so I've just been creating
    some pages using canned designs. I created one using "Two-column
    left nav" under Dreamweaver's "Page designs (CSS)":
    http://www.alcie.org/demo2/
    I want a fixed-width left navigation column and a fluid
    content column.
    I ran into several problems with the original design. The
    most notible was that if I changed the browser window width, both
    the content and nav columns would resize. I didn't want that, so I
    set "navBar" width: 150px. That worked, but if I make the window
    too narrow, the content starts to overlap the navigation column in
    Firefox 1.5.0.6, and the navigation DIV drops to below the content
    in IE 7 rc (I think) 3 and IE6. I tried removing the width
    altogether, but that made things worse.
    What is wrong with this picture? Is there a cleaner way to
    solve my problem?
    Thanks.

    > Is there a cleaner way to solve my problem?
    Yes - dump that layout. It's too quirky. Go here and grab one
    http://www.maxdesign.com.au/presentation/page_layouts/
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Clean & Sober" <[email protected]>
    wrote in message
    news:edgvl4$akl$[email protected]..
    > Hello,
    >
    > I've done table-based layouts for several years, but I'm
    trying to switch
    > to
    > CSS. I still have a lot to learn...
    >
    > I'm trying to create a web site as a favor for a friend.
    She hasn't
    > figured
    > out what she wants yet, so I've just been creating some
    pages using canned
    > designs. I created one using "Two-column left nav" under
    Dreamweaver's
    > "Page
    > designs (CSS)":
    >
    >
    http://www.alcie.org/demo2/
    >
    > I want a fixed-width left navigation column and a fluid
    content column.
    >
    > I ran into several problems with the original design.
    The most notible
    > was
    > that if I changed the browser window width, both the
    content and nav
    > columns
    > would resize. I didn't want that, so I set "navBar"
    width: 150px. That
    > worked, but if I make the window too narrow, the content
    starts to overlap
    > the
    > navigation column in Firefox 1.5.0.6, and the navigation
    DIV drops to
    > below the
    > content in IE 7 rc (I think) 3 and IE6. I tried removing
    the width
    > altogether,
    > but that made things worse.
    >
    > What is wrong with this picture? Is there a cleaner way
    to solve my
    > problem?
    >
    > Thanks.
    >

  • Problem with two dynamic dropdowns

    I have four screens each one with two dropdown's in a child parent relationship with one constrained by the other. Both uses dynamic domains against entity views with the child passing a bind variable containing the value of the parent. The problem I am seeing is that when I enter the detail screen for a row then the child dropdown is populated correctly. When I leave the detail screen and return to the summary only rows with the same primary column value will have the secondary populated.
    e.g. Summary Screen
    Id | Department | Employee
    =========================
    1 | Finance | Jones
    2 | Finance | Smith
    3 | Engineering |
    4 | Engineering |
    5 | Admin |
    If I enter the detail form for the first row and change nothing but simply return to the summary, then rows 1 and 2 with primary 'Finance' will have employee populated but if I open row three with primary 'Engineering' then only rows 3 and 4 will have employee populated.
    It looks like the bind variable that limits the secondary dropdown values, gets set in the form view so that when you return to the table view only values from that limited set get displayed.
    (The differences between the four screens are related to fields other than the two dropdowns)
    Screen1 View for primary lookup:
    ==============
    Table name: Lookup
    Column1: CompositeId
    Column2: Description
    SQL:
    <pre>
    SELECT
    Lookup.Id,
    Lookup.Description
    FROM cv_claims.LOOKUP Lookup
    WHERE LookupName = 'screen_1'
    </pre>
    View for secondary lookup
    ================
    Table name: LookupAssociation
    Column1: FromLid
    Column1: ToLid
    SQL:
    <pre>
    SELECT
    Lookup.Key,
    Lookup.Description
    FROM LOOKUP Lookup
    WHERE Key IN (SELECT ToLid FROM LOOKUP_ASSOCIATION WHERE FromLid = ?)
    </pre>
    Bind variables: FromLid
    Bind variable in dynamic domain for screen 1
    =============================
    FromLid=#{bindings.S01EmployeeLid.inputValue}
    Any suggestions would be appreciated.
    Thanks,
    Pascal

    Hi Pascal,
    Did you follow the instructions in section 6.12.2 of the Oracle JHeadstart 10g for ADF (10.1.3.2) developer's guide?
    Regards,
    Ibrahim

  • Problem with two parallel While loops

    I have a serious problem with controlling two parallel While Loop. Here is the deal:
    I have written a VI to send a series of commands called Cycle through Serial Port to a custom hardware. One of these commands is setting motor pressure by sending it's command and changing it's voltage. After setting desired pressure I have to read and control motor pressure, again through serial port in a parallel loop. There is a Pressure Sensor in system and I can obtain current's motor pressure by sending a command and receiving pressure value. In the first While loop I send some commands to hardware including Pressure Setting Command trough a state machine. In the second While Loop I read pressure value and then decide to increase motor voltage or decrease  it. Now the problem is in communicating these two loops. In cycle after "Init" state when state reaches "Pressure 2 Bar" motor voltage will increase. Meanwhile I have to control this voltage in parallel While Loop. As you can see I used Local Variable to communicate between these two loops. The problem is that loops are not synchronized. Specially when I switch to "Pressure 3.8 Bar" state during cycle running control loop (second while) is still working based on "Pressure 2 Bar" state not 3.8 bar. Because of this motor pressure goes to 3.8 bar for a sec (becuase of  "Pressure 3.8 Bar" state) and comes back to 2 bar (because the second while still has not gotten that new state,most probably cause of all the delays in the loop)  and after couple seconds it goes back to 3.8 bar.
    I really don’t know what to do. Is there a way to fix this? Or I should consider a better way to do this?
    I went through Occurrence Palette but couldnt figure out how to embed that in the VI. 
    Sorry for my poor English. I attached VI and it's subVIs as a LLB file. I can explain more details if somebody wants. 
    Attachments:
    QuickStartCycle.llb ‏197 KB

    I make it a point to NEVER have a WAIT function inside a state machine.
    It sort of defeats the purpose, which I define as "Examine current state; decide whether you've met the conditions to advance to another state, then get out".
    For example, I have a single state machine VI controlling four identical instruments, via TCP connections.
    For some functions, that means issuing a command, waiting 60 seconds, then reading results.
    If I waited INSIDE the state machine, then it's tied up waiting on one device and cannot handle any others.
    Not a good plan.
    To handle this, I have a loop which calls the state machine.  After issuing the command, the state goes to "Waiting on Response", and there is a target time of 60 seconds from now.
    It's called over and over in that state, and each time merely compares NOW to the target time.  If NOW is past the target, then we read the results.
    the state machine can tell the caller when to call back; that's how I distinguish between an urgent need and nothing-to-do.
    By having the CALLER do the waiting, instead of the state machine itself, the state machine is free to handle another device, or do something else on the same device.
    You should be calling the state machine over and over and over anyway.  So, have the state machine "control the pressure" on every call, and THEN examine whatever state it's in.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Problem with two Xbox 360's being online at same time with WRT54GS router

    Hey guys, I have a bit of an annoying problem. I have multiple 360 consoles which are occasionally online at the same time. When one is on, it either causes connection problems with the other or blocks the other from signing on all together. Both are using the official wireless adapters and are hooked up to my WRT54GS. Usually when one of them fails at the connection test, it's a DNS failure, but it has occasionally been an IP failure. 
    I've already tried:
    -setting them both up with static IPs. This caused NAT issues and didn't really fix the problem with one of the consoles kicking the other off.
    -forwarding ports to one while leaving the other alone, setting one up in a DMZ while leaving the other alone, and setting one up in a DMZ and forwarding the ports to the other. All three trials showed no improvement, and caused NAT problems. 
    Also yes, I do have UPnP enabled.
    *sigh*
    This problem has been driving me up the wall for months now. No one I've talked to has been able to figure it out. If anyone can offer me a solution I will forever be in your debt. 

    You can set a Static Ip on Both the XBOX and then login to your router and do Port Triggering, this may solve your problem.

Maybe you are looking for

  • Ipod Sort Order in Itunes

    Hi all; I've had an Ipod since last Xmas and just noticed something odd. For a long time, whenever I synced my Ipod, the content would appear (in Itunes) in Artist order (i.e., under Devices/My Ipod, the content on my Ipod would appear in alphabetica

  • RBAC ISE 1.2 Data Access Permissions

    Hello, We are trying to configure ISE 1.2 patch 7 RBAC profiles. The idea is that regional admins can only manage their users. Under User Identity Groups we have several groups for example: UK-Users Brazil-Users Russia-Users Each identity is then add

  • DOM to XML

    I am trying to create an XML file using DOM and a HashMap to enter data. 1- How can I link my HashMap to teh DOM code 2- Why FileWriter is printing only one line in the file 3- Am I missing something? Thank you import javax.xml.transform.Transformer;

  • Need Help with Saved Drafts

    I created a new page from exiting one...Edited it for new content..Saved it as a draft...Opened the next day finding a horrific corrupt looking ....The entire editable area within the blue line and the line itself had shifted way below as in out of t

  • User changing position in ECC and impact on follow-on docs

    Hello all, Can any one tell me what will happen when a requestor creates a shopping cart and then moves to a different org node in org structure. The EBP users are built by distributing the positions and employees from the HR System. for Eg: 1.USER1