fabric api, minecraft mod, optifine hd, mod apk, mod apk games
A.I, Data and Software Engineering

Categoryfull-stack

full-stack category

WHY DO WE NEED TO OVERRIDE EQUALS AND HASHCODE METHODS IN JAVA/Kotlin

woman working at home using her laptop

In this post, we will discuss why it is important to override equals and hashCode method in Java/Kotlin. Item 9 in Josh Bloch’s Effective Java suggests always override hashCode() method if the class overrides equals(). In this post, we will discuss why this is necessary and good practice.  We know that two objects are considered equal only if their references point...

Welcome 2021 with some fun

Wonder how these kids are doing now? Their answers are brilliantly fun. Some are typical examples of out of box thinking and it is really good for creativity. Imagination is more important than knowledgeAlbert Einstein Image credits: Douglass Image credits: Douglass Source: imgur Source: clivewhite.co.uk Source: funcage.com Source: imgur Source: picslap.com Source: addfunny.com Source: alittle...

Material Design — Custom Alert Dialog

Google did an amazing job to promote material design. However there is not many articles about how to quickly style the custom dialog. So, we will cover some missing stuff here. Prerequisites Add material design dependency in Gradle file: 1 implementation "com.google.android.material:material:<latest-version>" Make sure your AppTheme inherited from a material theme like:...

Advanced android room persistent storage

room architecture

Room provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite. Because Room takes care of several concerns for you, e.g. caching, networking, Android highly recommend using Room instead of SQLite. If you are coming from iOS, the good news is that Room is very similar to the core data in iOS development. The task Field...

Tutorial: Multi-touch gesture for android

multi-touch

Multi-touch gestures are very useful in many common scenarios, such as zooming, panning. For game development, handling multi-touch is essential. This post will give a quick guide for handling multi-touch points. Project structure We create a new project name MultiTouch with Java and add a new class named GameScene as a subclass of android.view.View. The basic GameScene class is as follows. 12345...

A.I, Data and Software Engineering

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.