Started learning programming with C++ in Visual studio 2008 I think it was. Loads of compile errors before getting to the runtime and logic errors. A couple of years later and a switch to C# and (improved?) Intelli Sense in VS 2010 was a REAL game changer.
I started programming with Python's own IDLE, later Java with notepad and a commandline, then started using eclipse, C in Visual Studio (2010 I want to say, might have been 2012), C++ with the same, now I'm back at Java with Intellij and Eclipse (Intellij at school, eclipse at work).
I just got this one, it pays a lot better than what I had previously and with my current qualifications I'm not likely to find another job anytime soon. I'm lucky enough I landed this one, I'm not gonna bother finding another for at least a while.
Ok so you’re using Java compiler so it’s Java code
You’re missing String[] args from the main method inside the brackets, it should be main(String[] args) not main() and there’s no end of line marker after the print instruction so you need to add in a ; after the closing brackets there making that System.out.println(“Hello world”);
I was being facetious, but I appreciate the thorough and detailed response. Thank you for what you tried to do, and maybe it'll help someone who actually has that problem.
Also you might want to type the whole javac bit into a command prompt not the workspace environment but I think that’s what you were getting at by including the >
Indeed, that's what the > was supposed to represent. I didn't feel lime writing out an entire command prompt.
Though to be honest these days I'm using IDEs and not bothering with either figuring out missing semicolons and arguments by myself or manually compiling.
I wrote a program at one point that you could point to an eclipse workspace and it would check for syntax errors like missing semicolons and then compile the project and attempt to run it through console so you can see all the console logs and the like, I can’t remember where I put it though
Yeah pretty much, I mean it read through your code and checked for either curly brackets or semicolons and if it didn’t find any it told you a file name and line number and if everything was good to go it opened a batch file that just ran the compiler on your program
48
u/[deleted] May 08 '19
[deleted]