ขั้นตอนการใช้ native methods: สร้าง header file (.h) สำหรับ CPP program สร้าง CPP file สร้าง DLL ใน Java code ประกาศ method เป็น native โหลด DLL ด้วย System.loadLibrary() และเรียก method