```java
public class NarcissisticNumber {
public static void main(String[] args) {
for (int i = 100; i < 1000; i++) {
if (isNarcissisticNumber(i)) {
System.out.println(i);
}
}
}
public static boolean isNarcissisticNumber(int num) {
int a = num / 100;
int b = (num % 100) / 10;
int c = num % 10;
return num == Math.pow(a, 3) + Math.pow(b, 3) + Math.pow(c, 3);
}
}
```
public class NarcissisticNumber {
public static void main(String[] args) {
for (int i = 100; i < 1000; i++) {
if (isNarcissisticNumber(i)) {
System.out.println(i);
}
}
}
public static boolean isNarcissisticNumber(int num) {
int a = num / 100;
int b = (num % 100) / 10;
int c = num % 10;
return num == Math.pow(a, 3) + Math.pow(b, 3) + Math.pow(c, 3);
}
}
```