Tags » Java Programming

Java Program to compare two Strings.


public class StringCompare{
   public static void main(String args[]){
      String str = "Hello World";
      String anotherString = "hello world";
      Object objStr = str;
      System.out.println( str.compareTo(anotherString) );
      System.out.println( str.compareToIgnoreCase(anotherString) );
      System.out.println( str.compareTo(objStr.toString()));


Java Programming

A Hello World! Java program.

public class HelloWorld {

public static void main(String[] args) {

System.out.println("Hello World!");


Java Programming

How Learning Java is Easy Over Other Programming Languages

Engineering, IT, data science or software development – knowing programming language is now becoming important for most professions. However, when aspiring candidates plan to learn java language… 378 more words


Project: JavaFX Calculator

Project: Creating a GUI for Calculator

you should be ready to work on the following assignment: “Create the GUI for a calculator that will look similar to this one”: 1,178 more words

Java Programming

Interaction with JavaFX

JavaFX did a good job in designing and realizing a beautiful GUI interface for us, like the amazing button; however the button is not ready to be clicked, since we have nothing behind to make user interact with JavaFX interface. 978 more words

Java Programming