cout<<endl<<endl<<a[i]<<a[j]<<a[k]; to java code example Example: if(arr[i]==k) return arr[i]; if(arr[i]==k){ return arr[i]; }