Java Error: Invalid top level statement

After quick searching around I assume you’re using DrJava and its Interactions Pane. You don’t need those parentheses in the run command. Try run Main customer.dat smartphone.dat instead. That will run the main method of class Main with arguments customer.dat and smartphone.dat Source

Correct way to work with vector of arrays

You cannot store arrays in a vector or any other container. The type of the elements to be stored in a container (called the container’s value type) must be both copy constructible and assignable. Arrays are neither. You can, however, use an array class template, like the one provided by Boost, TR1, and C++0x: (You’ll … Read more

Backspace key not working in Vim/vi

To allow backspacing over everything in insert mode (including automatically inserted indentation, line breaks and start of insert) you can set the backspace option: or By default this option is empty, not allowing you to backspace over the above-mentioned things. This is the standard Vi behavior. You can put this line to your vimrc file … Read more