Results 1 to 2 of 2
Thread: 'Inline' type declaration
- 03-15-2011, 10:18 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 10
- Rep Power
- 0
'Inline' type declaration
Dear all, I have some code similar to this:
And it's done about ten times with different array. But this feels very awkward, is there any way to do something likeJava Code:int[] something = {1,2,3}; vector.add(something);
orXML Code:vector.add({1,2,3});
Like with string and integers?XML Code:vector.add(int[] {1,2,3});
Greetings,
Marty
- 03-15-2011, 10:45 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Similar Threads
-
JavaBean - invalid method declaration and return type required
By jprog in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 05-07-2011, 06:13 PM -
invalid method declaration; return type required
By XaviannNJ in forum JCreatorReplies: 7Last Post: 11-25-2010, 01:59 PM -
annotation type not applicable to this kind of declaration
By newbiejava in forum New To JavaReplies: 1Last Post: 10-08-2010, 05:30 AM -
Inline JVM assembly in Java
By youngstorm in forum Advanced JavaReplies: 2Last Post: 09-15-2010, 07:14 PM -
Error: invalid method declaration; return type required
By silvia in forum AWT / SwingReplies: 3Last Post: 06-05-2010, 08:05 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks