Queue names with [ ] in them...

Ok, I have an assignment where I have to declare several queues with names that look like this...
Subqueue[0], Subqueue[1]...etc.
I tried to create one like this...
Queue Subqueue[0] = new QueueAr( );
But compiler is yelling at me with an error that looks like...
TestQueue.java:12: ']' expected
Queue Subqueue[0] = new QueueAr();
I have tried a few other things, but cant figure it out. Any suggesstions?
-B

Here some of the assignment so you guys can get an idea of what I am doing...
1. Write a Java program for a radix sort with the algorithm based on a queue ADT. Implement the queue ADT
using a dynamic circular array and linked list. Your program must follow the principles of object oriented
programming. The radix sort algorithm should not be aware of the implementation of the queue data structure.
The algorithm of the radix sort is described as follows:
(a) Read in the numbers from a le and create a queue called Master.
---->(b) Create 10 other queues called Subqueue[0], Subqueue[1],. . . ,Subqueue[9].<-----
(c) Remove a number from the Master queue and extract its most right digit (ones).
(d) Add the number to the Subqueue[digit]
(e) Repeat the (c) and (d) until Master queue is empty.
(f) Remove the rst element from the Subqueue[0] and insert it into the Master queue.
(g) Repeat the previous step until the Subqueue[0] is empty.
(h) Repeat the last step for consecutive Subqueue[i] where i takes on values from 1 to 9.
(i) Repeat the procedure starting from (b) Max times where the value of Max is equal to the number of digits
in the largest number of the sequence.
Example.
An application of the queue data structure to sort numbers using the Radix sort.
Master = f459; 254; 472; 534; 649; 239; 432; 654; 477
I have a queue interface and a queuearray class and all. I understand what I am supposed to do with the program, I just cant figure out why she wants the names of the queues like that. I know the compiler is confusing it with arrays. I just need to know how to get the names to work.
Thanks for the replies,
-B

Similar Messages

  • Dynamic queue name with JMS Queue XML?

    Hi,
    Is it possible to use dynamic queue name with JMS Queue XML?
    I tried using a variable in the JNDI URL, and supply the value in a package. I specified the following in the JNDI URL in the Topology:
    e.g.
    <JMS_RESOURCE>?d=<DTD_FILE>&s=<SCHEMA>&JMS_DESTINATION=#PROJECT_NAME.dest_var
    I declared and set the variable in a package, then tried to load data from the above data server to database. But executing this package gave me the following error:
    7000 : null : java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
    java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
         at com.sunopsis.jdbc.driver.bg.executeQuery(bg.java)
         at com.sunopsis.jdbc.driver.bh.executeQuery(bh.java)
         at com.sunopsis.jdbc.driver.l.f(l.java)
         at com.sunopsis.jdbc.driver.l.executeUpdate(l.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execSrcOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Am I doing it wrongly?
    Thanks!

    hi,
    as it's not in Adapter-Specific Message Properties
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    looks like you cannot do it with jms adapter in standard
    use proxy or your own adapter instead
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • JDeveloper - ESB / BPEL - JMS Adapter - prefix queue name with db schema

    When I use the JMS Adapter in ESB to create a new message queue producer or consume using database (AQ) I'm experiencing a problem when selecting the queue.
    I can browse the queue in the database but when I have selected the queue JDeveloper prefix it with the schema name owning the queue.
    Example:
    java:comp/resource/DocumentQueueResourceProvider/Queues/QUEUES.DOCUMENT_IMPORT_QUEUE
    Schema owner is QUEUES and the name of the queue is DOCUMENT_IMPORT_QUEUE.
    The problem is when I try to use it its unable to look up the queue and I have to manually remove the prefix from .wsdl file before deploying it - as with setting mcf.IsTransacted='false'.
    When the resource provider finds the queue and exposes it in the JNDI three it does it without the prefix.
    Question: How do I either:
    a) make the schema prefix be removed by JDeveloper
    b) make the resource provider prefix the queue name with the schema name.
    Anybody?
    Best regards
    Christian Damsgaard

    Try this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="http://www.yourcompany.com/msg"
    xmlns:tns="http://www.yourcompany.com/msg"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD"
    elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xsd:element name="rootnode" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eof}"/>
    </xsd:schema>
    This will result in a single node xml.
    Edited by: user472896 on Sep 22, 2010 10:29 AM

  • How to change the print queue name with Lexmark printer?

    Is it at all possible to change the print queue name from Lexmark_3500_4500_Series, to something shorter? I try to link printouts from an old Sun Unix system, thru my iMac to the Lexmark X4580 multifunction printer. However, the Sun/Unix will not accept this long print queue name...

    Apologies, I misread. The only way I know of changing the Print Queue Name is by readding the printer.
     > System Preferences > Print & Scan > Add
    Choose your printer, make sure you change the print queue name to something different (equates to the Printer Name).
    When you need to print, simply select the printer you just added.
    Once your happy it works, delete the old printer from the list in Print & Scan.
    Morgan

  • How to do querys with table field names with ":" in them

    Hello
    When I am writing an SQL query for a data set in BI publisher I cant seem to do queries containing fields with ":" in them
    such as this left join - how do I tell BI publisher not to treat the field "SEQ_UDSTATUS:" as a parameter?
    LEFT JOIN [SDE]._SMDBA_._UDSTATUS_ tblStatus on tblIncident."SEQ_UDSTATUS:" = tblStatus.SEQUENCE

    If the report query is based on DB directly , Better to use a View
    SQL query is perfectly valid, but BIP does not allow that.
    Probably, you can raise an SR to Oracle, they might take it as enhancement.

  • HT2905 I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?

    I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?

    In iTunes(on a Mac or PC) just tap on 'Albums' rather than 'Artists' and you'll see them all together.
    You may find that there are songs mislabelled. In which case right tap on the Album or Artist and tap 'Get Info', then change to the correct name and the songs will join the rest of the songs for that Artist or Album.
    Then resync with your iPhone and all will be well.

  • Required Powershell command to gather all vm names with snapshot created on them.

    Required Powershell command to gather all vm names with snapshot created on them.
    ADS/DNS/DHCP/RIS/GROUP POLICY/PowerShell/VMware/Esxi/Storage.

    Required Powershell command to gather all vm names with snapshot created on them.
    It is not related to Active Directory, more like it is a virtualization question and PowerShell. But I beleive this could help for VMWare:
    Get-VM | Get-snapshot | FT VM,Name
    Or refer to these articles:
    Get a List of Virtual Machines by Using PowerShell
    Using PowerShell to get a list Virtual Machine
    Snapshots in VMware ESXi 4.1
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • SMB Sharing and File Names with an "/" in them...

    After trying to figure out why Windows users were unable to delete directories/folders but Mac users were, I was able to determine the cause issue. I finally got an error message from an NT box saying it was unable to delete the folder because it was not empty...
    In Windows, the folder sure looked empty but looking on a Mac, it was full of files with the "/" character in them. I tested this with multiple folders, and sure enough Windows users can't see files with "/" in them. I don't know if this something that is fixable in some other way than telling users not to put a "/" in their file names, does anyone?

    Hi
    http://www.xvsxp.com/files/forbidden.php
    Tony

  • Change Queue Name in Sender Soap Adapter (or make it dynamic)

    Hello SDN!!!!
    We have a scenario where we want to make a message EOIO and I have set the Queue Name in the Sender Soap Adapter and this works great. BUT it is needed to have a more specific queue name (based on order numbers not interface name) So with this being said, Is there any way to change the queue name or append to it from the Soap Sender Adapter. I see it is possible to write a Module Bean, but the Message object returned from the ModuleContext is a scaled down version of the normal message object. Any help would be greatly appreciated
    Cheers
    Devlin

    Is this the only way to change the queue name for Soap Sender? I don't think it is possible for them to do this, as their urls are static when calling us

  • Queue name qualification

    We are using advanced queues.
    There's a user TIA which owns all db objects, one of those is advanced queue named AQ_INT_ONLINE_QUEUE_SEND.
    There's a package BCP_INT_ONLINE in which there's a function SendToAs, that (besides others) enqueue a message
    into above mentioned queue.
    Everything works fine.
    Then I create a user X :
    create user x identified by x;
    grant connect, resource to x;
    and I grant the execute privilege to x on above mentioned package.
    grant execute on bcp_int_online to x;
    Then I connect as user X.
    connect x/x
    And if I want to execute a function BCP_INT_ONLINE.SendToAs that enqueues a message I got the error message
    ORA-25205: the QUEUE X.AQ_INT_ONLINE_QUEUE_SEND does not exist
    ORA-06512: at "SYS.DBMS_AQ", line 204
    ORA-06512: at "TIA.BCP_INT_ONLINE", line 608
    ORA-06512: at "TIA.BCP_INT_ONLINE", line 91
    Notice that the package is looking for the queue that is owned bz user X.
    I believe that the cause is that dbms_aq package is implemented with invoker rights, but I cannot find the solution.
    I tried also following grants to x, none of them helped.
    exec dbms_aqadm.grant_queue_privilege('ALL', 'AQ_INT_ONLINE_QUEUE_SEND', 'X')
    grant aq_user to x;
    grant dba to x;
    Thank you for any input.

    Hi,
    Abstrart from http://help.sap.com/saphelp_nw70/helpdata/EN/7b/94553b4d53273de10000000a114084/frameset.htm on EOIO.
    Quality of Service EOIO
    In this case, the queue names supplied by the application are used to determine the suffix of the sender, receiver, and inbound queues. This name must not be more than 16 characters long and it is added to the prefix of the queue name. You can use the following characters in the name: numbers (0-9); upper case letters (A-Z); underscores (_); and forward slashes (/).
    Queue name from the application: APPQUEUENAME (maximum 16 characters)
    Inbound queue name: XBQIAPPQUEUENAME
    The name of the corresponding outbound queue is determined on the central Integration Server to bundle the messages according to receiver. This is done by using the name of the determined receiver. In this case the name of the application queue is used as well.
    Receiver name: CLIENT_XYZ
    Encrypted name: 3___
    Outbound queue name: XBQO3___APPQUEUENAME (maximum of 24 characters)
    Inbound messages with the same receiver are processed in the same sequence that they arrived. The messages are also sent in this sequence to their respective receivers; because they have the same queue name that was supplied by the application, they are placed in the same outbound queue.
    If an error occurs in the processing, the incorrect message blocks the queue to preserve the processing order.
    However, if the messages have different receivers, the sequence does not have to stay the same.
    Cheers,
    sunil.

  • Queue names in SMW01

    All,
    We are transferring quotations & orders from R/3 to CRM. Both of them have 'Z' transaction types and everything is working fine. But I have noticed in the SMW01 log that transaction types for warranties are also coming through to CRM(this has been happening for quite sometime now). But they dont actually get created because we have not defined the 'ZWAR' document type(R/3) for warranty in CRM. So there is no question of warranties getting created in CRM.
    The filter setting is defined in the 'SALESDOCUMENT' object type in R3AC1 where we are allowing only orders but not warranties. But why do I see the BDOC log in SMW01 transaction if I have already filtered that in R3AC1? I tried to display the BDOC data it says there is no data in the BDOC, I guess there is no actual BDOC but there is a log with a BDOC message ID.
    Of course this is not an issue for us as there are no warranties created in CRM, they are just coming inside smw01 and falling off from there.
    But I want to know if there is anyway this BDOC log itself can be stopped from  coming into SMW01. Is there any setting that I can stop this queue? Also I see the message queue name R3AD_SALESDO....in SMQ2 appearing momentarily.
    Any suggestions are appreciated.
    Thanks!
    Sunil

    Hi sunil,
    Explicitly in
    R3AC1 specify that warrenty transaction should not flow and then click on the syncronization button on the top of the tab.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • Queue name not appearing in SMW01

    Hi,
    we have a below mentined filter setting for material replication.
    MAKT     SPRAS     BT Between low and high value (Low <= x <= High)     AA     ZZ     I Inclusive defined set/array
    MARA     MATKL     BT Between low and high value (Low <= x <= High)     500000000     699999999     I Inclusive defined set/array
    MARA     MTART     EQ Equality (= Low)     UNBW                                                  I Inclusive defined set/array
    MARA     MTART     EQ Equality (= Low)     DIEN                                                  I Inclusive defined set/array
    MARA     MTART     EQ Equality (= Low)     ERSA                                                  I Inclusive defined set/array
    MARA     MTART     EQ Equality (= Low)     HIBE                                                  I Inclusive defined set/array
    MARA     PSTAT     CP Contains Pattern     E                                                  I Inclusive defined set/array
    we have deactivated MLAN table under Tables/structures with in object.After these settings we observed that we arenot able to find the Queue name in SMW01.And also we are not able to replciate the material which are having chinese descrption(ZH is the code).
    Is there any way that we can replicate these materials.please advise
    regards
    subbu

    One question:
    You last filter line item:
    MARA PSTAT CP Contains Pattern E
    or
    MARA PSTAT CP Contains Pattern E*

  • File and directory names with Danish characters

    I have installed the Novell Client v2.0 for Linux on my Open Suse 10.3. The Client is connecting to my Netware servers (6.0 & 6.5) without any problems...
    There is one problem... Filenames and directory names with the Danish , & (ae, oe & aa), e.g the filename bger.doc (bger = books) is shown as b. and when clicking the file the file disappears from the file list. It seems to be the same problem with the German (umlaub).
    What to do?
    /Michael

    Originally Posted by J.H.M. Dassen (Ray)
    mimo <[email protected]> wrote:
    > There is one problem... Filenames and directory names with the Danish ,
    > & (ae, oe & aa), e.g the filename bger.doc (bger = books) is shown as
    > b. and when clicking the file the file disappears from the file list. It
    > seems to be the same problem with the German (umlaub). What to do?
    As far as I know, the Novell Client for Linux expects that file and
    directory names use the UTF-8 encoding and does not support a traditional
    8-bit encoding like ISO 8859-1. Try changing the encoding of file and
    directory names to UTF-8 as described in
    SDB:Converting Files or File Names to UTF-8 Encoding - openSUSE
    HTH,
    Ray Dassen
    Technical Support Engineer, EMEA Services Center, Novell Technical Services
    Novell, Inc. Software for the Open Enterprise Software for the Open Enterprise
    Seems a good hint. When I create a folder or file from within SUSE using an "Umlaut" everything is OK and NCL 2.0 displays them correctly as they are UTF-8 formatted.
    The proposed tool is no solution: one cannot convert folders or files that one cannot see (does it work for folders at all?). Maybe a windows tool would work because one could search for all files or folders with "Umlaute" and convert them. Other options?

  • JDBC Adapter Queue Name

    I am trying to use EOIO in Sender JDBC Adapter. How are Queue Names Admnistered? Or how are the queues maintained?
    Any help appreciated.
    Regards
    Mike

    Hi,
    You can give any names for the Queues in the sender adapter for EOIO.
    This you can not see, in the SMQ2 until it is not stuck. Totally it will add the given name with XBQ*
    Related blog-
    /people/sap.india5/blog/2006/01/03/xi-asynchronous-message-processing-understanding-xi-queues-part-i
    For more~
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/94553b4d53273de10000000a114084/content.htm
    Regards,
    Moorthy

  • Help on Dynamic queue name in JMS Adapter

    Hi Experts,
      Could you please explain how to configure dynamic queue name in JMS Adapter.
    My requirement is i would have to add the date and time to JMS Queue Name in receiver JMS Adapter.
    Thanks in Advance
    Chilla

    hi,
    as it's not in Adapter-Specific Message Properties
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    looks like you cannot do it with jms adapter in standard
    use proxy or your own adapter instead
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Maybe you are looking for

  • Why does a flashing world globe appear during start-up process?

    In recent months my MacBook Pro has decided not to start up in the usual way. Now, when I am starting up a blank white screen appears for 55 sec, then a flashing world globe appears for 65 sec before the Apple logo appears. The machine is ready to go

  • There should be solution to play .avi files on 580...

    even though it supporgs .avi files via third party apps but nokia should find solution to play .avi files on nokia 5800 too

  • Lots of PROBLEMS with 7.0

     

  • 32 bit acquisition

    Hi, afaik java natively support 16bit acquisition maximum. Since i need to acquire 32bit signals from a professional board, i was wondering if there's a solution to do that in java. (I already tried with jsasio stuff but with no great results. Someti

  • Is it possible to start timeline playback from a script?

    I'm looking for a way to incorporate the timeline's "play command" (space when using keyboard shortcuts) in my script. If it is possible to do so I'm able to create a rudimentary flicking/flipping function to aid users in their animation process. (Th