User Profile

Collapse

Profile Sidebar

Collapse
svpriyan
svpriyan
Last Activity: Aug 21 '09, 09:16 PM
Joined: Apr 6 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • svpriyan
    started a topic how to add elements in 2D array
    in Java

    how to add elements in 2D array

    I have the inputs to the 2D array,


    n will be given every time as an input

    Code:
    prod id =n
    for( row=0;row<10;row++) {              	
                	year2007[n][row] =  tot;
                   }
    when i run the display method
    i dont get the
    coulmn number ? any 1 helps me
    See more | Go to post

  • Sqlcode=-805, sqlstate=51002

    i gave this in the prompt
    prompt >db2 bind @db2cli.lst blocking all grant public sqlerror continue CLIPKG 5

    i got an error like:

    Db21061e command line enviroment not initialized.


    wha to do with
    See more | Go to post

    Leave a comment:


  • How can i store the value returned by sql statement in a variable.

    Hai,
    I have two columns called income and tax in DB2 database . now i wanted to retrieve both two columns using java and do subtraction and store them in a column called net pay.
    i got some hint like ,first i have to retrieve 2 columns records and store them in variables and then do calculation. is this way i have to do.
    any hints please
    priya
    See more | Go to post

  • svpriyan
    replied to search a file in java in a directory
    in Java
    I read and i coul dnot make it success, as i am new to java.
    See more | Go to post

    Leave a comment:


  • svpriyan
    started a topic search a file in java in a directory
    in Java

    search a file in java in a directory

    Hai
    I was trying couple of hours with searching a file in a dir.

    could you please suggest/ give me some link/forum discussed to complete my work. i really messed up with this search
    thanks
    See more | Go to post

  • svpriyan
    replied to Merging/Appending two file in java
    in Java
    hai,

    Actually its a query result which is stored in a file. query was executed with IBM DB2.

    we don't need to worry about the content of the file that much. its just textual.
    if you can give more suggestions with my code which i have given, might help me in get in further.
    thnaks
    See more | Go to post

    Leave a comment:


  • svpriyan
    replied to Merging/Appending two file in java
    in Java
    hai,
    i able to come up to this part, and now i am worried where to give the file names.
    if this part is ready, then we can move to the directory part.


    Code:
    
    mport java.io.*;
    import java.io.FileInputStream;
     
    public class CopyFile{
    	private static void copyfile(String srFile, String dtFile){
    		try{
    			File f1 = new File(srFile);
    			File f2 = new
    ...
    See more | Go to post

    Leave a comment:


  • svpriyan
    replied to Merging/Appending two file in java
    in Java
    NetBeans IDE 6.5

    the format looks like...
    See more | Go to post

    Leave a comment:


  • svpriyan
    replied to Merging/Appending two file in java
    in Java
    Thanks for messages.
    i have 100s of files in Dir1 & Dir2. but they have same files, but contents are different. files have extension of *.ixf.

    I l explain here
    1- Read the contents of file1 which is in Dir1
    2- Read the contents of file2 which is in Dir2

    then add the contents of the file2 to the end of he file1 which is in Dir1.

    i tried some codes, which is not successful. if you...
    See more | Go to post

    Leave a comment:


  • Read file from directory, update contents of the each file

    hai,
    I could not understand how to debug the error i have now.
    target
    1- read the files from directory // i able ot do this part
    2- for each file
    for each file read the content & compare with the existing List & update the list // i able to do this part

    when i try to combine both parts , i got some following error


    i can see from the code that children[...
    See more | Go to post

  • svpriyan
    started a topic Read files from a directory
    in Java

    Read files from a directory

    Hai Implemented a code that will read the 100s of files from a directory.
    Each time when i read a file , i will take that file and check the content of the file( i put them in to a List )and compare with the original List and if there is a different, then i update the array List with write function.
    this is what i need
    but i get error when i run the code, i coul dread only one file, later it stopped. it does not read the...
    See more | Go to post

  • svpriyan
    replied to Merging/Appending two file in java
    in Java
    it does not matter, any two files. i wanted to append one to another.
    See more | Go to post

    Leave a comment:


  • svpriyan
    started a topic Merging/Appending two file in java
    in Java

    Merging/Appending two file in java

    Hai friends,
    I have two .ixf files
    My intention is to merge/ Append both to one.
    Could any one help me to find a way. i tried this forum though i coud not find anything yet.
    Thanks
    Priyan
    See more | Go to post

  • svpriyan
    started a topic Find Weeknumber for a Given Date
    in Java

    Find Weeknumber for a Given Date

    Hai Buddies,
    In my data, i have starting date from jan 25th 2007 to june 2008. seems more than 1 year.
    I wanted to put week number for each of this week starting like week1 , week2.., Now i got confused after 52 weeks, it will be week53 not week1 again.
    Could any1 help me to find a good idea for me
    See more | Go to post

  • svpriyan
    replied to Error in the java Code
    in Java
    Ok, Thanks
    I will look on it.
    But when i replace this code to the LoadData()
    ==
    private void loadData(){
    myData.add(new Book("Head First Java", "Kathy Sierra .. etc","Java 1.5"));
    myData.add(new Book("Head First Design Patterns", "Kathy Sierra .. etc","Java Architect"));
    }

    ==
    I did not get generated output. do u have any ...
    See more | Go to post

    Leave a comment:


  • svpriyan
    replied to Error in the java Code
    in Java
    Hai
    thanks for your reply
    My main idea is :
    I have a txt file which already has data. and i willing to read that and generate an XML file

    Now i am in problem with reading the TXT file only.// loadData() Method.

    I need some suggestions for that to solve
    See more | Go to post

    Leave a comment:


  • svpriyan
    replied to Error in the java Code
    in Java
    Thanks for the Information, sure, next time i will do it in that way.
    Yea i able to get the code work,
    though still my problem exists with the Reading file in the loadData() Method. because Book.java does not have any method to satisfy the call from load data.

    How can i solve that, if u can .. please kind enough to give some idea.
    See more | Go to post

    Leave a comment:


  • svpriyan
    started a topic Error in the java Code
    in Java

    Error in the java Code

    Dear Buddies,
    I have two Java Prog:

    My task is to read the Content of the file and write to an XML file.
    so i started doing it perfectly...
    What i have problem is when i tried to execute the main class, i am not able to reach the book class yet. it says like this

    My error comes under loadData() method.

    cannot find symbol
    symbol: Constructor book(java,lang, String)
    ...
    See more | Go to post
No activity results to display
Show More
Working...