I'm a total noob at java, but while practicing it occurred to me that with the OOP design, every class inside the main class is going to have to be static right? In this code there is no way for me to call the class within main that isn't static (ShinyMetal). It seems like maybe I'm missing some point of why you would declare a class static or not. Thanks for your help!
public class Solution {
public class ShinyMetal {
}
public static void main(String[] args) {
ShinyMetal abcd = new ShinyMetal(); // error cannot be referenced from static context
System.out.println(abcd.toString());
}
}