03.02.26.md (495B)
1 # 03/02/26 2 3 - Strings are non primitive types in java 4 - Java doc is self documentation, it looks like so 5 ``` 6 /** 7 * Method for finding area of a Circle 8 * 9 * @param radius rad of Circle 10 * @return area 11 */ 12 13 public int getArea(float radius) { 14 ... 15 return 69; 16 } 17 ``` 18 19 - must call functions methods because java is fucky 20 - attributes in java should not be static, as you cant use a static variable in a static method 21 - static methods don't need an object, like Canvas.getCanvas() in worksheet