aspose file tools*
The moose likes Beginning Java and the fly likes resolved: Array from the elements of other arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "resolved: Array from the elements of other arrays" Watch "resolved: Array from the elements of other arrays" New topic
Author

resolved: Array from the elements of other arrays

Igor Mechnikov
Ranch Hand

Joined: Feb 13, 2011
Posts: 100

Howdy,

I have 3 String arrays with 7 elements each.
I want to assemble a new 4 element array to include elements from these 3 arrays plus a variable.


My desired outcome is to print out 7 arrays.

Thank you.

Edit: works with String[] allTogether = {propertyName,days[i],rates[i],minimum[i]};


String knock = "\u042F \u0418\u0433\u043e\u0440\u044c";
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38788
    
  23
Ilya Mechnikov wrote: . . . . . .
That will tie you to a particular operating system. You are better off with the specific String:You will have to check what the properties are, in case I have given you the wrong name. Try here.
Igor Mechnikov
Ranch Hand

Joined: Feb 13, 2011
Posts: 100

Campbell Ritchie wrote:
Ilya Mechnikov wrote: . . . . . .
That will tie you to a particular operating system. You are better off with the specific String:You will have to check what the properties are, in case I have given you the wrong name. Try here.


Thank you very much.
I will start using this.
In this instance, I am trying to adapt existing Interpretive Java ( Bean Shell?) scripts that were initially written on Windows.
I am actually using a Linux box to do that and have not had any problem with the CR/LF in the output.
The intended recipient of the finished script will run it in OSX. I just learned OSX uses normal Unix LF, not old style Mac RC, but there is no telling how it will respond.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38788
    
  23
Most applications can convert the different kinds of line terminators. But not all. Try \n as a line terminator on M$ Notepad and see what happens I mean, transfer a text file from a Linus box to Notepad, and try to open it.

And, "you're welcome".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: resolved: Array from the elements of other arrays