Java Coding Using Ring Without Subscription