Sure! Below is a simple Java program that demonstrates how to add two numbers:
```java
import java.util.Scanner;
public class Addition {
public static void main(String[] args) {
// Create a Scanner object to read input
Scanner scanner = new Scanner(System.in);
// Prompt the user for the first number
System.out.print("Enter the first number: ");
double num1 = scanner.nextDouble();


