Skip to content

Instantly share code, notes, and snippets.

@ninozhang
Last active December 16, 2015 07:59
Show Gist options
  • Save ninozhang/5403131 to your computer and use it in GitHub Desktop.
Save ninozhang/5403131 to your computer and use it in GitHub Desktop.
Java 获取指定字段的值
Field title = tip.getClass().getDeclaredField("title");
title.setAccessible(true);
System.out.println(title.get(tip));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment