2774
How do i make the 'date' column show only the date and 'timeIn' and 'timeOut' column only show the time. In my database table my 'date' column is a date type and 'timeIn' and 'timeOut' column...
Type: Posts; User: jaydac12
2774
How do i make the 'date' column show only the date and 'timeIn' and 'timeOut' column only show the time. In my database table my 'date' column is a date type and 'timeIn' and 'timeOut' column...
Fixed it. Turns out i was just updating the wrong table. Thanks for the reply though! I'd look into that. :)
Here is my code
public void timeOut(int pay, int trans) throws SQLException{
statement.execute("update tblcustomer set payment = "+pay+", timeOut = now() where transactionNo="+trans+"");
...
2756 Here is my sample interface so i guess it's graphical. Is there a tut for Timer for java? it's the first time id heard of it.
Can someone give me an idea on how to do a count up timer in java? like "0:00:00" hh:mm:ss
Hello?
How do I fetch a single value from a row in SQLite? for example I have the method getLevel() and a row with "id, coin, level" and the getLevel() is used to get and return the levelonly. How can i do...
I have this project for my android class im looking forward on starting this already but i have no idea on how the Buttons work on this game(4 Pics 1 Song). Can someone please enlighten me?
opss sorry. just found out that there is an android section here. coz my im doing this in Eclipse for my android project.
Im trying to create a calculator similar to the windows standard calculator where in when you click "5" and then clicked "+" by mistake you just have to click "-" for the output to be "5 -" not "5...
Im trying to create a calculator similar to the windows standard calculator where in when you click "5" and then clicked "+" by mistake you just have to click "-" for the output to be "5 -" not "5...
Hey, I tried your suggestion there is even no exception being caught by the catch block. The try block does not throw any exception even if the ISBN entered was not found on my database.
public void deleteBook(int temp)
{
try
{
query = "DELETE FROM ccItems WHERE ISBN = '"+temp+"'";
stmt.executeUpdate(query);
...
public void searchBook(int temp)
{
try
{
query = "SELECT * FROM ccItems WHERE ISBN = '"+temp+"'";
rs = stmt.executeQuery(query);
...
the addItem() is in the Library class, the user should add info first before adding it as a book object to the library class.
yes it should do that. It should create a Book object and store it in an array and the retrieveItem() method be able to retrieve what is store on the arraylist.
it is in the Book class. where in the Book class extends my library class. yes it compiles with no errors.
newBook.addItem(Integer.parseInt(idTF.getText()), dateTF.getText(), descriptionTF.getText(), Integer.parseInt(copiesTF.getText()),
titleTF.getText(), newBook.getAuthor(),...
how should i do that?
the add method? you mean like this? "newBook.add(new Book(args))"???
those statements are for storing the necessary info fro the book object in the arraylist. (i think)
my code cant seem to add the necessary info to my arraylist that's why i cannot retrieve it by...
i have no errors may my logic is wrong...
what do you mean by "Make the calls to the Book class's methods before adding the Book class object to the arraylist"?
it is in my main class, i did not...
import java.util.*;
import javax.swing.*;
public class Library
{
int id;
String date;
String description;
int copies;
String title;
int bookCount;
above is the problem. i can't understand the bold parts in the problem, and here is currently where im at. could someone please put me on the right track here?
/**
* @(#)Library.java
*
*...
the program should first generate a random number and then checks the generated number if the generated number is already in the array. and if the generated number is already in the array it will...
Help me solve this please. been trying for about 2 hours now. and this is the last piece of code i need for my main program. help would be appreciated. thanks.
import javax.swing.*;
public...