I am having some trouble on inheritance in java. I am just testing how it works. I have a file that produces a random number in a folder called number. I have a file that calls the RandomNumber code that is in the main folder. I am wondering how I could link the Program to get the number in the folder.

Your question does not really make sense

I have a file that produces a random number in a folder called number.
How can a file produces random number ?
A file is data storage on a media. It does not generate anything.
A program does.

I have a file that calls the RandomNumber code that is in the main folder.
Same reply.

I am wondering how I could link the Program to get the number in the folder.
Which program ? Reading which file(s) ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.