• Member Avatar for milil
    milil

    Began Watching How to connect mysql database thorough API

    I'm trying to connect mysql database through API, and I'm using the following coding. I could't get the proper access to the database. Do I need to create a JDBC …
  • Member Avatar for milil
    milil

    Replied To a Post in How to connect mysql database thorough API

    I think that is better to create servlet in java and just send it to him a user and password, or maybe problem is in your password, i don't think …
  • Member Avatar for milil
    milil

    Began Watching PairTest Program

    Needing some help with a small problem. I have this program that is not compiling correctly. The instructions are simple which are: The PairTest should prompt the user for the …
  • Member Avatar for milil
    milil

    Replied To a Post in PairTest Program

    Problem is because you do this: num1 = null; num2 = null; and you are calculating average with two null's you can't do that. You need to do like this: …
  • Member Avatar for milil
    milil

    Began Watching how do i package mysql-connector.jar within my own jar

    I'm packaging my java program as a jar..it includes mysql-connector.jar..it runs fine when i run it in eclipse..now i need to distriute the jar file..I packaged the jar file and …
  • Member Avatar for milil
    milil

    Replied To a Post in how do i package mysql-connector.jar within my own jar

    You just go on your program you want to build as .jar. Go File>Export>Runnable Jar and then you have options how to pack it... Find what you want and it …
  • Member Avatar for milil
    milil

    Stopped Watching PostFix Evaluator

    Hi all - I am writing a program that uses two classes: One class is the InfixtoPostfix, which is actually the class that changes expressions from infix to postfix. (Example: …
  • Member Avatar for milil
    milil

    Began Watching ActionListener for a cell in a JTable which has been typed on

    Hello. I want to be able to create a listener for a cell in my JTable. Whenever write a number in a JTable (every key release) I want the value …
  • Member Avatar for milil
    milil

    Replied To a Post in ActionListener for a cell in a JTable which has been typed on

    You need to make JTable with DefaultTableModel and AbstractTableModel and you have methods like: public void fireTableChanged(TableModelEvent e) - Forwards the given notification event to all TableModelListeners that registered themselves …
  • Member Avatar for milil
    milil

    Began Watching Running class file from outside package directory structure

    Hi Team, Im preparing for OCJP and in one of the sample question is below Three version of MyClass.class exist on a file system 1. /foo/bar/ 2. /foo/bar/baz 3. /foo/bar/baz/bing …
  • Member Avatar for milil
    milil

    Replied To a Post in Running class file from outside package directory structure

    Hmm, no, answer is correct. You can watch that as Folders in MyComputer, You have C:\ then you have User\ then you have Smile\ then you have Movies\ so your …
  • Member Avatar for milil
    milil

    Began Watching How do I start using java APIs and dependency packages

    I have a studied java and self taught on netbeans. i would like to use open source APIs and packages for writing heuristics and machine learning programs but dont know …
  • Member Avatar for milil
    milil

    Replied To a Post in How do I start using java APIs and dependency packages

    Hmm, if you want to use someone's code you need that .jar package. For example if you want to read email in Java you need mail.jar. From mail.jar you get …
  • Member Avatar for milil
    milil

    Began Watching how to search for a value exists or not int vector

    my code: class A{ Vector<String> s = new Vector<String>(); } public class Vec { /** * @param args the command line arguments */ public static void main(String[] args) { A …
  • Member Avatar for milil
    milil

    Replied To a Post in how to search for a value exists or not int vector

    You can do like this: for (int i = 0; i< vecA.size(); i++) { A newA = vecA.elementAt(i); // you get clas A Vector newVector = newA.s; // you grab …
  • Member Avatar for milil
    milil

    Began Watching Strange Hibernate select statement

    Im using hibernate and i tried to do the following session.get(Company.class, 1); After i executed the statement above i got this strange select statement generated by hibernate Hibernate: select company0_.Company_ID …
  • Member Avatar for milil
    milil

    Replied To a Post in Strange Hibernate select statement

    You dont use it well, try like this: Session session = HibernateUtil.getSessionFactory().getCurrentSession(); session.beginTransaction(); List<Company> lista = new ArrayList<Company>(); Criteria crit = session.createCriteria(Company.class); if (true){ // you can add restriction like …
  • Member Avatar for milil
    milil

    Began Watching Exception handling(Doubt)

    Hey Guys, could you tell me the different ways to write throw method (Exception Handling) in a program.. I mean like we can write BufferedReader in many ways (2 ways …
  • Member Avatar for milil
    milil

    Replied To a Post in Exception handling(Doubt)

    You can do it in try block: try { } catch (Exception e) { e.printStackTrace(); } Or you can add on method throws IOException or what exception you need to …
  • Member Avatar for milil
    milil

    Replied To a Post in java and orcale database

    I didn't work with NetBeans I use Eclipse so i never look at service tab... Do you work with Glassfish Derby local database? If you don't work with it you …
  • Member Avatar for milil
    milil

    Began Watching PostFix Evaluator

    Hi all - I am writing a program that uses two classes: One class is the InfixtoPostfix, which is actually the class that changes expressions from infix to postfix. (Example: …
  • Member Avatar for milil
    milil

    Replied To a Post in PostFix Evaluator

    Hmm that is tricky one, because you don't know how much variable need to be assigned, you can build it like compailer, with toknes and grammar but that is complicated. …
  • Member Avatar for milil
    milil

    Began Watching java and orcale database

    I've created connection on java when I run the programe I get successful message , however in the service tab next to the project tab I can't see the my …
  • Member Avatar for milil
    milil

    Replied To a Post in java and orcale database

    Why do you need to see it? Maybe you program terminates after executing that code so you can't see it if your program is not working. If you are connected …
  • Member Avatar for milil
    milil

    Began Watching Increase the quality of content

    How can I increase the quality of content of people who post here, or in any forum, for that matter? It seems that so many people who post in these …
  • Member Avatar for milil
    milil

    Replied To a Post in Increase the quality of content

    Hmm first of all you biggest problem is that you don't have qualified people. I just take a look on Java forum, they can't give proper answer because they don't …
  • Member Avatar for milil
    milil

    Replied To a Post in why i'm getting this error of HTTP Status 500

    That error is when you make Jasper Report, I think that when you create Jasper file you didn't go in options and set proper language, for default it is groovy …
  • Member Avatar for milil
    milil

    Replied To a Post in Add em up project

    I will do it in different way, use split(" ") method to split the input in array so you get something like this {"8","+","33","+","1345","-","137"} then u can use "switch" with …
  • Member Avatar for milil
    milil

    Replied To a Post in Servlet program error

    I think that you must add all that values in SQL Querry not just: pstmt.setString(1,"NAME"); pstmt.setString(2,"USN"); Because you have someting like this: email = ; What is values for email? …
  • Member Avatar for milil
    milil

    Replied To a Post in Create JSP Page on Condition (Conditional JSP)

    You can use JSTL tag library. Import it: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> and then you can call "if" method from taglib: <c:choose> <c:when test="${ok}"> ... </c:when> <c:otherwise> ... </c:otherwise> </c:choose> …
  • Member Avatar for milil
    milil

    Replied To a Post in Java Mail API problem

    There is a problem with mail.jar for Java. I have the same problem and I found solution, for android you need different mail.jar. You can read it all on this …
  • Member Avatar for milil
    milil

    Replied To a Post in Sorting three integers

    Hmm there is a good example of 3 different algorithms for sorting. You can learn about that algorithms on this [link](http://hiddensciencex.blogspot.com/2014/02/best-algorithms-for-sorting-arrays-java.html).

The End.