I am learning how to properly use Java parameters and arguments
Even with this simple example, there are a few things I can comment on.

Class names start with a capital letter.  ParamsAndArgs, not paramsAndArgs.

When parameters are passed to a method, those parameters should have values.  In your code, you're passing the doSomething method two parameters that have no values and aren't used in the doSomething method.  They're set in the doSomething method.

While naming a method doSomething is okay when you're not sure what the method does, you should change the name to something meaningful, like getInput, once you know what the method does. Generally methods are named with a verb, noun combination (get, Input).


Here's your code, reworked to be a more accurate example of parameters and arguments.
import java.util.Scanner;

public class ParmsAndArgs {

    static String name, feeling;

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        getInput(scan);
        System.out.println(&quot;Hello, &quot; + name + &quot;. I am feeling &quot; +
                feeling + &quot; too.&quot;);
        scan.close();
    }

    private static void getInput(Scanner scan) {
        System.out.println(&quot;What is your name?&quot;);
        name = scan.nextLine();
        System.out.println(&quot;How are you today?&quot;);
        feeling = scan.nextLine();
    }

}