Jump to content


Check out our Community Blogs

mindhackerzz

Member Since 19 Sep 2012
Offline Last Active Private
-----

Posts I've Made

In Topic: create windows dll in java

23 September 2012 - 11:48 AM

You can create Executable JAR file (a portable one) in Eclipse. Select the project and Go to
File --> Export --> Executable Jar file and then select the name of Main class you want to export.

Cheers :)

In Topic: How to stop IIS to run XAMPP?

22 September 2012 - 03:59 AM

Hi Ehsan,

You can stop IIS as following Go to

Control Panel -> All Control Panel Items -> Programs and Features

select 'turn windows features on or off' and then unchecked the 'Internet Information Services'

Press okay and restart the system. Now you can start XAMPP server.

Cheers

In Topic: Displaying Percentages of Columns in SQL

22 September 2012 - 03:46 AM

Hi Ahwoo,

I didn't get the percentage idea. but you can try this to count both columns as

With counts AS
(
    SELECT COUNT(column1) as column1,
				  COUNT(column2) as column2
    FROM table
)
   SELECT ROUND((column1-column2)/100, 2) as percentage
  FROM counts
   

In this way you can calculate the average difference.

Cheers :)

In Topic: User Input && select Data Type && JAVA

22 September 2012 - 03:13 AM

Hi Pally,

There is no data type in JAVA which hold any type of data. Only 'object' can be used to hold any kind of data. Which then can be type cast to any other data type.

If you want to hold data type of string, int & double in one variable try to use data type String
which you can later on convert it to double or int.

For example,

String input; //take input in it.

Use this to convert it to int value
Integer.parseInt(input);

or to convert it to double value, use following
Double.parseDouble(input);

Cheers

In Topic: Grid With Mysql

21 September 2012 - 12:23 AM

Try using List instead of vector. that is more specific datatype then vector.

Try out this one may solved you problem.

List<List<String>> data = new ArrayList<list<String>>();

List
<String> d;
while(rs.next())
{
d = =new ArrayList<String>();
d.add(rs.getString("id"));
d.add(rs.getString("name"));

d
.add("\n\n\n\n\n\n\n");
data.add(d);
}

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download