fioana elegant

Greenhorn
+ Follow
since Oct 06, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by fioana elegant

how can i sort a csv file having msisdn (phone numbers)???

example:
9999912345
9999912354
9932445566

need to b sorted like
9932445566
9999912345
9999912354
10 years ago

where base is file having all numbers and dnd file have numbers to be excluded
i am not able to understand how this program is comparing numbers and whether all numbers in dnd file are compared or not.
only first number is checked in dnd file instead of all new line separated numbers.
can someone help in finding bug???
10 years ago
if you are getting output like

E:\loginexample\abc.txt
E:\loginexample\abcd.txt
E:\loginexample\abcef.txt

then you can extract filename by substring function
take starting index 0 to lastIndexOf(\)

or

you can use

10 years ago
i need some solution in simple ms-dos batch file...we can not use functions in it..
10 years ago
need to make a batch file in which we
traverse files in directory like D:\ named like base_pre_promo.csv,base_post_promo.csv
1) if it has pre in its name then data will be loaded in database in pre table
2) 1) if it has post in its name then data will be loaded in database in post table.
10 years ago
what will be the path of this out.txt???
prob is to write comma separated fields in file
m trying 2 resolve it..........
10 years ago

that i know.i will reteive data using a select * query but m not so good in file handling.so,i dont know how to write data in comma separated values

Sebastian Janisch wrote:You could

1. Download JDBC and write an implementation to connect to the db

2. Download JDBCSupport (see link below), which sets all this up for you and provides a useful interface

This enables you to pull data out of the databse, all that is left what you want to do with them.

10 years ago
i have following columns in table "tbl_url_response"
campaignId,msisdn,urlResponse,transactionId,chargingPath.

i need to write data from this table into a csv file including column headers.

can some1 help???
10 years ago
how can i store result of queue.poll in arraylist???

ArrayList<UrlResponseBean> arrurlInfo = null;
public static ConcurrentLinkedQueue<UrlResponseBean> queue = new ConcurrentLinkedQueue<UrlResponseBean>();

public void run() {
arrurlInfo = new ArrayList<UrlResponseBean>();
while(true)
{
if(queue.size()>=5)
{
for(int i=0;i<queue.size();i++)
{
arrurlInfo=queue.poll();
insertIntoDb(arrurlInfo);
}
}

}
}
10 years ago

public class test {
public static void main(String[] args)
{
float minutes=92.2f;
double hour=Math.floor(minutes/60);
double min=Math.floor(minutes%60);
String time2=hour+":"+ min;
System.out.println("######################"+hour);
System.out.println("######################----"+min);
System.out.println("######################---------"+time2);

}


}
output is 1.0
32.2
but i need 1:32 as final output
can someone help???
10 years ago

public class test {
public static void main(String[] args)
{
float minutes=92.2f;
double hour=Math.floor(minutes/60);
double min=Math.floor(minutes%60);
String time2=hour+":"+ min;
System.out.println("######################"+hour);
System.out.println("######################----"+min);
System.out.println("######################---------"+time2);

}


}
output is 1.0
32.2
but i need 1:32
can someone help???
10 years ago
using this method do i need to mention 3rd file path for merged file???m confused how to pass different file path..please help
10 years ago
thanks for your reply.i need csv file in the end instead of zip file
10 years ago
how can we merge content of two zip files,placed inside two different folders??
10 years ago