Print number upto 100 and skip number that is divisible by 3

int n=100;
int i=1;
while(i<=n) {
if(i%3==0) {
System.out.println(i+=1);
} else {
System.out.println(i);
i+=1;

sir yaha pe agar me if wale loop me bina print statement ke i+=1 kar rahi hu toh ans sahi aa raha hai liken print statement se 2 bar number repeat hora hai.