Hi just a bit of background I am a mature student (52) I have studied Borland C++ at Manchester Metropolitan University, and some java, recently I have need to communicate between two computers using COM ports something that Borland C++ does not readily do, looking at the options I found that I could use java to achieve this task. However I realized from the off that there was areas of java that I did not understand, I have followed your advise and started the tutorials! Which are easy to follow more over they overlap my knowledge of Borland C++ in as much that I all ready have a good understanding of things like arrays etc
So in conclusion I see that to access a method in another class I do the following
-
Bicycle bike1 = new Bicycle(); //make an instance of the class
-
I can then access the printStates(); method in the Bicycle class using
So applying this to my own project
-
PrintStream ps = new PrintStream();
-
-
ps.print(int 22);
-
Which does not work can you please help why? Also you correctly point out that I have define things that I am not using here, they are to be used later they are part of an example that I am trying to modify to meet my needs
The over all idea is to develop a system to help a child with autism using a word selection and reward scheme controlled by an adult using the second PC , mainly because the nature of the condition of having autism often leads to shyness and the computer screen is easier to tolerate than face to face contact
Regards Peter