This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

struct in java

 
vijayapriya thirumurugan
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator


hello sir,


i have seen that struct concept is there in java.

it's syntax is:

static class teststruc extends Struct{
String name;
int number;
}


but i didn't have clear idea about this. that's why i asked. but sir, i'll tell my concept using c language. can you clear that in java.

i have struct in c which contains a field which is of array i.e.,

struct test{
int array;
}
b[10][10];

here i am accessing by means of for loop;
i am storing 1 to b[1][1] .array and 2 to b[1][2], etc again 1 to b[2][1].array etc.
can you give this idea in java

 
Henry Wong
author
Marshal
Pie
Posts: 20836
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please reply to topics -- instead of starting new topics -- when replying.... Here is you original topic...

http://www.coderanch.com/t/443489/Java-General-beginner/java/struct-java

Henry
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic