检测重复的程序 [英] detect duplicated programs

查看:56
本文介绍了检测重复的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我最后一年的项目是开发一个Java应用程序,该应用程序应将两个Java程序作为输入并告诉我们程序是否被复制.
如果复印机仅更改变量名,它们将不能够作弊.
如果复印机仅在代码行之间或代码行内部添加空格,则它们不应作弊.

非常感谢您的帮助..

Hello,

My final year project is to develop a java application which should get the two java programs as input and tell us if the programs are copied or not.
The copiers should not be able to cheat if they just change the variable names.
The copiers should not be able to cheat if they add just spaces in between the code lines or inside the code line.

Your help is greatly appreciated..

推荐答案

与其查看源代码,不如直接编译它们并查看生成的字节码.
Instead of looking at the source code, compile them and look at the resulting bytecode.


这篇关于检测重复的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆