How do you make a...

How do you make a console application to use a variables in a nother variables in a nother application if so can you help by give me a example?
[165 byte] By [tcjavaxoe] at [2007-11-25 19:06:06]
# 1

I'm not sure what you mean, but if you are using (for instance) the bash shell,

MYENVIRONMENTVAR="stuff"

export MYENVIRONMENTVAR

In C you'd read the environment variable something like this:

#include <stdlib.h>

char *myenvvar;

myenvvar= getenv("MYENVIRONMENTVAR");

print ("My variable= %s",myenvvar);

This tech tip explains how to do the same thing in Java:

http://java.sun.com/developer/JDCTechTips/2001/tt1204.html

b.nitz at 2007-7-3 22:59:49 > top of Java-index,Desktop,Sun Java Desktop System...
# 2

I would like to use one varable in one application and use it in a varable in a nother application is there a way?

Thank you for give that other information to me.

application 1 code example:

public string Text()

{

String text = String.phrasStr(text.getText());

}

application 2 I would like text String In it.

tcjavaxoe at 2007-7-3 22:59:49 > top of Java-index,Desktop,Sun Java Desktop System...