Hi guys,
I'm still quite new to programming and have an exam soon where we have to hand-write programs(no IDE). Never done this before, just you guys all give fantastic guidance, i wanted to see what you all thought. Any general advice would be appreciated!
Theres some small things im unsure of like if you write a small program is it ok to put it all in a public static void main? or should i include method calls in the psvm? or should i not include psvm and use public void main() to call methods?
Also when asked to declare an array is:
int[] numbersArray = {41, 87, 54, 34, 24, 100, 33, 51}
okay ? (i mean i know it works, but is that all that would be expected of you?) I read somewhere that an array should(or has to) always declare how many elements there will be inside. Or is that done here by simply initialising the 8 elements? I've seen an array declared as ...array = new array[12] etc, i really dont understand the difference or why you would do the latter.
Thank you (I know its a bit of a mess, sorry lol)