String aa="hehe";
String hehe="xxxxx";
这样是没有问题的

解决方案 »

  1.   

    所以我说是概念问题..为什么jsp不可以?php却可以?
      

  2.   

    我想声明两个变量
    第二个变量名称是第一个变量的值,也就是不确定的变量名称JSP可以不可以做到?
      

  3.   

    所以我说是概念问题..为什么jsp不可以?php却可以?
    -------------------
    jsp不可以吗!!!
    String aa="hehe";
    String hehe="xxxxx";
    是没有任何问题的
      

  4.   

    String aa="hehe";
    String hehe="xxxxx";这样谁都知道可以呀!!!
    但如果我String aa="hehe";
    aa="xixi";怎么搞?现在我需要声明一个xixi为名字的变量. - -