What is the best way to convert an existing php class into Java?

前端 未结 15 1231
梦毁少年i
梦毁少年i 2021-02-09 14:07

I have been tasked with converting several php classes into java classes, which is quickly becoming a nightmare for me. I understand the basic language structure, it being simil

15条回答
  •  孤独总比滥情好
    2021-02-09 14:43

    A human is the best tool.

    I would try to rewrite the php to remove most of the php features to something C like. Then you'll have an easy time rewriting in Java.

    But I need to ask, why do you need to convert the php? Can you not wrap the php into something callable from Java? This way you won't add any errors while converting it.

提交回复
热议问题