Results 1 to 6 of 6
Thread: apply an array to variables
- 03-16-2011, 10:04 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 26
- Rep Power
- 0
apply an array to variables
Hello to all,
I am wondering if there is some way in java to apply an array to variables(in one line of code).
In python the following works:Is there any equivalent to this in java?Java Code:a = [1,2] b,c = a
Cheers.
PS: Sorry for using python code but I find it easier to learn by comparison.
- 03-16-2011, 10:22 AM #2
Nope.am wondering if there is some way in java to apply an array to variables(in one line of code).
db
- 03-16-2011, 10:29 AM #3
Member
- Join Date
- Mar 2011
- Location
- Hyderabad
- Posts
- 1
- Rep Power
- 0
c=a- -b;
explain this pleaseeeeeeeeeeeeeee
i can't understand this
- 03-16-2011, 10:31 AM #4
Member
- Join Date
- Mar 2011
- Posts
- 26
- Rep Power
- 0
I am very sorry, this is not java code. I should't put it in this forum... apologies.
- 03-16-2011, 10:42 AM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 03-16-2011, 12:27 PM #6
Member
- Join Date
- Mar 2011
- Posts
- 26
- Rep Power
- 0
Similar Threads
-
Apply a perspective transform
By JdeSyph in forum New To JavaReplies: 3Last Post: 03-07-2011, 08:39 AM -
How to apply PMD for JSP,HTML
By Devarajan in forum Advanced JavaReplies: 8Last Post: 01-28-2011, 09:48 AM -
Problems with printing variables and inserting data into array
By coltragon in forum New To JavaReplies: 6Last Post: 11-03-2010, 02:33 PM -
Counting Duplicate Variables in an Array
By Npcomplete in forum New To JavaReplies: 2Last Post: 10-24-2008, 07:33 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks