<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Write a Java program to output the first ten numbers of the Fibonacci sequence.
<|im_end|>
<|im_start|>assistant
class Fibonacci {  
    public void printFibonacciNumbers(int n) { 
    int first = 0;
    int second = 1; 
    System.out.print(first + " " + second);  
    for (int i = 2; i < n; i++) { 
        int third = first + second; 
        System.out.print(" "+third); 
        first = second; 
        second = third; 
    }
    }
}<|im_end|>
