skip to Main Content

My Id is autoIncrement and other than Id from 1st position, I want to insert the name,price – Mysql

This is the code where I'm trying to use the insert query: int insertItems(String name,double amt,String exp)throws Exception{ Connection con=getConnection(); PreparedStatement ps=con.prepareStatement("insert into itemsList (null,name,amt,expire) values (?,?,?,?);");//when I use the 4?s it displays [Exception in thread "main" java.sql.SQLException: No value…

VIEW QUESTION

Android Studio – Android Studio GridLayout reverse not working

I'm currently making a instagram type of app in Android Studio, my app only shows the newest pic at the bottom of the grid. The Collections.reverse(arrayList) is not working here's my main.java package com.example.mygram; import androidx.activity.result.ActivityResult; import androidx.activity.result.ActivityResultCallback; import androidx.activity.result.ActivityResultLauncher;…

VIEW QUESTION

Dockerfile : /bin/sh: 1: ./mvnw: not found error

I am building a Docker container using the following Dockerfile and actually the app is running on the created container. FROM eclipse-temurin:17-jdk-jammy as builder RUN addgroup demogroup; adduser --ingroup demogroup --disabled-password demo USER demo WORKDIR /app # copy pom.xml, mvnw…

VIEW QUESTION
Back To Top
Search