Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

In Java,Is it possible to use array tpe with in Record type?
Hi,
In Java,Is it possible to use array tpe with in Record type?

Record Type:

{Variable=String;Variable=long}

like this

{Variable=int[];Variable=long[]}

Is this possible?


Report this thread to moderator Post Follow-up to this message
Old Post
priya
06-04-05 01:58 PM


Re: In Java,Is it possible to use array tpe with in Record type?
"priya" <priya11.karthik@gmail.com> schreef in bericht
news:1117870563.829182.42550@g43g2000cwa.googlegroups.com...
> Hi,
> In Java,Is it possible to use array tpe with in Record type?

What is a Record type?

> Record Type:
>
> {Variable=String;Variable=long}
>
> like this
>
> {Variable=int[];Variable=long[]}
>
> Is this possible?

What you just wrote is not Java.



Report this thread to moderator Post Follow-up to this message
Old Post
Boudewijn Dijkstra
06-04-05 08:57 PM


Re: In Java,Is it possible to use array tpe with in Record type?
On Sat, 4 Jun 2005 14:10:44 +0200, "Boudewijn Dijkstra"
<usenet@bdijkstra.tmfweb.nl> wrote:

>"priya" <priya11.karthik@gmail.com> schreef in bericht
>news:1117870563.829182.42550@g43g2000cwa.googlegroups.com... 
>
>What is a Record type?

Java doesn't have Record Types. In C/C++/Pascal[1] they are
datastructures that contain just data (as opposed to data + methods as
Objects).
 
>
>What you just wrote is not Java.

Nope it is not. What I think the OP was trying to do was this:

class MyClass {
int[] intArray;
long[] longArray;
}

Maybe? Hard to tell as the OP didn't make much sense

--
now with more cowbell

Report this thread to moderator Post Follow-up to this message
Old Post
Bryce
06-06-05 09:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:42 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.