• Post Reply Bookmark Topic Watch Topic
  • New Topic

Linker question  RSS feed

 
Jillika Iyer
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
has any1 tried implementing a linker in java?
i m kind of new to this n getting real confused.
its like to store my data and values i figured cud to use an array storing objects i.e has my data and its value.
then m facing problem as to how i cud read the next line of input where i have to keep track of all places my data has occured.
plus m reading input from a file..so how can i specify to my program to start reading only the 2nd and 4th line of my input?
i thought maybe i cud store the address again in an array but kind of getting really loopy and confusing.
or is C an easier choice? but i havnt done much programming in C
any help appreciated.
thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66304
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on Servlets. For more information, please read this.

This post has been moved to a more appropriate forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66304
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also lease use real words when posting to the forums. Abbreviations such as "q" in place of "question" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

I have adjusted the topic title for you.
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jillika Iyer wrote:has any1 tried implementing a linker in java?


In the "computing" speak, a "linker" has a very specific meaning... what you are describing isn't it.

Jillika Iyer wrote:its like to store my data and values i figured cud to use an array storing objects i.e has my data and its value.


I am definitely slow, as I read it about 10 times before I got the jist of what you are trying to say.

Basically, you have a bunch of name-value pairs, and you want to store it in the array, 2 array elements per pair. Sort of like [name1, value1, name2, value2, etc....].

Jillika Iyer wrote:then m facing problem as to how i cud read the next line of input where i have to keep track of all places my data has occured.
plus m reading input from a file..so how can i specify to my program to start reading only the 2nd and 4th line of my input?


Now you are asking how to read this array data from a file. Question. How did you get this array data to a file? Use a similar technique to get it back to the array.

Jillika Iyer wrote:i thought maybe i cud store the address again in an array but kind of getting really loopy and confusing.
or is C an easier choice? but i havnt done much programming in C


Address of what?

As for C, language isn't the issue here. Do you have the algorithm worked out? If you don't, it doesn't matter what language you use.

Henry
 
Kari Vesige Putha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a good question
 
Campbell Ritchie
Marshal
Posts: 56518
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Kari Vesige Putha

Why did you edit your post? What did it say before? "This is a good question" hardly adds much to the discussion
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!