title: There is an error while using System.out.println when both text and variables
body: <p>I am a beginner in Java so I wrote a program to understand the OOP concepts but it gives me an error when trying to use System.out.println().
  Here's the code</p>
  
  <pre><code>public static void main(String[] args) {
      sampleClass ADD = new sampleClass();
      Scanner input = new Scanner(System.in);
      int fNum;
      int sNum;
      System.out.println("Enter the first number to Add");
      fNum = input.nextInt();
      System.out.println("Now enter the second number");
      sNum = input.nextInt();
      int sum;
      sum = ADD.add(fNum, sNum);
      System.out.println("The sum of " fNum " and " sNum " is " sum);
  }
  </code></pre>