I’m relatively new to Java so I’m kind of lost here. Is it wrong when you are trying to compare two strings just use the identical symbol "==" instead of using a method for checking if two strings are identical. Because for what I have tried the first option doesn’t work and I’m very curious ..
Here is the xml of my application. Every time I change one subject’s ID everything gets unset. I don’t know if it has to do with the fact that I first constructed all the constraints with the old ID and when you try to change Android Studio don’t accept the change and this somehow leads ..
I’m developing an e-trade app by using Kotlin. It’s a rest API an its backend was written with Spring. I want my app to recommend to users’ homepage more of similar items and sections what thet browse. What’s the appropriate algorithm for this job? I’ve found Apriori Algorithm but it’s not what I’m looking for. ..
I am looking for an algorithm that will compare the inputs of all the users in order to do some matchmaking. Source: Android Studio..
Overview: Trying to make game like Tic Tac toe but not working with 3/3 grid. Cant understand what’s wrong with the code. Please help. Problem: Grid is not making 3 lines to complete the game. Problem is with correct logic making. What I want to achieve: I want to make a 3 by 3 grid ..
i have to develop Rang Card game in Android, One player is going to be human while 3 other players are going to be A.I bots, which A.I algo would be best suited for such a scenario? Source: Android..
I have one image, but I want to work with multiple (from 1 to 8) ImageViews at the same time on screen. And the only conclusion I came to is to create 8 the same ImageViews with different ids. Im my activity, it looks like this: <ImageView android:id="@+id/object0" android:layout_width="50dp" android:layout_height="107dp" android:visibility="invisible" app:layout_constraintStart_toStartOf="@+id/imageView" app:layout_constraintTop_toTopOf="@+id/imageView"/> Then this: ..
Here is the code for tic-tac toe game in Android Java I am learning for Udemy. I am able to undertand how to get the position of the tap by using setting an android:tag value to every image value. It is stored in tappedCounter. I am not able to decipher why gamestate is taken as ..
I have to develop a program in Android based on an Algorithm because the topic must be related to "Algorithms and Data Structure" (University subject). Can you suggest me any topic that uses a certain algorithm, or can you suggest me an example that I can rely on. I am a beginner in programming. Thank ..
I’ve been developing an E-commerce app. It has a lot of products as of now and more are being added every day. I’m thinking of making a list of thousands of products (all of them) and do a linear search. Is there a better way to implement it. Suggest me some best practices. Thanks. Source: ..