Search:

Type: Posts; User: jaydac12

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Replies
    1
    Views
    1,070

    JReport date and time question

    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...
  2. [SOLVED] Re: Unknown column in 'where clause' in Java MySQL

    Fixed it. Turns out i was just updating the wrong table. Thanks for the reply though! I'd look into that. :)
  3. [SOLVED] Unknown column in 'where clause' in Java MySQL

    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+"");
    ...
  4. Replies
    3
    Views
    1,803

    Re: Java count up timer

    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.
  5. Replies
    3
    Views
    1,803

    Java count up timer

    Can someone give me an idea on how to do a count up timer in java? like "0:00:00" hh:mm:ss
  6. Replies
    1
    Views
    1,764

    Re: SQLite Android Question.

    Hello?
  7. Replies
    1
    Views
    1,764

    SQLite Android Question.

    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...
  8. Replies
    0
    Views
    1,265

    4 Pics 1 Song.

    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?
  9. Replies
    6
    Views
    1,652

    Re: Windows Calculator.

    opss sorry. just found out that there is an android section here. coz my im doing this in Eclipse for my android project.
  10. Replies
    6
    Views
    1,652

    Android Calculator like Windows Calculator

    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...
  11. Replies
    6
    Views
    1,652

    Windows Calculator.

    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...
  12. Replies
    2
    Views
    1,436

    Re: Java WAMP Server

    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.
  13. Replies
    2
    Views
    1,436

    Java WAMP Server

    public void deleteBook(int temp)
    {
    try
    {
    query = "DELETE FROM ccItems WHERE ISBN = '"+temp+"'";

    stmt.executeUpdate(query);

    ...
  14. Thread: Try and catch

    by jaydac12
    Replies
    2
    Views
    989

    Try and catch

    public void searchBook(int temp)
    {
    try
    {
    query = "SELECT * FROM ccItems WHERE ISBN = '"+temp+"'";

    rs = stmt.executeQuery(query);
    ...
  15. Replies
    15
    Views
    1,419

    Re: Adding Object to ArrayList

    the addItem() is in the Library class, the user should add info first before adding it as a book object to the library class.
  16. Replies
    15
    Views
    1,419

    Re: Adding Object to ArrayList

    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.
  17. Replies
    15
    Views
    1,419

    Re: Adding Object to ArrayList

    it is in the Book class. where in the Book class extends my library class. yes it compiles with no errors.
  18. Replies
    15
    Views
    1,419

    Re: Adding Object to ArrayList

    newBook.addItem(Integer.parseInt(idTF.getText()), dateTF.getText(), descriptionTF.getText(), Integer.parseInt(copiesTF.getText()),
    titleTF.getText(), newBook.getAuthor(),...
  19. Replies
    15
    Views
    1,419

    Re: Adding Object to ArrayList

    how should i do that?

    the add method? you mean like this? "newBook.add(new Book(args))"???
  20. Replies
    15
    Views
    1,419

    Re: Adding Object to ArrayList

    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...
  21. Replies
    15
    Views
    1,419

    Re: Adding Object to ArrayList

    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...
  22. Replies
    15
    Views
    1,419

    Adding Object to ArrayList

    import java.util.*;
    import javax.swing.*;
    public class Library
    {
    int id;
    String date;
    String description;
    int copies;
    String title;
    int bookCount;
  23. Replies
    0
    Views
    1,040

    Library Holdings

    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
    *
    *...
  24. Replies
    3
    Views
    1,359

    Re: Math.random() with no duplictaes

    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...
  25. Replies
    3
    Views
    1,359

    Math.random() with no duplictaes

    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...
Results 1 to 25 of 47
Page 1 of 2 1 2