the problem is just that you're trying to access an instance (non-static) method from within a static context (the main method). Your code should work a expected by simply making the "vect" method "public static void".
As an advice: You can usually solve such problems without help by simply using an IDE like NetBeans or Eclipse. That way an integrated Java compiler tells you what's wrong with your code just by typing this code into an editor window. It would have told you something similar to that I posted above
as a general tip, saying "But have An error..This code is not working." is not helpful. If you get an error when compiling, tell us the error. Those 2-3 lines mean a LOT, and help focus in on the problem.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors