How to concatenate integers

I need to display all the elements of a 2d array (all integers) using one line per row. Unfortunately, Java prints vertically, not horizontally. I know how to concatenate String, but how would i achieve the same in this case?
Any ideas?
Thanks.

http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintStream.html#print(java.lang.String)
http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintStream.html#println(java.lang.String)

Similar Messages

  • How to concatenate a string with single quotes

    Hi all,
        how to concatenate a string with single quotes to a variable.
    Sathya

    Hi sathyabama,
    1. simple
    2. use TILDE character <b>(`)</b>
       (just left to the '1' key)
    <b> `'mystring'`</b>
    3. just copy paste
    report abc.
    data : m(100) type c.
    concatenate `'amit mittal'` 'hello' into m separated  by space.
    write m.
    regards,
    amit m.

  • How to concatenate characters

    Hi
    How do you concatenate characters together to form one string?

    how to concatenate charactersThis is one way of many with different pros and cons,
    String s = "" + 'c' + 'h' + 'a' + 'r';

  • How to Concatenate Table name and Where condition at runtime

    I am passing parameter as User and Zone to Stored Procedure.How to concatenate Table Name
    and WHERE CONDITION in SQL Statement.i have different type of users and zones.

    Hi !
    declare
      cur sys_refcursor;
      r emp%rowtype;
      v_sql varchar2(512);
    begin
    -- do your logic here
      v_sql := 'select * from emp';
      open cur for v_sql;
      loop
        fetch cur into r;
        exit when cur%notfound;
        dbms_output.put_line(r.ename);
      end loop;
      close cur;
    end;In this example you can see how can be done this with cursor vars .. You should concatenate v_sql string according to your requirements.
    But as in further posts has already been mentioned , be carefull at publishing such kind of procedures and think on security.
    Also when you want dynamicaly change from clause , you should consider using different records to accept data ? Maybe all your tables has the same structure and then this problem will be smaller.
    T
    T

  • How to concatenate string with a numeric control ?

    Hi,
    How to concatenate string with a numeric control ?
    Thankyou.
    Solved!
    Go to Solution.

    Its simpler to just use the Format Into String.
    Attachments:
    Format Into String.png ‏11 KB

  • How to concatenate TDM files in DiaDem

    I've seen the post on how to concatenate CSV files on DiaDem ... but how do you concatenate TDM files together?
    I'm surprised this functionality isn't embedded into the software as it is a fairly common task, and the script is likely beyond most user's ability to maintain.
    Solved!
    Go to Solution.

    Hi Brad,
    Maybe I didnt explain myself that well, my fault. The case is:
     As a result of acquired data post analysis with LabVIEW, I am logging into TDMS files 1.7GB of data. It's a file of 15 columns (properties) each of 1,080,000 rows ( properties values).
    If I decide saving all the data into one file ( resulting into a 1.7GB file), DIAdem cannot load it into Data Portal. The program gets frozen even after waiting for 30mins.
    If I save the data into multiple files (i.e like I tried last time in 3 files of around 500MB and one around 270MB) the 3 first files are loaded into data portal but when the loading of the 270MB is under way, DIAdem gives me an indexing error (sorry cant recall right now what is says exactly).
    In the case of saving into multiple files, apparently I want to concatenate the TDMS file channels so I can i.e graph plots for the whole duration of my test.  A reappending VBScipt you kindly provided me, works fine with any file I used that was not as massive as the ones I am dealing now. When I am using it with the above mentioned files, in the end I just get a time channel and none of the channels in my TDMS files.  
    Using a VBScipt that requires that I load my data into Data Portal before running it, it's simply impossible as DIAdem stalls as I mentioned above.
    Sorry, I havent been using scipting before so I might be missing something here. As it goes for those changes you suggested. i will give it a  try but could you please confirm which scipt we are talking about now exactly? As for concatenate files, the code Herbert provided in that thread is great but it does nor address exactly my problem.
    Thanks,
    Panos
    Message Edited by Saloutios on 06-14-2010 04:27 AM

  • How to concatenate two column in ALV

    dear,
    How to concatenate two ALV columns
    yatendra sharma

    dear
    I have to concatenate 3 fields
    PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'NAME2' ' ' ' ' 'Customer Address' .
      PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'STRAS' ' ' ' ' 'Street' .
      PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'ORT01' ' ' ' ' 'City'.
    how can we join them
    Yatendra

  • How to concatenate single quote with any field like 'VBAK'

    Hi,
    How to concatenate single quote with any fields.
    say for example I have table name as MARA, I have to pass that table name to other fields with single quote , like I have to pass that as
    tab name = 'MARA'.
    but how to do this,
    below statement will not work
    concatenate '''  'MARA'   ''' into string.. it's giving syntax error...
    Regards,
    Mrunal

    gv_name = 'MARA'.
    gc_quote = '''.
    CONCATENATE gc_quote gv_name gc_quote INTO value.
    Pushpraj

  • How To Concatenate Column Values from Multiple Rows into a Single Column?

    How do I create a SQL query that will concatenate column values from multiple rows into a single column?
    Last First Code
    Lesand Danny 1
    Lesand Danny 2
    Lesand Danny 3
    Benedi Eric 7
    Benedi Eric 14
    Result should look like:
    Last First Codes
    Lesand Danny 1,2,3
    Benedi Eric 7,14
    Thanks,
    David Johnson

    Starting with Oracle 9i
    select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
    from
    (select last, first, code, row_number() over(partition by last, first order by code) rn
    from a)
    connect by last = prior last and first = prior first and prior rn = rn -1
    start with rn = 1
    group by last, first
    LAST       FIRST      CODES                                                                                                                                                                                                  
    Lesand         Danny          1,2,3
    Benedi         Eric           7,14Regards
    Dmytro

  • How to concatenate date and time after a logical file in application server

    Hi Experts ,
    I have a requirement that goes like this : I have a job that runs parallelly with 10 different variants at the same time. Each job will write the data into a file in the application server, since the jobs run parallelly there is a chance of the file being over-written and hence we have decided to concatenate time and date at the end of the file so that the file does not get over-written. Can someone please let me know how to incorporate this change.
    Thanks & Regards,
    Balaji.K

    Hi Balaji.
    Use CONCATENATE functionality.
    A sample code snippet for your reference :-
    CONCATENATE  p_path  text-202 c_9 p_name c_9  lv_fcount  c_9  lv_date
                                                 c_9 lv_time  INTO  gv_file.
    Regards
    Abhii

  • How to concatenate a string with spaces

    Dear experts,
    I would like to concatenate a string with three spaces, for example,
    CONCATENATE 'X' SPACE SPACE SPACE 'Y' INTO LV_RESULT.
    However, the result I got from executing the above statement is not 'X   Y' as I want, but rather 'XY'.
    I did try
    CONCATENATE 'X' '***' 'Y' INTO LV_RESULT.
    REPLACE '***' with '   ' INTO LV_RESULT.
    still doesn't work.
    How can I write ABAP code to archive such a result?
    Any idea would be appreciated.
    Vitthavat A.

    dear  Oliver Hütköper and koolspy,
    I tried your solutions, and it works.
    so i awarded points to you.
    anyway, while trying the 'respecting blanks', i got an error:
    "".", "IN BYTE MODE", "SEPARATED BY ..." or "IN CHARACTER MODE" expected"
    not sure what it means. but it's ok. the problem has been solved.
    thanks again.

  • How to concatenate two linked lists?

    Can anyone help me with this? I'm stuck. I'm trying to concatenate two linked lists. I've created a method that adds a node to the beginning of a list and a second method to concatenate. My first method works, but not my second...
    First method:
    public static Node insertFirst(Node head, Node node){
              Node newNode = new Node();          // declare and initialize newNode.
              newNode = node;                    // store the new item in the new node.
              newNode.link = head;               // newNode.link points to the head.
              head = newNode;                    // update head to be newNode.
              return head;
         }Here is where I have my problem:
    public static Node mergeTwoLists(Node a, Node b){
              Node heada = a;
              Node headb = b;
              if(heada == null)
                   return headb;                    //if heada is null then returns list headb.
              else if(headb == null)
                   return heada;                    //if headb is null then returns list heada.
              else if(heada == null && headb == null)     //if both lists are null, returns null.
                   return null;
              else if(heada.link == null){     //only one element in heada.
                   headb = insertFirst(b, a);               // inserts the element in heada into headb.
                   return headb;
              }//end else if(heada.link == null).
              else if(headb.link == null){     //only one element in headb.
                   heada = insertFirst(a,b);               // inserts the element in headb into heada.
                   else {
                        mergeTwoLists(heada.link, headb);
                        return heada;
                   }//end else
              return heada;
              }//end mergeTwoLists method.I think in this method I'm only adding the nodes if there is only one node in one of the lists. But if there are more than one element in a list...I'm confused as to how to code the last else statement that contains the recursive call.
    Can someone help?
    Thanks
    aiki985

    Can't you just point the tail of A to the head of B?
    I don't think I'd do this recursivly at all. Use a
    while look to find the last node in A and then link
    it to whatever the first element in B is.
    while(A.next != null){
    A = A.next;
    A.next = B;
    Java that up a bit and check for nulls and it should
    work.o.k. thanks...let me try that. It does seem awkward recursively...
    aiki985

  • How to concatenate a "name.target" with string?

    Hello, how are you?
    I have this issue:
    I have a function -let's call this function "dad", that receives a parameter -let's call it "parameter". Inside dad function, I need to concatenate parameter with a string, to call a function outside function dad. Example:
    function dad (parameter) {
    parameter.target.onPress = trace (parameter.target  + "_animation") --> this returns "_level0.button1_animation" which is the same as "button1_animation" right?
    but when i use it to call a function outside it doesnt work:
    parameter.target.onPress = parameter.target + "_animation" ; --> doesn't work.
    parameter.target.onPress = [parameter.target + "_animation"] ; --> doesn't work.
    but this does work:
    parameter.target.onPress = button1_animation
    function button1_animation {
    here i have a tween
    All i wanna do, is concatenate parameter.target with a string, to call a function outside! is it possible ?
    thanks in advance

    Ned, Thanks.
    I dont want to treat the string as a function, because I already have the function "button1_animation" outside. I need to call that function  when i do parameter.target.onPress where parameter is button1, button2, button3 (i am passing to the parameter an array of buttons, and i need each button to call it's own function (button1_animation, button2_animation, an so on...) this functions are outside the function  that receives "parameter".
    I finally could do it this way:
    parameter.target.onPress = eval[parameter.target_name + "_animation"]
    i really appreciate the time you took on helping me. Thank you very much.

  • How to Concatenate 2 Variables in SAP APO DP Macro

    Hi All
    I am trying to concatenate 2 variables in a single third variable. Can some body please guid me on how this can be achieved
    e.g.  I have a variable containting a characteristic Value - "1010101" and Another Variable have a number "12345"
    I want to show a string -  "1010101 with value 12345"
    Can somebody please guide on how this can be achieved
    Any help in this regard is highly appreciated
    Thanks
    Vijay

    Hi Vijay,
    Try with with the command STRINGS_CONCATENATE().
    Syntax
    STRINGS_CONCATENATE ('String1'...'Stringn')
    Thanks and Regards,
    Mariano

  • How to combine integers with JTextFields?

    Hello
    I have 2 textFields and i want to add on each a integer
    I also have 3 buttons 1for the "+"function 2 for the "-" function and 3 for the "="
    function
    How can i put integers and make the above functions using (JTextFields which are working with Strings as far i know)without throwing me exception thread String needed?
    thanks

    Why not just set the text to whatever number you want (or have the user do it by typing in the JTextField), then use getText() to retrieve the text and do your operations on it?
    User enters stuff into textfields
    User hits "enter" (or whatever)
    Use JTextField.getText()
    Use Integer.valueOf(String)
    etcOr whatever floats your boat.

Maybe you are looking for