fork download
  1. class Solution {
  2. class ShinyMetal {
  3. }
  4.  
  5. public static void main(String[] args) {
  6. Solution solution = new Solution();
  7. ShinyMetal abcd = solution.new ShinyMetal(); // error cannot be referenced from static context
  8. System.out.println(abcd.toString());
  9. }
  10. }
Success #stdin #stdout 0.06s 2184192KB
stdin
Standard input is empty
stdout
Solution$ShinyMetal@677327b6