How to validate this method specially
System.out.println("Enter number of vertices");
n=Integer.parseInt(br.readLine());
this. please help me
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader ( new InputStreamReader (System.in));
System.out.println("Enter number of vertices");
n=Integer.parseInt(br.readLine());
graph2 g = new graph2(n);
g.createGraph();
System.out.println("\nEnter the source node:");
int s = g.getNumber();
System.out.println("\nEnter the target node:");
int t = g.getNumber();
long start = System.currentTimeMillis();
algomain2 ff = new algomain2(g,s,t);
System.out.println("\nFinal Residual Network with no augmenting path");
System.out.print("\nCapacity Flow matrix for your graph is :\n");
for (int i=1;i<=n;i++)
{
for (int j=1;j<=n;j++)
System.out.print(" "+ff.f[i][j]+"/"+g.cf[i][j]);
System.out.print("\n");
}
int maxflow=0;
long end = System.currentTimeMillis();
System.out.println("\n Max flow is: ");
for(int i=1; i<=n;i++)
if(g.adj[s][i]==1)
maxflow=maxflow + ff.f[s][i];
System.out.println(maxflow);
System.out.println("Time taken (ms):"+ (end-start));
}