Soldato
- Joined
- 7 Jul 2009
- Posts
- 16,234
- Location
- Newcastle/Aberdeen
Is there a preferred method between these two (java)?
or
Obviously one uses one line when the other uses two, just wondering if there's any 'good practice' reason to use one over the other?
Code:
System.out.prinf("Hello %s\n" getName());
or
Code:
System.out.print("Hello ");
System.out.println(getName);
Obviously one uses one line when the other uses two, just wondering if there's any 'good practice' reason to use one over the other?