What error were you getting earlier?
If you want to print out the result, you can do this (assuming CountSevens1.countDigits(s) returns an int):
CountSevens1 x = new CountSevens1();
int result...
Type: Posts; User: aussiemcgr
What error were you getting earlier?
If you want to print out the result, you can do this (assuming CountSevens1.countDigits(s) returns an int):
CountSevens1 x = new CountSevens1();
int result...
I think your question is about how to make two class files communicate with each other. At this basic level, simply create two files, put them in the same folder, compile both of them, and run the...