public class ArithmeticOPTest {
 public static void main(String args[])
 {
  int a=5, b=2 ;
  int sum=~b;
  
  int mod=a%b;
  System.out.println(\"a%b=\" + mod);

  /* % 나머지 대신 다른 연산자를 이용하여 프로그램을 작성하세요 */

  int c = ++a;
  System.out.println(\"a의 단항증가연산(prefix)=\"+c);
  System.out.println(\"a 변수의 값 : \"+a);

  /* ++ 대신 다른 연산자를 이용하여 프로그램을 작성하세요 */

  int d = b--;
  System.out.println(\"b의 단항등가연산(postfix)=\"+d);
  System.out.println(\"b 변수의 값 : \"+b);

  /* -- 대신 다른 연산자를 이용하여 프로그램을 작성하세요 */
 }
}

위에있는 설명 그대로 입니다.

%대신 사용할수 있는것과 ++,--를 다른방법으로 사용할수 있는것에 예제를 가르쳐주세요~