Search:

Type: Posts; User: priya456

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: JDBC - The data does not go out in the table

    it is a very good idea to list the columns into which you are inserting explicitly in your INSERT statement:

    String insert = "insert into table1 (col1, col2) values('p0',...
  2. Replies
    3
    Views
    819

    Re: JOPtionPane error

    you can pass any JComponent as Object in the conctructor for JOptionPane,

    in your case is there null value - JOptionPane.showMessageDialog(null, "ErrorMsg", for example
    ...
  3. Replies
    2
    Views
    874

    Re: EMBEDDED derby/javaDB connection problem

    The root directory doesn't load, find the location on the Database, eg C:\Users\xxx.netbeans-derby\dataBaseName copy it and paste it as the database Java DB(Embedded) name. Your new JDBC URL: is now...
  4. Replies
    3
    Views
    1,263

    Re: why should we declare checked exceptions?

    The Exception which are checked by compiler for smooth execution of the program at runtime are called Checked Exception. In the case of Checked exception, compiler will check whether we are handling...
  5. Replies
    4
    Views
    1,008

    Re: Java vs Groovy

    Java and Groovy both are JDK based languages . Java is strongly and statically typed language whereas Groovy is dynamically and optionally typed language .
    The best things about groovy is that Since...
  6. Replies
    2
    Views
    642

    Re: Advantage of Hibernate over JDBC

    Developer has to write code in JDBC to map an object model's data representation to a relational data model and its corresponding database schema.

    The mapping of Java objects with database...
  7. Replies
    1
    Views
    496

    Re: Netbeans vs Command prompt

    If you click build inside NetBeans, it should give you (in your compiler output) a message like, "To run this application from the command line without Ant, try: java -jar yourPathToRun"
  8. Replies
    3
    Views
    443

    Re: Splitting operators

    Splits a string into parts based on a regex and stores it into an String array. The regex is a string used to determine where to split the bigger string. For example, to extract individual words from...
  9. Replies
    5
    Views
    767

    [SOLVED] Re: JDBC database connection problem

    If you are connecting with service name you should put / before service name

    jdbc:oracle:thin:@hostname:port/service_name

    if you are connecting with sid you should put : before sid
    ...
  10. Re: Find the the original indices of the sorted aray

    Before you sort the array use a map to store original indexes of your array elements as follows.

    String[] item = { "B", "C", "D", "A" };
    Map<String, Integer> map = new HashMap<String, Integer>();...
  11. Replies
    4
    Views
    3,805

    Re: javafx collision detection (simple)

    Try something like this - it adds a flag so that the routine does not "forget" that a collision was detected:

    private void checkBounds(Shape block) {
    boolean collisionDetected = false;
    for...
  12. Thread: Star Pattern

    by priya456
    Replies
    4
    Views
    718

    Re: Star Pattern

    Pattern programme :

    c*** code removed
  13. Replies
    2
    Views
    909

    Re: adding jar files in Eclipse

    Adding external Jar is not smart in case you want to change the project location in filesystem.

    The best way is to add the jar to build path so your project will compile if exported:

    1.Create a...
  14. Replies
    6
    Views
    6,970

    Re: Multiple Threads with different tasks

    Multithreading extends the idea of multitasking into applications, so you can subdivide specific operations within a single application into individual threads. Each of the threads can run in...
  15. Thread: JSF Framework

    by priya456
    Replies
    5
    Views
    937

    Re: JSF Framework

    JSF is nothing but an abstraction over the existing Web Framework. JSF is implemented as a Servlet which is called the Faces Servlet. Before the advent of JSF, Servlets and JSP are the predominant...
  16. Replies
    2
    Views
    451

    Re: Java and JDOM2

    JDOM is an in-memory XML model that can be used to read, write, create and modify XML Documents. JDOM is designed only for Java and uses the natural Java-specific features that the DOM model avoids.
  17. Replies
    6
    Views
    3,689

    Re: Benefits of Eclipse?

    The ability of an IDE to know a language’s keywords and function names is crucial. The IDE may use this knowledge to do such things as highlight typographic errors, suggest a list of available...
  18. Replies
    5
    Views
    1,313

    Re: java.io.EOFException

    The best way to handle this would be to terminate your infinite loop with a proper condition.

    But since you asked for the exception handling:

    Try to use two catches. Your EOFException is...
  19. Replies
    4
    Views
    607

    Re: Look for hosts in LAN network

    I always use nmap. To scan for all devices in your network, use:

    nmap -sP 192.168.0.1/24

    It is a great tool to have in the know. You may want to install nmap using:

    sudo apt-get install nmap...
  20. Replies
    4
    Views
    1,006

    Re: Byte Stream to String Conversion

    import java.io.UnsupportedEncodingException;


    public class CrunchifyByteArrayToString {
    public static void main(String[] args)
    {
    String testString = "Crunchify Example on Byte[] to...
  21. Re: Which should i go through 1st(servlets or JSP)???

    I'll suggest you to learn servlets first wherein you have two separate files, one for front-end and the server side file. Once you get the knowledge of HttpServletRequest and Response, it'd be easier...
  22. Replies
    3
    Views
    8,325

    Re: what is ... (triple dot) operator

    The spread operator allows you to expand an expression in places where you would expect multiple arguments (in functions) or multiple elements (in arrays).

    let someArguments = ['hi','bye'];
    ...
  23. Replies
    5
    Views
    2,432

    Re: Iterating over collections in Java 8

    Using an Iterator to iterate over a List of strings.


    List names = new LinkedList();

    // ... add some names to the collection

    Iterator i = names.iterator();
    while (i.hasNext())
    {
  24. Replies
    8
    Views
    8,010

    Re: Creating an Antivirus in Java.

    I don't think that sort of control is possible with Java, primarily because it uses a VM and is shielded from the OS. Or rather the OS is shielded from the Java VM. This is by design.

    Edited to...
  25. Replies
    5
    Views
    694

    Re: Programming an IOS app wtih eclipse

    Yes you can use eclipse to develop android app, I don't know about ios apps. Java is the default or recommended language for Android app development. So don't need to worry about cross platform setup...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4