Convert from BigInteger object to BigInteger[]????

hi all,
I have some list of integers as string and I change them to BigInteger object like:
BigInteger myint=new BigInteger(mytext);
Now I need to pass myint to a function which accpets BigInteger[] as argument.
public static String Decrypt(BigInteger[] ciphertext)
how can i change BigInteger object to BigInteger[] (is it an array??)???
urs all

Array is an object but you cannot cast or convert to it from what you have.
What you need to do is declare a BigInteger array and add the BigIntegers to it
int ARRAY_SIZE = 10;
BigInteger []myArray = new BigInteger[ARRAY_SIZE];
for (int i=0; i<ARRAY_SIZE; i++)
myArray[i] = new BigInteger(mytext);
If you can figure out the size of the array, then you are golden.

Similar Messages

  • How to convert from Finder Object reference to POSIX path

    I'm new to AppleScript. I'm super close to getting what I need done, but I've ran across a snag in the middle.
    The error I'm getting is Can’t make quoted form of POSIX path of item 1 of {«class docf» \"filename\" of «class cfol» \"foldername\" of «class cfol» \"Desktop\" of «class cfol» \"Username\" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\"} into type Unicode text. the problem area is highlighted and notated below. I've looked all around online but can't find what I need.
    Thanks in advance for any and all help!
    set text item delimiters to "."
    tell application "Finder"
      set theFilestoChoose to every item of (choose file with prompt "Please select the file(s) you would like to move and rename" with multiple selections allowed) as list
      display dialog "Would you like to move these files to an existing folder and then rename them, or create a new folder and then rename them?" buttons {"Move to an existing folder and rename", "Create a new folder and rename"}
      if result = {button returned:"Move to an existing folder and rename"} then
      set firstnewname to "Aauuttoommaattoorr"
      repeat with index from 1 to the count of theFilestoChoose
      set theFilesChosenbeingrenamedfirsttime to item index of theFilestoChoose
      set filenamecount to text items of (get name of theFilesChosenbeingrenamedfirsttime)
      if number of filenamecount is 1 then
      set fileextension to ""
      else
      set fileextension to "." & item -1 of filenamecount
      end if
      set the name of theFilesChosenbeingrenamedfirsttime to firstnewname & index & fileextension as string
      end repeat
      log theFilesChosenbeingrenamedfirsttime
      set choosingtheplacetomove to choose folder with prompt "Select the folder to move to"
      set thechosenfoldersname to name of folder choosingtheplacetomove -- sets the folder name as text
      set AppleScript's text item delimiters to {"-"}
      set Numberofthemonthatthebeginningofthefoldername to text item 1 of thechosenfoldersname as string -- for later to append the number back on without having to ask again!
      set shortenedname to text item 2 of thechosenfoldersname as string
      set the name of choosingtheplacetomove to shortenedname as string
      set thefolderstemporarynameaslocation to choosingtheplacetomove as string
      move theFilestoChoose to folder thefolderstemporarynameaslocation
      log theFilestoChoose
      set allfilesindestinationfolder to every file in choosingtheplacetomove as alias list --
      set aInitials to the text returned of (display dialog "Whose camera were this/these pictures taken on?" default answer "")
      set filteredList to my filterList(allfilesindestinationfolder, aInitials) as list
      log filteredList
      -- everything above this is correct so far and works perfect
      --TROUBLE SECTION BELOW
      set theSortedfilterList to (sort filteredList by creation date) -- something happens here with the theSortedfilterList that makes it unintelligible to convert to POSIX later. but I need the files in the order that this line puts them.
      log theSortedfilterList
      set timetorenamelasttime to theSortedfilterList
      set newbasename to shortenedname
      repeat with index from 1 to the count of timetorenamelasttime
      set theonefile to item index of timetorenamelasttime
      set theonefilenamecount to text items of (get name of theonetwothreefile)
      if number of theonefilenamecount is 1 then
      set fileextensionone to ""
      else
      set fileextensionone to "." & item -1 of theonefilenamecount
      end if
      tell application "System Events" to set CreaDate to creation date of file theonefile
      set CreaDate2 to CreaDate as text -- need to trim down to the first 10 characters and eliminate the "-"
      set AppleScript's text item delimiters to {""}
      set shorteneddatename to text items 1 thru 10 of CreaDate2 as string
      set the name of theonefile to shorteneddatename & {"-"} & newbasename & {"-"} & aInitials & {"-"} & index & fileextensionone as string
      end repeat
      --Trouble section above
      set the name of choosingtheplacetomove to Numberofthemonthatthebeginningofthefoldername & "-" & shortenedname as string -- returns the month prefix to the foldername
      else if result = {button returned:"Create a new folder and rename"} then
      set repeatConfirmation to true --Boolean to decided if script should be repeated; default is to repeat
      repeat while (repeatConfirmation = true) --Repeat if Any Tests Are Failed
      set thefirstquestion to choose from list {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} with title "Event Month Selection" with prompt "Select the month in which the event started. Select only one month:"
      set theMonthAnswer to result
      if theMonthAnswer = false then --"For historical reasons, choose from list is the only dialog command that returns a result (false) instead of signaling an error when the user presses the “Cancel” button."
      set repeatConfirmation to false
      set exitingeventmonth to display dialog ("You are exiting selecting the event month phase of the program. You will need to manually fix this decision") buttons {"OK"} with title "Exiting Event Month Selection"
      if button returned of exitingeventmonth = "OK" then
      set theMonthAnswer to ""
      end if
      else
      set confirmationanswer to display dialog "You selected " & theMonthAnswer & ", is this correct? " buttons {"Yes, that's correct.", "No, the picture(s) are from a different month."} with title "Confirm Event Month Selection"
      if button returned of confirmationanswer = "Yes, that's correct." then
      set repeatConfirmation to false
      else
      display dialog ("That's okay, you can select another again!") buttons {"OK"} with title "Return to Event Month Selection"
      end if
      end if
      end repeat
      log theMonthAnswer
      if theMonthAnswer = "" then
      set monthtonumber to "You have cancelled this action."
      log monthtonumber
      else if theMonthAnswer = {"January"} then
      set monthtonumber to "01"
      log monthtonumber
      else if theMonthAnswer = {"February"} then
      set monthtonumber to "02"
      log monthtonumber
      else if theMonthAnswer = {"March"} then
      set monthtonumber to "03"
      log monthtonumber
      else if theMonthAnswer = {"April"} then
      set monthtonumber to "04"
      log monthtonumber
      else if theMonthAnswer = {"May"} then
      set monthtonumber to "05"
      log monthtonumber
      else if theMonthAnswer = {"June"} then
      set monthtonumber to "06"
      log monthtonumber
      else if theMonthAnswer = {"July"} then
      set monthtonumber to "07"
      log monthtonumber
      else if theMonthAnswer = {"August"} then
      set monthtonumber to "08"
      log monthtonumber
      else if theMonthAnswer = {"September"} then
      set monthtonumber to "09"
      log monthtonumber
      else if theMonthAnswer = {"October"} then
      set monthtonumber to "10"
      log monthtonumber
      else if theMonthAnswer = {"November"} then
      set monthtonumber to "11"
      log monthtonumber
      else if theMonthAnswer = {"December"} then
      set monthtonumber to "12"
      log monthtonumber
      end if
      set theNameofFoldertoMake to text returned of (display dialog "Please enter the name of the new folder you are creating:" default answer "" with title "New Folder Name")
      set LocationOfNewFolder to choose folder with prompt "Choose the location of the new folder you are creating:"
      set theNewNameofFoldertoMake to monthtonumber & "-" & theNameofFoldertoMake
      set newfolderaction to make new folder at LocationOfNewFolder with properties {name:theNewNameofFoldertoMake}
      move theFilestoChoose to newfolderaction
      end if
    end tell
    --function
    on filterList(allfilesindestinationfolder, aInitials)
      set patterns to {aInitials as string, "Aauuttoommaattoorr"}
      set output to {}
      repeat with aFile in the allfilesindestinationfolder
      repeat with aPattern in patterns
      set filepath to aFile as string
      if filepath contains aPattern then
      set end of the output to aFile
      exit repeat
      end if
      end repeat
      end repeat
      return output
    end filterList

    Okay, so you wanted the debugging and error messages. Thank you for the coaching. Here is what I get from the following line:
    set theSortedfilterList to (sort filteredList by creation date)
    log theSortedfilterList
    Log returns:
    (*document file Aauuttoommaattoorr3.AVI of folder SnowDay of folder Desktop of folder Username of folder Users of startup disk, document file Aauuttoommaattoorr2.MOV of folder SnowDay of folder Desktop of folder Username of folder Users of startup disk, document file Aauuttoommaattoorr1.mov of folder SnowDay of folder Desktop of folder Username of folder Users of startup disk*)
    set pxFile to POSIX path of ((theSortedfilterList) as alias)
    Error: "Can’t make {«class docf» \"Aauuttoommaattoorr3.AVI\" of «class cfol» \"SnowDay\" of «class cfol» \"Desktop\" of «class cfol» \"Username\" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\", «class docf» \"Aauuttoommaattoorr2.MOV\" of «class cfol» \"SnowDay\" of «class cfol» \"Desktop\" of «class cfol» \" Username \" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\", «class docf» \"Aauuttoommaattoorr1.mov\" of «class cfol» \"SnowDay\" of «class cfol» \"Desktop\" of «class cfol» \" Username \" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\"} into type alias." number -1700 from {«class docf» "Aauuttoommaattoorr3.AVI" of «class cfol» "SnowDay" of «class cfol» "Desktop" of «class cfol» "Username" of «class cfol» "Users" of «class sdsk», «class docf» "Aauuttoommaattoorr2.MOV" of «class cfol» "SnowDay" of «class cfol» "Desktop" of «class cfol» "Username" of «class cfol» "Users" of «class sdsk», «class docf» "Aauuttoommaattoorr1.mov" of «class cfol» "SnowDay" of «class cfol» "Desktop" of «class cfol» "Username" of «class cfol» "Users" of «class sdsk»} to alias
    That is why I labeled it with Finder Object reference won’t return POSIX path, because I tried what was suggested about using the POSIX path of line. I thought seeing the lines above and around it would help set the context.
    So I need those files, but I need them sorted by creation date so that they’re in that order for the next renaming step.

  • I'm trying to hi-light objects and text in a pdf converted from a cadd drawing but can't do either?

    I'm trying to hi-light objects and text in a pdf converted from a cadd drawing but can't do either?

    Hi blueteam,
    Please check :http://www.wikihow.com/Highlight-Text-in-a-PDF-Document
    Regards,
    Rave

  • Opening photo from bridge into photoshop converts to smart object

    Instead of opening the psd-file normally from bridge into photoshop the file converts to smart object.
    I used to work with CS3 where double-clicking in Bridge on a psd-file would open it in Photoshop. Now, when I double click in Bridge (CS6) it opens a "quick time pro" file, which I definitely don't want. When I use the right mouse to "place in Photoshop" it does so, but then automatically converts the file into a smart object, which I don't want either. What need I do to open a psd-file in Bridge as normal psd-file in Photoshop?
    Thanks in advance for help.
    EVAMLG0507

    Hi C. Pfaffenbichler
    yes, there is a "Photoshop Document" in the list, but it has not
    association. when I click on the little arrow on that line it "searches"
    and shows all the files in the "program X86" on the C-drive. but I don't
    know what to associate it with, or said differently, I don't know what file
    in "programX86" to associate it with.
    EVAMLG0507
    2012/9/4 c.pfaffenbichler <[email protected]>
       Re: opening photo from bridge into photoshop converts to smart object created by
    c.pfaffenbichler <http://forums.adobe.com/people/c.pfaffenbichler> in *Photoshop
    General Discussion* - View the full discussion<http://forums.adobe.com/message/4671500#4671500

  • Converting from a Business View connection to a non-Business View connectio

    I have a report on our Crystal Reports Server that I need to move to a machine with Crystal Reports XI installed and no connection to the Business Objects Server.
    When I create an ODBC connection pointing to the same table and then try to use Set Datasource Location to Update the Data Source I get an errormessage:
    Converting from a Business View connection to a non-Business View connection is not supported.
    What can I do? It is a complex report that I don't want to take the time and energy to rewrite.
    Thank You for any answers.
    <a href="http://farm4.static.flickr.com/3234/2942702182_72365cc04f_o.jpg">Screen Shot</a>

    Hello Brundibar,
    I recommend to post this query to the [Universe Designer and Business Views Designer|Semantic Layer; forum.
    This forum is dedicated to topics related to the universes and business views.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Universe Designer and Business Views Designer queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Load failed due to Overflow converting from 853156+16

    Hi All,
    Load is getting failed from one DSO to another DSO with following error message. and its AP AR load
    Runtime error while executing rule -> see long text
    Message no. RSTRAN301
    Diagnosis
    An error occurred while executing a transformation rule:
    The exact error message is:
    Overflow converting from '8.85315e+16'
    The error was triggered at the following point in the program:
    Z_BFOD_A_AR_LOOKUP_ITEM_E 278
    System Response
    Processing the data record has been terminated.
    Procedure
    The following additional information is included in the higher-level node of
    the monitor:
    Transformation ID
    Data record number of the source record
    Number and name of the rule which produced the error
    Thanks,
    Asim

    Hey,
    Ask the developer that wrote the end routine to check the code where the error occurs. First check if too much data is transferred and if it can be reduced. Then also check if the object needs to be extended 460652 - Extending key figures in BW.
    Regards,
    Michael

  • How to create a xml file from String object in CS4

    Hi All,
    I want to convert a string object into an XML file using Javascript in Indesign CS4.
    I have done the following script. But it does not convert the namespaces for the xml elements with no value in it.
    var xml = new XML(string);
    The value present in string is "<level_1 xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>"
    When it is converted to xml, the value becomes "<level_1 xsi:nil="true"/>"
    On processing the above xml object, am getting an error like this "Uncaught JavaScript exception: Unbound namespace prefix."
    Kindly help.
    Thanks,
    Anitha

    Can you post more of the script?
    Are you getting the XML file from disk, or a string?

  • Convert a calendar object to a date object

    hi all...i use a calendar to select date and i want to convert the Calendar object returned to a date object ..how could i do that ?? i use the following lines of code but the Date object returned is not correct ..i mean it's not the one i chose from the calendar
    Date selectedDate=new Date();
    selectedDate=(calendar1.getTime());
    Any one could help....thank you

    Show us the code where you set the calendar to your desired value. Calendar1.getTime()
    should return the relevant date.

  • Master Data load from Info Object

    Hello,
    Iam tryting to load masterdata from info object using the standard package in 7.5 NW. My requirement is similar to the scenario 3b in the How to load masterdata doc(to prefix and strip the Compounding obj). This is the ssue i am currently facing.
    1. When i validate the transformation file , I get an error saying "Duplicate member id'12345'
    2. I have spaces in my node name. How am i supposed to give the technical name in the Member id field of the hiererchy tab in the data manager set selection options.
    3. text nodes not getting converted to member values.
    note:  I  am able to  get past this with out giving the seletion for the hierarchy in the DM package and running the package succesfully ,but i dont see the text nodes getting converted to member values.
    Please provide me some useful insights. had anyone had a similar issue??
    Thanks,
    Simi

    Simi,
    Did you checked YES to import the Text Nodes ... and even the Short Text in Language Tab under the SET SELCTION of the info object.

  • How can I convert from Modbus raw data to engineering units using a formula?

    Within Lookout, I have several Modbus numerical input types that do not have a linear corespondence to the Engineering values they represent.  How can I display these values accurately using a formula to convert from the raw data to an engineering value?

    I don't quite understand your reply.  I'm using Lookout 6.0.2, logged in as Administrator, in Edit Mode.  The Modbus object is named RTU06_SAV.  The Active member is 30002 with an alias of SAVfmSMT_RSL.
    Following your instructions, I opened Object Explorer and right-clicked on RTU06_SAV. 
    This opened a menu containing:  Refresh, Cut, Copy, Rename, Delete, Edit connections..., Edit Data Member Configuration, Configure Network Security and Properties.
    I assumed that I should select Edit Data Member Configuration, but maybe I'm wrong. 
    Within Data Member Configuration I can set up Linear Scaling between Raw data and Engineering data.  I know how to do that, but what I need to know is how to convert Raw data to Engineering data using a formula representing a non-linear transformation (such as a converion to a logarithmic value or perhaps a formula derived by fitting the formula to a curve on a calibration chart).
    Once I have this my Engineering data can be represented on a control panel as both a numeric value AND as a correctly reading Gauge.  It can also be properly represented on a HyperTrend graph.
    What do you suggest?

  • How do i convert an image object to a byte array ?

    Hi
    how do i convert an image object into a byte array
    early reply apperciated

    Oh sorry my method and the other method need to have the pixels from the Image passed to them which you get my using pixelgrabber:
    //create width and height variables from image
              int w = img.getWidth(this);
              int h = img.getHeight(this);
              //retrive picture from image
              int[] pix = new int[w * h];
              PixelGrabber pg = new PixelGrabber(img, 0, 0, w, h, pix, 0, w);
              try{ pg.grabPixels();
              } catch (InterruptedException ioe) {
                   System.err.println("Interrupted");
              if ((pg.getStatus() & ImageObserver.ABORT) != 0) {
              System.err.println("image fetch aborted or errored");
              }

  • Convert from dictionary to local managed?

    Hi all,
    Good day!
    when we convert from dictionary to local managed is it dependant on CPU or no of extent?
    Thanks in advance
    Elina

    How are you converting the tablespaces? 8 hours seems excessive if you are using dbms_space_admin.TABLESPACE_MIGRATE_TO_LOCAL , I have seen situations where creating new locally managed tablespaces and moving the objects accross takes a long time as the old extnets are deallocated from the UET$ table and added to FET$. in these cases the speed of an individual CPU core is the limiting factor as SMON handles the deallocation of extents.
    If this is the case then migratig the tablespace to locally managed using dbms_space_admin then migrating to a new tablespace may be faster, if not then can you post what method you are uing to migrate and the version of the database
    Chris

  • Unnecessary text behind listbox after converting from a web-page

    When I make convertation from htm-page containing listbox to pdf, there also appear text on the back of Listbox object. The strings are equal to Listbox values. If I create listbox manually, these strings not appear. How to fix this bug?

    OK, I see now what you mean. It's been a while since I've web-captured an HTML form and I've never noticed that before. I don't think there's anything you can do to prevent it from happening though. You can change the color of the text so it's not visible, or remove it through redaction or other editing tools.

  • Default PR Type when convert from Planned Order

    Hi all,
    How can I default my PR Type when convert from Planned Order after MRP run. This can done via MRP Group control but how to go about controlling via Planned Order profile?
    Which planned object type and planned order profile to be used? assuming that i need my planned to be output at LA type and convert to NB1 PR type instead of the default NB PR type?
    Thanks.
    Regards,
    Andrew

    Hi,
    The system determines the document type from the stettings u are making in "planned order Profile" in Customising for MRP. There u define the order type, the procurement key and the special procurement key and also the account assignment category. So based on the procurement key and the special procurement key maintained in the Marterial master, the document type is selected.
    Production > Materials Requirement Planning > Procurement Proposals > Planned Order > Define order profile
    Choose the planned order type - NB1 Within this you specify the P req doc type to be used.
    Through MRP group and the different PR document type for MRP generated PR is possible only if you assign the document type to MRP group in the MRP configuration.
    Please try and come back.
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on Aug 28, 2008 10:54 AM

  • Hot to convert a properties object to a InputStream object?

    hot to convert a properties object to a InputStream object?

    peter321 wrote:
    The two property files need further process and filter out some values. The two configuration files come from different application. I want to use java.util.logging.LogManager.readConfigure(InputStream).For the last time, you've made it clear how you want to solve some as-of-yet undescribed problem. What you haven't made clear is what problem you're trying to solve. From the class you mention, it sounds like you want to read in two logging configurations (since that's what a LogManager is for) from separate applications and "filter out some values". Those are mysterious requirements at best, and if you're intending to use LogManager to process some arbitrary properties files, you're headed down the wrong path entirely. There are [much better solutions readily available|http://commons.apache.org/configuration/].
    ~

Maybe you are looking for