既然代码是用 Objective C 编写的,我如何才能在 Android 或 Java 中转换使用它?
ALog(@"ERROR: Account with UserId:%@ AccountType:%d AccoundId:%d DOES NOT EXIST!",
account.userId, account.accountType, account.accountId);
最佳答案
看看 MessageFormat 类:
http://docs.oracle.com/javase/1.4.2/docs/api/java/text/MessageFormat.html
还有一些日志记录框架,比如 log4j、commons-logging 或任何您认为最方便的工具
关于java - Alog 转换为 Java,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9108365/