Does Java Pass by Reference or by Value?

I'm confused about this, please explain
thanx

Ok new to programming them don't listen to people who say that everything is passed by value, it's just some terminology debate that you don't need to care about at first.
Here are some examples from which you can try to figure out:
Example 1, the primitives:
public class TestPrimitive
    public static void main(String[] args)
        int value = 5;
        foo(value);
        System.out.println(value);
    public static void foo(int value)
        value = 3;
        System.out.println(value);
}The output will be:
3
5
showing that the variable "value" was passed by value and therefore was not modified in the calling code by the alteration in the foo method.
Example 2, the arrays:
public class TestArray
    public static void main(String[] args)
        int[] array = new int[2];
        array[0] = 0;
        array[1] = 1;
        foo(array);
        System.out.println(String.valueOf(array[0]) + " " + array[1]);
    public static void foo(int[] array)
        array[0] = 3;
        array[1] = 4;
        System.out.println(String.valueOf(array[0]) + " " + array[1]);
}The output will be:
3 4
3 4
This mean that change to the array content get reflected in the calling code
Example 3, the arrays part 2:
public class TestArray
    public static void main(String[] args)
        int[] array = new int[2];
        array[0] = 0;
        array[1] = 1;
        foo(array);
        System.out.println(String.valueOf(array[0]) + " " + array[1]);
    public static void foo(int[] array)
        array = new int[2];
        array[0] = 3;
        array[1] = 4;
        System.out.println(String.valueOf(array[0]) + " " + array[1]);
}The output will be:
3 4
0 1
Here is why people say everything is passed by value in Java, because if you make the array variable in the foo method to point on a new array, the one in the calling block continue to point on the old one, which is why it keep its [0,1} value.
Object work exactly like arrays.
Clear enough?

Similar Messages

  • Does Java pass objects by Reference

    The following is my code:
    public static boolean isValid(String tester, Integer intHours, Integer intMinutes)
              int dotPosition = tester.indexOf('.');
              String hours = tester.substring(0, dotPosition);
              String minutes = tester.substring(dotPosition +1, tester.length());
              try {
                        intHours = Integer.valueOf(hours);
                        intMinutes = Integer.valueOf(minutes);
         } catch (NumberFormatException nfe) {
         return false;
         return true;
    What Iam trying to do is pass the Integer Objects by reference so that they retain their values outside of the scope of the function. My teacher told me that objects are passed by reference in Java but (even though the values are being changed within the function they are not retaining their values outside the scope of the function. Was my teacher wrong?

    aden_jones wrote:
    So to get behaviour similar to passing by reference I would need to create my own object and give it a method e.g. MyObject.changeValue(new_value) but I can't do that with Integer objects because I can't change their actual value I can only change the Integer Object that is being pointed at??You cannot achieve behavior that duplicates PBR with Java.
    However, if by "similar to passing by reference" you mean that the method makes a change that the caller can see, then, yes, you need to pass a reference to a mutable object, and change that object's state inside the method.
    void foo(Bar bar) {
      bar.setBaz(123);
    Bar bar = new Bar();
    bar.setBaz(999);
    foo(bar);
    // after foo() completes, the caller now sees that the Bar object's internal state has changed
    // from 999 to 123Note the difference between changing the value of a caller's variable (which can be done with PBR, and cannot be done in Java) and changing the state of the single object pointed to by both the caller's variable and the method's copy of that variable (which can be accomplished in Java, as it does not rely on PBR).

  • Calrification on Pass by reference

    Hi All,
    In java, if we are passing an object to a function actually we are passing the reference. So, if the function is doing any manipulation on the Object reference, it will affect the passing object.
    For example,
    class Ob1
         int i=0;
    public class Ref
         public static void main(String a[])
              Ob1 o=new Ob1();
              System.out.println("Before calling :"+o.i);
              call(o);
              System.out.println("After calling :"+o.i);
         static void call(Ob1 o)
              o.i++;
    Is it possible to get the original value of i(object Ob1) after calling call()?
    Thanks in advance
    +Sha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    > In java, if we are passing an object to a function
    actually we are[b] passing the reference.
    By value.
    Is it possible to get the original value of i(object
    Ob1) after calling call()?
    Store the original value in a local variable.
    And please note the following:
    All parameters to methods are passed "by value." In other words, values of parameter variables in a method are copies of the values the invoker specified as arguments. If you pass a double to a method, its parameter is a copy of whatever value was being passed as an argument, and the method can change its parameter's value without affecting values in the code that invoked the method. For example:
    class PassByValue {
        public static void main(String[] args) {
            double one = 1.0;
            System.out.println("before: one = " + one);
            halveIt(one);
            System.out.println("after: one = " + one);
        public static void halveIt(double arg) {
            arg /= 2.0;     // divide arg by two
            System.out.println("halved: arg = " + arg);
    }The following output illustrates that the value of arg inside halveIt is divided by two without affecting the value of the variable one in main:before: one = 1.0
    halved: arg = 0.5
    after: one = 1.0You should note that when the parameter is an object reference, the object reference -- not the object itself -- is what is passed "by value." Thus, you can change which object a parameter refers to inside the method without affecting the reference that was passed. But if you change any fields of the object or invoke methods that change the object's state, the object is changed for every part of the program that holds a reference to it. Here is an example to show the distinction:
    class PassRef {
        public static void main(String[] args) {
            Body sirius = new Body("Sirius", null);
            System.out.println("before: " + sirius);
            commonName(sirius);
            System.out.println("after:  " + sirius);
        public static void commonName(Body bodyRef) {
            bodyRef.name = "Dog Star";
            bodyRef = null;
    }This program produces the following output: before: 0 (Sirius)
    after:  0 (Dog Star)Notice that the contents of the object have been modified with a name change, while the variable sirius still refers to the Body object even though the method commonName changed the value of its bodyRef parameter variable to null. This requires some explanation.
    The following diagram shows the state of the variables just after main invokes commonName:
    main()            |              |
        sirius------->| idNum: 0     |
                      | name --------+------>"Sirius"       
    commonName()----->| orbits: null |
        bodyRef       |______________|At this point, the two variables sirius (in main) and bodyRef (in commonName) both refer to the same underlying object. When commonName changes the field bodyRef.name, the name is changed in the underlying object that the two variables share. When commonName changes the value of bodyRef to null, only the value of the bodyRef variable is changed; the value of sirius remains unchanged because the parameter bodyRef is a pass-by-value copy of sirius. Inside the method commonName, all you are changing is the value in the parameter variable bodyRef, just as all you changed in halveIt was the value in the parameter variable arg. If changing bodyRef affected the value of sirius in main, the "after" line would say "null". However, the variable bodyRef in commonName and the variable sirius in main both refer to the same underlying object, so the change made inside commonName is visible through the reference sirius.
    Some people will say incorrectly that objects are passed "by reference." In programming language design, the term pass by reference properly means that when an argument is passed to a function, the invoked function gets a reference to the original value, not a copy of its value. If the function modifies its parameter, the value in the calling code will be changed because the argument and parameter use the same slot in memory. If the Java programming language actually had pass-by-reference parameters, there would be a way to declare halveIt so that the preceding code would modify the value of one, or so that commonName could change the variable sirius to null. This is not possible. The Java programming language does not pass objects by reference; it passes object references by value. Because two copies of the same reference refer to the same actual object, changes made through one reference variable are visible through the other. There is exactly one parameter passing mode -- pass by value -- and that helps keep things simple.
    -- Arnold, K., Gosling J., Holmes D. (2006). The Java� Programming Language Fourth Edition. Boston: Addison-Wesley.

  • Java passing values

    Hi,
    when i did C programming,i could pass in 2 values values by reference to a method called change values.
    In java how do i pass in 2 values by reference to a method,and in return,the method changes 2 values that are passed in.
    Do guide.
    Thanks alot.
    Rahul

    Java does not pass values by reference at all ever.
    You may only pass by value.

  • Arrays are passed by reference or value ?

    Hi peoples,
    I have something interesting here which I need to know. Look into the following classes :
         public class example1 {
         int i[] = {0};
         public static void main(String args[]) {
         int i[] = {1};
         change_i(i);
         System.out.println(i[0]);
         public static void change_i(int i[]) {
         i[0] = 2;
         i[0] *= 2;
         public class example2 {
         int i[] = {0};
         public static void main(String args[]) {
         int i[] = {1};
         change_i(i);
         System.out.println(i[0]);
         public static void change_i(int i[]) {
         int j[] = {2};
         i = j;
    Among the above classes, the class named 'example1' returns the value 4 whereas, the class named 'example2' returns the value 1.
    Any explanations to this one please....
    Cheers,
    Rasmeet

    minglu, you are not doing right.
    i just don't get it why you have i[] as instance variable but never use it ( i[] is declared in every method so each i you refer to in the method is a local varable not member variable that can be shared for the object ).
    your first solution work. but that i = j line is not needed because it has no effect you still cannot change the referrence of i to other int[]. your first soultion just need to be
    public static int[] change_i(int i[]) {
    int j[] = {2};
    return j;
    }anyway, using this solution, the method name will be misleading because the method didnot change i in anyway. i is changed because you assign the return array (j) to i.
    for that second solution also, you didn't use your member variable i at all. what you change is the content of i you pass so the result is correct. but then how is this method different from the first method the original poster posted?
    moreover, java never pass argument to the method by reference it ALWAYS pass by copy.i suppose you define passing by reference in the same way C++ does. all object variable in java is a refernce to Object so passing the variable to method is surely passing the reference to the method but that's not passing by reference. it's passing by copy because what is passed is the copy of the reference to the object, not the reference to the reference to Object. if it is really passing by refernce, then you will be able to change your reference to object to point anywhere because you have the access the address of the reference. but since you don't (you only know where the passed reference is pointing to (you have the COPY of value of reference) but you don't know where the refernce store its value) you can only change the content of the pointed object but not changing the pointed object.
    let me restate this, java always pass by reference.

  • What type of paramter passing does java support

    Is it pass by value for primitive/simple data types
    and pass by reference for derived/abstract data types ?

    Java always uses pass by value.
    There is no pass by reference in Java.
    Sometimes references are passed by value, but that's not the same as pass by reference.
    [Java is Pass-by-Value, Dammit!|http://javadude.com/articles/passbyvalue.htm]

  • What does java.exe do if double pass same classpath to it?

    By default, java.exe loads rt.jar as default classpath.
    if user explicitly passes rt.jar as classpath in command line to java.exe again, does java.exe load rt.jar twice or only once?
    Loading same classpath twice is slower than only once - i need the answer for speeding my application.

    By default, java.exe loads rt.jar as default
    classpath.Not correct. rt.jar is not loaded "as default classpath." It should not be listed on the classpath, as it WILL BE searched, and WILL slow down the tools.
    The classpath is used by javac.exe and java.exe (and other tools) to locate your (the user) .java and .class files that they require.
    Read these topics to learn how the classpath works and how to use it correctly:
    Setting the Classpath and
    How Classes are Found
    from this page http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html

  • Subroutine Pass by Value, Pass by Reference using xstring

    Hi,
      I am trying to check the difference between pass by value, pass by reference, pass by return value to a subroutine. When I tried integers as parameters the following functionality worked. When I am using xstring as parameters I am not getting desired results.
      Some one please explain me how the xstring's are passed to a subroutine.
    Here I am giving the code and output of the code.
    data : s_passbyref    type xstring,
           s_passbyval    type xstring,
           s_passbyretval type xstring.
    * Pass by Value, Pass by Reference, Pass by return value - STRINGS
    s_passbyref     = 'ABCD'.
    s_passbyval     = 'ABCD'.
    s_passbyretval  = 'ABCD'.
    write : / 'ByRef :', s_passbyref, 20 'By Val :', s_passbyval, 40 'By Return Value : ', s_passbyretval.
    perform call_str_sub using s_passbyref s_passbyval changing s_passbyretval.
    write : / 'ByRef :', s_passbyref, 20 'By Val :', s_passbyval, 40 'By Return Value : ', s_passbyretval.
    form call_str_sub using ps_passbyref value(ps_passbyval) changing value(ps_passbyretval).
      ps_passbyretval = 'XYZ'.
      ps_passbyref    = 'XYZ'.
      ps_passbyval    = 'XYZ'.
    endform.
    OUTPUT
    ByRef  :  ABCD    By Val : ABCD    By Return Value : ABCD
    ByRef  :               By Val : ABCD    By Return Value :
    Thanks in advance
    Naveen

    try this
    write : / 'ByRef :', s_passbyref, 20 'By Val :', s_passbyval, 40 'By Return Value : ', ps_passbyretval.

  • Passing complex java class by reference to JNI

    Hello all ,
    I need to pass a java class (with primitive class members) to JNI and let the C++ update class member values so java would automatically get the new values.
    I also would like to return such a class from JNI to java..
    Is it possible ?
    I would be happy to get some examples ...
    thanks

    1. Passing an object is trivial. Define the java class, instantiate an object, and pass it as a parameter of your native method.
    2. Calling methods of that object is standard JNI. You must
    o Look up the class.
    o Look up the method.
    o Call the method.
    3. Returning a java object from C is trivial. Just make it a parameter of your return statement. However you might want to think about whether you really need to do that; if it was an object passed with the native method call, then the object already exists within java. Otherwise, you will have to consider using JNI to instantiate java objects.
    Start with the tutorials. If this project gets extensive, then I recommend buying a book on JNI.

  • How does Java keep the value from temporary variable?

    Hello all:
    I have a Question for Java Assignment operator.
    Object v1;
    Object v2;
    v1 = v2; // Java assignment by reference if I understand correctly
    ///// for example:
    import java.io.*;
    import java.util.*;
    public class TestOne {
    Vector v1;
    public void changeV() {
    Vector v2 = new Vector();
    v2.addElement(new Integer(10));
    v2.addElement(new Integer(11));
    v2.addElement(new Integer(12));
    v1 = v2;
    public TestOne() {
    changeV();
    System.out.println(v1.size());
    System.out.println("0: " + v1.elementAt(0));
    System.out.println("1: " + v1.elementAt(1));
    System.out.println("2: " + v1.elementAt(2));
    public static void main(String[] args) {
    new TestOne();
    // Output from Screen
    bash-3.00$ java TestOne
    3
    0: 10
    1: 11
    2: 12
    If I understand correctly, " v1 = v2; " is assigned by reference.
    So the question is when function 'changeV' return, why v1 still holds the
    values from v2 which has been destroyed?
    Thank you
    -daniel

    firstly, the assignment is by-value, not by-reference.
    the value the variables hold is a thingy called "reference." (In other languages such as C or C++ it might be called "pointer.") So "v1 = v2" always copies the value of v2 to v1.
    secondly, the vector object that is created in the changeV method, is created on the heap, that is, in dynamic memory. The variable v2 holds only a reference to it. So when the method returns, only the reference is destroyed, not the actual object.
    The object is automatically destroyed when there are no more reachable references to it (it is "garbage collected").

  • Pass by reference/value?

    Ive been reading lots of litrature on this and im still none the wiser!
    public interface Zoo extends Remote {
        public Animal getAnimal(String animalName) throws RemoteException;
    }When called from the client... will this code return a copy of the Animal, or a reference(stub?) to the Animal that resides on the server??
    I would like my system to return a reference, to save copying Animal back to the server once methord calls have been made on it.
    If it does ineed return a reference... and I want to call methords on Animal, should Animal also extend Remote??
    Thanks,
    Tim

    timboroo wrote:
    Ive been reading lots of litrature on this and im still none the wiser!
    public interface Zoo extends Remote {
    public Animal getAnimal(String animalName) throws RemoteException;
    }When called from the client... will this code return a copy of the Animal, or a reference(stub?) to the Animal that resides on the server?? not possible to know without seeing the Animal class definition.
    I would like my system to return a reference, to save copying Animal back to the server once methord calls have been made on it.
    If it does ineed return a reference... and I want to call methords on Animal, should Animal also extend Remote??if you want the Animal implementation to exist on the server, such that method calls are actually executed on the server, then yes, it should be remote.

  • Pass by reference and String

    public class Test {
        static void method(String str) {
            str = "String Changed";
        public static void main(String[] args) {
            String str = new String("My String");
            System.out.println(str);
            method(str);
            System.out.println(str);
    }The output is
    My String
    My String
    How this is possible when objects are passed by reference ?

    > How this is possible when objects are passed by reference ?
    All parameters to methods are passed "by value." In other words, values of parameter variables in a method are copies of the values the invoker specified as arguments. If you pass a double to a method, its parameter is a copy of whatever value was being passed as an argument, and the method can change its parameter's value without affecting values in the code that invoked the method. For example:
    class PassByValue {
        public static void main(String[] args) {
            double one = 1.0;
            System.out.println("before: one = " + one);
            halveIt(one);
            System.out.println("after: one = " + one);
        public static void halveIt(double arg) {
            arg /= 2.0;     // divide arg by two
            System.out.println("halved: arg = " + arg);
    }The following output illustrates that the value of arg inside halveIt is divided by two without affecting the value of the variable one in main:before: one = 1.0
    halved: arg = 0.5
    after: one = 1.0You should note that when the parameter is an object reference, the object reference -- not the object itself -- is what is passed "by value." Thus, you can change which object a parameter refers to inside the method without affecting the reference that was passed. But if you change any fields of the object or invoke methods that change the object's state, the object is changed for every part of the program that holds a reference to it. Here is an example to show the distinction:
    class PassRef {
        public static void main(String[] args) {
            Body sirius = new Body("Sirius", null);
            System.out.println("before: " + sirius);
            commonName(sirius);
            System.out.println("after:  " + sirius);
        public static void commonName(Body bodyRef) {
            bodyRef.name = "Dog Star";
            bodyRef = null;
    }This program produces the following output: before: 0 (Sirius)
    after:  0 (Dog Star)Notice that the contents of the object have been modified with a name change, while the variable sirius still refers to the Body object even though the method commonName changed the value of its bodyRef parameter variable to null. This requires some explanation.
    The following diagram shows the state of the variables just after main invokes commonName:
    main()            |              |
        sirius------->| idNum: 0     |
                      | name --------+------>"Sirius"       
    commonName()----->| orbits: null |
        bodyRef       |______________|At this point, the two variables sirius (in main) and bodyRef (in commonName) both refer to the same underlying object. When commonName changes the field bodyRef.name, the name is changed in the underlying object that the two variables share. When commonName changes the value of bodyRef to null, only the value of the bodyRef variable is changed; the value of sirius remains unchanged because the parameter bodyRef is a pass-by-value copy of sirius. Inside the method commonName, all you are changing is the value in the parameter variable bodyRef, just as all you changed in halveIt was the value in the parameter variable arg. If changing bodyRef affected the value of sirius in main, the "after" line would say "null". However, the variable bodyRef in commonName and the variable sirius in main both refer to the same underlying object, so the change made inside commonName is visible through the reference sirius.
    Some people will say incorrectly that objects are passed "by reference." In programming language design, the term pass by reference properly means that when an argument is passed to a function, the invoked function gets a reference to the original value, not a copy of its value. If the function modifies its parameter, the value in the calling code will be changed because the argument and parameter use the same slot in memory. If the Java programming language actually had pass-by-reference parameters, there would be a way to declare halveIt so that the preceding code would modify the value of one, or so that commonName could change the variable sirius to null. This is not possible. The Java programming language does not pass objects by reference; it passes object references by value. Because two copies of the same reference refer to the same actual object, changes made through one reference variable are visible through the other. There is exactly one parameter passing mode -- pass by value -- and that helps keep things simple.
    -- Arnold, K., Gosling J., Holmes D. (2006). The Java� Programming Language Fourth Edition. Boston: Addison-Wesley.
    ~

  • Arrays pass by reference?

    Hi,
    Just wondering in Java when you send a method an array, does it send a copy of the array, or a reference to the original array?

    please
    don't start that holy war up again!Oh come on, let's! It'll pass the time untilFriday
    quicker. ;)<devils-advocate>
    but surely if I'm not passing an object itself,but
    a
    reference to the object, then that's
    pass-by-reference
    Oh, do shutup. :-P
    Pass a reference != pass
    by reference.don't give me semantics. the mechanism by which I'm
    passing the object is as a reference ergo,
    it's passed, by it's reference. if it was
    pass-by-value, the object itself would be copied and
    passed, but we know it's not, so it's
    pass-by-referencePlease tell me you're kidding. And if you are, pleaes stop, lest the OP gets confused.

  • Passing a reference to a type definition to a SubVI

    I have created a type definition that I would like to use across my application. This particular type definition is also the front panel control to my top level VI. I wanted to pass a reference to this control to my SubVi's so that they could dereference as needed and in very rare cases update the values on the front panel. However, as I built the application I noticed that I was breaking the control reference as I updated the type definition. This implies that they type of the reference changes as I change the type definition.
    How do I go about building the reference I need or is there some other way to do this that works just as well. Even if I can't make a reference to the control that is tied to the type definition, I'm willing to pass in a variant who can house the reference as long as I can build the data type (the reference) inside my SubVis.
    Solved!
    Go to Solution.

    Okay, so I tried all three approaches in a SubVI, here's what happened.
    My approach was simply to create a Type Def control, right-click and create a Reference. Then create a control from that reference by right-clicking the output of the reference and selecting the Create Control option. I then pasted this 'cluster' reference into my SubVi, made it an input and then wired up the reference in the parent to the control in the SubVi.
    Result: This breaks when you update the Type Definition.
    Next, Ben's approach (or my best effort at doing what he suggested). I created a control from reference to the type def. I cut it from the parent VI and pasted it into a new type def. I then put the type def in the SubVI and set it as an input.
    Result: This breaks when you update the Type Definition (but it actually takes a bit longer for the error to propogate).
    Finally, Christian's solution (or my best effort). I took the type def reference and put it through a To More Generic Class guy, casting it to a Control Refnum. I put a Control Refnum on the front panel of my SubVI and wired it to a To More Specific Class guy. I created a control of the type def in the subvi, hid it, and created a reference. I wired the reference to the more specific guy and verified I was getting the right data.
    Result: It works!
    It's possible I just didn't understand how to make the reference type def you were referring to Ben. I would prefer a method with less verbage. I pass this refnum into a class which holds it. Since I can't replicate the type exactly prior to run time (i.e. create a control that is exactly a reference to the type definition of my front panel), I have to save the reference as a Control Refnum and cast it every time I need it (i.e. create a control from the typedef, create a reference frome the type def, etc). More verbage than optimal, but still good!
    Thanks for the help.

  • Confused about passing by reference and passing by valule

    Hi,
    I am confuse about passing by reference and passing by value. I though objects are always passed by reference. But I find out that its true for java.sql.PreparedStatement but not for java.lang.String. How come when both are objects?
    Thanks

    Hi,
    I am confuse about passing by reference and passing
    by value. I though objects are always passed by
    reference. But I find out that its true for
    java.sql.PreparedStatement but not for
    java.lang.String. How come when both are objects?
    ThanksPass by value implies that the actual parameter is copied and that copy is used as the formal parameter (that is, the method is operating on a copy of what was passed in)
    Pass by reference means that the actual parameter is the formal parameter (that is, the method is operating on the thing which is passed in).
    In Java, you never, ever deal with objects - only references to objects. And Java always, always makes a copy of the actual parameter and uses that as the formal parameter, so Java is always, always pass by value using the standard definition of the term. However, since manipulating an object's state via any reference that refers to that object produces the same effect, changes to the object's state via the copied reference are visible to the calling code, which is what leads some folk to think of java as passing objects by reference, even though a) java doesn't pass objects at all and b) java doesn't do pass by reference. It passes object references by value.
    I've no idea what you're talking about wrt PreparedStatement, but String is immutable, so you can't change its state at all, so maybe that's what's tripping you up?
    Good Luck
    Lee
    PS: I will venture a guess that this is the 3rd reply. Let's see...
    Ok, second. Close enough.
    Yeah, good on yer mlk, At least I beat Jos.
    Message was edited by:
    tsith

Maybe you are looking for

  • Would Toshiba SBX4250 Sound Bar work in Europe?

    I am moving to Europe pretty soon. Just wondering if SBX4250 sound bar would work there (220v / 50Hz) without a transformer.

  • How to take screenshots for 4.7" and 5.5" ios devices?

    Hi all, I usually create screenshots of my AIR apps using a combination of actual screenshots on devices I own, and screenshots of the standalone player by testing the AIR app on my development machine. However, I don't own any of the new 4.7" or 5.5

  • When-database-record not firing

    I have a single record block in a form and the when-database-record trigger is not firing after I update and leave the first item in the record. This only happens when I create-new-record, not when I update an existing record. I have checked the reco

  • How to join two tables without constraints??

    I want get the tables to be joined without constraints!! table1 : 100     get 101     wet 102     set and table 2 : 10     xxx 11     yyy 12 zzz I got the output like this, output : ID NAME ID NAME 101     wet     10     xxx 101     wet     12     zz

  • Moving into a New Build House

    Despite booking the House Move Transfer 9 weeks before moving - yes NINE weeks - it has taken another four weeks for me to get an active line. Excuses from BT Retail, have in the main blame BT Openreach (i.e. no cables installed - yes there are!; not