Hello, How to solve thisin Java? Generate random simple directed acyclic graph that user inserts the vertex number that each vertex has no less than K-min and not more than K-max neighbours of each vertex. In addition create function in program for given graph insertion and generated graph presentation by user(to print the graph). Generated graph is stored in adjacency list using one-dimensional array. In addtion, according to breadth-first search algortihtm find which vertex is farthest(longest path) from the given vertex and find the path distance. Print the found path between vertices. If there are some vertices, it is enough one.
According to the Java web page Java 8 is for Windows 8.1 and Java 9 has been removed.
I'm following a book on Java that uses the JShell command. JShell is found in Java 9 and versions onwards.
I did manage to find Java 10 and install it but when I type Java -version I get version 1.8.0_201-b09.
Is there a way to tell my computer to run Java 10 and not the previously install Java?
By renaming the jdk folder on the C drive I found that the path points to the C drive as I got an error when typing in Java in the Dos prompt as it could not find the folder I had renamed.
I have installed other versions of Java on my F drive.
I need to know how to change the path to look at Java version 11 on my F drive.
I can create a tenp path by typing in SET PATH = on the Dos prompt but I need a permanent path.
I'm using Windows 8.1 (64 bit version).
You can check and modify the system environment variables through the control panel. Go to Control Panel -> System and Security -> System, and select Advance System Settings. Next click the Environment Variables button, and you cna modify the existing settings. Note: theses instructions are for Windows 10, so the actual route may be slightly different on 8.1, but the basics are the same.
It's a "Signature" - if you go to your profile (hover your mouse over your name at the top right of the page and select "My Settings") then select the "Forums and QA" tab you can set one near the bottom. That text will then appear at the end of each forum message you post.
I used Java, C, C++, Smalltalk, Algol and various assemblers in my professional life. The reason for choosing a specific language varied depending on what other people were using and what interfaces I was working with. Like I said before you make a choice based on your own specific needs or preferences.
I've tested other popular languages by writing a simple number guessing game. I hope to do the sam in Java.
The main thing I have against Java is that it does not compile into an EXE type program but instead it has the .CLASS extension so I need to type Java and the name of program.class to run my program. This make C# more attractive to me. However I'm going to see if there are programs that can convert a .CLASS Java program into an .EXE file.
I do like the way the main Java program can call other .CLASS files when needed and access variables without any problems.