Java program to print tribonacci number

NOTE:- A series in which the sum of the first three number is equal to fourth. import java.util.Sc…