generate a qr code in java

Java
<dependencies> 
    <dependency> 
        <groupId>com.google.zxing</groupId> 
        <artifactId>core</artifactId> 
        <version>3.3.0</version> 
    </dependency> 
    <dependency> 
        <groupId>com.google.zxing</groupId> 
        <artifactId>javase</artifactId> 
        <version>3.3.0</version> 
    </dependency> 
</dependencies>     

Source

Also in Java: