JAVA, Programmimg Languages, Tips

How to compare strings correctly [JAVA Tip]

The main objective of this post is to explain the correct method of comparing the strings in Java. Can you answer the following quiz?  * QUIZ: Guess output of the following code snippet: String osName = System.getProperty(“osName”); if (osName.equals(“Windows”)) {        System.out.println(“You’re using Windows”); }   For now, let write down your answer on paper.… Continue reading How to compare strings correctly [JAVA Tip]

Advertisements
Basics of Management

Concepts and structure of an Organisation

The objective of this post is explain main topic and highlighting them for preparing for the examination of the Basics of Management. Meaning of Organisation Dictionary meaning of Organisation is an organized group of people. In simple words, organization means deciding the work, dividing the work load, deciding the work of various departments and then… Continue reading Concepts and structure of an Organisation

Compilers, JAVA, Programmimg Languages

How to run Java program from CMD

Let's say your file is in C:\mywork\ Run Command Prompt C:> cd \mywork This makes C:\mywork the current directory. C:\mywork> javac filenamehere.java This runs javac.exe, the compiler. You should see nothing but the next system prompt... C:\mywork> dir javac has created the filenamehere.class file. You should see filenamehere.java and filenamehere.class among the files. C:\mywork> java… Continue reading How to run Java program from CMD

Compilers, JAVA, Programmimg Languages, Softwares, windows

How to Install the Java Software Development Kit (JDK)

Before you can create and modify Java programs, you’ll need the Java Software Development Kit. You can download the kit (also known as Java SDK or JDK) for free from Oracle as a single installer file, which makes installation quick and easy. Learn the best way to download and install the Java Software Development Kit… Continue reading How to Install the Java Software Development Kit (JDK)