title: How to solve this Function problem with Java?
body: <p><a href="https://i.stack.imgur.com/bJwnX.jpg" rel="nofollow noreferrer">enter image description here</a>Given an integer N, find all possible pairs of A, and B such that A + B = N and A and B both are natural numbers ??</p>
  <p>My Code:-</p>
  <pre><code>import java.io.*;
  import java.util.*;
  
  
  class UserMainCode
  {
  
      public int AllPair(int input1){
            Int count0;
         int N =  Input1;
  
         if(N == A + B) {
  
         System.out.println(Allpair);
      }
  }
  </code></pre>