I tried some things and some of them don't even compile. I'm really lost here... Somebody to help? Thanks.
package com.codegym.task.task23.task2307;
/*
How do I choose the right one?
*/
public class Solution {
public static final String TEST = "test";
public static class TEST {
@Override
public String toString() {
return "test class";
}
}
static Object obj;
public static void main(String[] args) {
obj = Solution.TEST;
System.out.println(obj);
}
}