<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" >
	<title>Javas Blogs global</title>
	<link rel="alternate" type="text/html" href="http://www.javasblogs.com/" />
	<tagline></tagline>
	<modified></modified>
	<generator url="" version="">BeVerbal RSS Feed Generator</generator>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Java Programming (Trees) - Help Please</title>
		<link rel="alternate" type="text/html" href="http://programming-java.javasblogs.com/article/51562609.html" />
		<modified>2008-11-13T12:38+00:00
		<content type="html" mode="escaped" xml:base="">***************************************************************************************Edit:To expand on this the output when trying to print out the tree&#039;s are null it is a &lt;a href=&#039;http://empty.wordblogs.net/&#039;&gt;empty&lt;/a&gt; []. This should contain the bit string in an ArrayList.***************************************************************************************
Hello. I am in a class where we have to create a Java programming implementing a tree. We are supposed to take two numbers (but right now I can&#039;t even get one to work) and convert it to a bit string (e g. 4: would be 00000100) but I am &lt;a href=&#039;http://having.marriedblogs.com/&#039;&gt;having&lt;/a&gt; some difficulty. I wrote this so far and was guided by the instructor to implement the tree in this manner. He also gave us another program &lt;a href=&#039;http://that.obscureblogs.com/&#039;&gt;that&lt;/a&gt; he said we could use to convert the number but it converts it to a string. Anyway. I am a little lost and I believe I am missing some parts in the &quot;private final static ArrayList generateTree( BigInteger[] vs int n int k )&quot; in the last for loop before the Ts add(T) part. Please if anyone could help me out in leading me in the right direction. I would greatly appreciate it. (I added some println statements throughout the program that I was using to help me out but I am still stuck.)import java math.*;import java util.*;import java io.*;import java lang.*;public class Tree { private int id; private BigInteger val; private Tree left; private Tree right; public Tree ( int id. String s ) { this id = id; this val = new BigInteger(s); } public Tree( int id. BigInteger val ) { this id = id; this val = val; } public Tree( Tree left. Tree right ) { this id = 0; this val = null; this left = left; this right = right; } public Tree( int id. String s. Tree left. Tree right ) { this( id s ); this left = left; this right = right; } public static ArrayList generateTree( int n ) { return generateTree( new BigInteger[n] ); } public static ArrayList generateTree( BigInteger[] vs ) { /*vs[0]=zero; vs[1]=one; vs[2]=two; vs[3]=three;*/ return generateTree( vs vs length. 0 ); } private final static ArrayList generateTree( BigInteger[] vs int n int k ) { ArrayList&amp;lt;Tree&amp;gt; Ts = new ArrayList&amp;lt;Tree&amp;gt;(); System out println(&quot;vs[k] = &quot;+vs[k]);System out println(&quot;n = &quot;+n);System out println(&quot;k = &quot;+k); if( n == 1 ) { Ts add( new Tree( k vs[k] ) ); } else { for( int i=1; i &amp;lt; n-1; i++ ) { ArrayList Ls = generateTree( vs i k ); ArrayList Rs = generateTree( vs i+1 k+1 ); System out println(&quot;hello&quot;); for( int l=0; l &amp;lt; Ls size(); l++ ) { for( int r=0; r &amp;lt; Rs size(); r++ ) { Tree T = new Tree((Tree)Ls get(l). (Tree)Rs get(l));  Ts add(T); } } } } return Ts; } public static final BigInteger zero=BigInteger valueOf(0); public static final BigInteger one=BigInteger valueOf(1); public static BigInteger bigones(int nbits) { return one shiftLeft(nbits) subtract(one); } public static BigInteger bignot(int nbits,BigInteger B) { return bigones(nbits) andNot(B); }  public static String big2string(BigInteger BI,int bits) { String s = BI toString(2); StringBuffer b = new StringBuffer(bits); int n = bits-s length();  while(--n &amp;gt;= 0) { b append(&#039;0&#039;); } b append(s); return b toString(); } public static final BigInteger nand(int nbits,BigInteger X,BigInteger Y) { X=X and(Y); return bignot(nbits,X); }  public static void main(String[] args) { InputStreamReader isr = new InputStreamReader( System in ); BufferedReader stdin = new BufferedReader( isr ); String inputOne = &quot;&quot;; String inputTwo = &quot;&quot;; try { System out print( &quot;Type some data for the program: &quot; ); inputOne = stdin readLine();  System out print( &quot;Type some data for the program: &quot; ); inputTwo = stdin readLine(); } catch (IOException e) { e printStackTrace(); } BigInteger A = new BigInteger(inputOne); BigInteger B = new BigInteger(inputTwo); //BigInteger C = nand(8,A,B); String AString = big2string(A,8); String BString = big2string(B,8); //String CString = big2string(C,8);  int input1 = Integer parseInt(inputOne); int input2 = Integer parseInt(inputTwo);  System out println(&quot;A=&quot;+AString); System out println(&quot;B=&quot;+BString); //System out println(&quot;C=&quot;+CString); Tree T1 = new Tree(input1,8); //Tree T2 = new Tree(input2,8);  ArrayList newT1 = T1 generateTree(input1); //ArrayList newT2 = T2 generateTree(input2);  //T1 generateTree(input1); //T2 generateTree(input2); //ArrayList newT1 = generateTree(8); //ArrayList newT2 = generateTree(input2);  //for(int m = 0; m &amp;lt; T1 size //Tree T = new Tree((Tree)Ls get(l). (Tree)Rs get(l)); System out print(&quot;newT1 = &quot;);System out println(newT1); //System out print(&quot;newT2 = &quot;);System out println(newT2);  //System out print(&quot;input1 = &quot;);System out println(T1 toString()); //System out println(&quot;input2 = &quot;+T2 toString());  //System out println(&quot;input1 = &quot;+T1 generateTree(input1)); //System out println(&quot;input2 = &quot;+T2 generateTree(input2));  //System out println(&quot;input1 = &quot;+generateTree(input1)); //System out println(&quot;input2 = &quot;+generateTree(input2)); }}Edited by: laughdat08 on Nov 14. 2007 5:39 PMEdited by: laughdat08 on Nov 14. 2007 5:41 PMEdited by: laughdat08 on Nov 14. 2007 5:43 PM&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5236679&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5236679&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Help!!!How to test Servlet?</title>
		<link rel="alternate" type="text/html" href="http://programming-java.javasblogs.com/article/51030129.html" />
		<modified>2008-01-01T21:06+00:00
		<content type="html" mode="escaped" xml:base="">how to evaluate servlet with the label below in method doPost or doGet,doPost(HttpServletRequest req,HttpServletResponse resp){DataInputStream dis =null;String data=&quot;&quot;;dis = new DataInputStream(req getInputStream());data=dis readUTF();// readInt(),readBoolean() ,etc may appliedSystem out println(&quot;data:&quot;+data);}if i label req getParameter(&quot;param&quot;); then i wrote test programm like this communicate setParameter(&quot;param&quot;,&quot;something&quot;);the servlet can get the value my question is ,how can i test the code above?how to set the input value so &lt;a href=&#039;http://that.obscureblogs.com/&#039;&gt;that&lt;/a&gt; the HttpServletRequest object can read the data?
Unless &lt;a href=&#039;http://otherwise.wordsblogs.com/&#039;&gt;otherwise&lt;/a&gt; licensed code in all technical manuals herein (including articles. FAQs samples) is provided under this.  &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5237613&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5237613&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Help!!!How to test Servlet?</title>
		<link rel="alternate" type="text/html" href="http://programming-java.javasblogs.com/article/51030130.html" />
		<modified>2008-01-01T21:06+00:00
		<content type="html" mode="escaped" xml:base="">how to test servlet with the label below in method doPost or doGet,doPost(HttpServletRequest req,HttpServletResponse resp){DataInputStream dis =null;String data=&quot;&quot;;dis = new DataInputStream(req getInputStream());data=dis readUTF();// readInt(),readBoolean() ,etc may appliedSystem out println(&quot;data:&quot;+data);}if i code req getParameter(&quot;param&quot;); then i wrote test programm like this request setParameter(&quot;param&quot;,&quot;something&quot;);the servlet can get the value my &lt;a href=&#039;http://question.wordsblogs.com/&#039;&gt;question&lt;/a&gt; is ,how can i test the label above?how to set the input determine so that the HttpServletRequest disapprove can construe the data?
Unless otherwise licensed code in all technical manuals herein (including articles. FAQs samples) is provided under this.  &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5237613&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5237613&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>jdbc connectivity</title>
		<link rel="alternate" type="text/html" href="http://programming-java.javasblogs.com/article/50247077.html" />
		<modified>2007-11-17T15:52+00:00
		<content type="html" mode="escaped" xml:base="">unexceptional: [Microsoft][ODBC Driver Manager] Driver&#039;s SQLAllocHandle on SQL_command_ENV failed
I have made database of &quot;microsoft ODBC for oracle&quot;
i undergo written the following code:- public static Connection getConnection() throws SQLException,IOException{ // String createString = null;try { categorise forName(&quot;sun jdbc odbc. JdbcOdbcDriver&quot;);  } catch(ClassNotFoundException e){ System out println(&quot;Could not load driver&quot;); } System out println(&quot;Initializing Connection To database&quot;); try {con = DriverManager getConnection(url,userid password); System out println(&quot;connection made&quot;);} catch(SQLException ex) {System err println(&quot;SQLException: &quot; + ex getMessage());}
stmt=con createStatement(); System out println(&quot;Loaded Driver&quot;);
Unless otherwise licensed code in all technical manuals herein (including articles. FAQs samples) is provided under this.  &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5237564&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5237564&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Confusing Constructor</title>
		<link rel="alternate" type="text/html" href="http://programming-java.javasblogs.com/article/49860075.html" />
		<modified>2007-11-03T13:40+00:00
		<content type="html" mode="escaped" xml:base="">Hi,Please see the following label snippet public categorise Confusing {  private Confusing(disapprove o) {  System out println(&quot;Object&quot;);  }  private Confusing(manifold[] dArray) {  System out println(&quot;manifold arrange&quot;);  }  public static cancel main(String[] args) {  new Confusing(null); //System out println(&quot;Class is &quot; +);  }}
The programs displays &quot;manifold array&quot; when it is executed. Why does the compiler treats null as a manifold array ?  I tried playing with code. If we dress the double[] constructor to just double thenprogram invokes the Object Constructor. Can anyone explain what is happeing &lt;a href=&#039;http://here.wordblogs.net/&#039;&gt;here&lt;/a&gt; ?ThanksSumukh
You undergo two overloaded methods in the snippet. Java chooses the most specific of the two overloaded methods ie private Confusing(manifold[] dArray) method. When you change parameter to manifold(primitive). Again java chooses the most specific overloaded method as private Confusing(Object o) as you are passing null.-Satish Patil&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5216407&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5216407&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Confusing Constructor</title>
		<link rel="alternate" type="text/html" href="http://programming-java.javasblogs.com/article/49860076.html" />
		<modified>2007-11-03T13:40+00:00
		<content type="html" mode="escaped" xml:base="">Hi,Please see the following code snippet public class Confusing {  private Confusing(Object o) {  System out println(&quot;Object&quot;);  }  private Confusing(double[] dArray) {  System out println(&quot;double arrange&quot;);  }  public static cancel main(arrange[] args) {  new Confusing(null); //System out println(&quot;categorise is &quot; +);  }}
The programs displays &quot;manifold arrange&quot; when it is executed. Why does the compiler treats null as a double array ?  I tried playing with code. If we &lt;a href=&#039;http://change.wordblogs.net/&#039;&gt;change&lt;/a&gt; the double[] constructor to just manifold thenprogram invokes the Object Constructor. Can anyone explain what is happeing here ?ThanksSumukh
You have two overloaded methods in the snippet. Java chooses the most specific of the two overloaded methods ie private Confusing(double[] dArray) method. When you change parameter to manifold(primitive). Again java chooses the most specific overloaded method as private Confusing(Object o) as you are passing null.-Satish Patil&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5216407&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5216407&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Receiving from RS232 --- Hyperterminal did it --- My Program not</title>
		<link rel="alternate" type="text/html" href="http://programming-java.javasblogs.com/article/49667428.html" />
		<modified>2007-10-28T11:40+00:00
		<content type="html" mode="escaped" xml:base="">I&#039;m trying to receive &lt;a href=&#039;http://data.createblogs.org/&#039;&gt;data&lt;/a&gt; from device which is sending data. Instead of getting:132133133135... I&#039;m getting:13133132331133133132133132131322.... I tried to solve the problem. But I&#039;m comfort confused
public categorise commListener implements SerialPortEventListener { public void serialEvent(SerialPortEvent event) { if(event getEventType()==SerialPortEvent. DATA_AVAILABLE) //Wenn Dateneingang vorhanden dann... { byte[] readBuffer = new byte[5];  try { while (in available() &amp;gt; 0) { int numBytes = in read(readBuffer); //holt Bytes in den readBuffer }  String dataValue = new String(readBuffer); //wandelt Bytes in String um System out create(dataValue); //println //gibt String aus } catch (IOException e) { System out println(&quot;Error: &quot; + e); } } } }
Read in your data one byte at a &lt;a href=&#039;http://measure.wordblogs.net/&#039;&gt;measure&lt;/a&gt; to retain proper cross platform byte order https://hyperview dev java net/obtain/browse/hyperview/www/comm/SerialHandler java?rev=1.5&amp;#38;believe=markup(T)
come up BugBunny,I try it with your solution. But I got no data. Well now I&#039;m still thinking about a race instruct? Could it be a go condition? But how do I fix that?I&#039;m glad that people loike you&#039;ll &lt;a href=&#039;http://help.wordblogs.net/&#039;&gt;help&lt;/a&gt; me thank you.
You mean if &lt;a href=&#039;http://this.gamblerblogs.com/&#039;&gt;this&lt;/a&gt; condition becomes true it isn&#039;t a race instruct?Okaynow you&#039;ll see I undergo fixed one failure but this is driving me crazy http://img374 imageshack us/my php?visualise=001gw4 jpgI tried to fix it without success.
Well the first time i try it. It doesn&#039;t run without errors. So the problem was still lying a few days on my desks without doing anything. I ordain try your link a back up time. I&#039;ll do say if this measure i&#039;m successfull.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5216413&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5216413&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Receiving from RS232 --- Hyperterminal did it --- My Program not</title>
		<link rel="alternate" type="text/html" href="http://programming-java.javasblogs.com/article/49667423.html" />
		<modified>2007-10-28T11:40+00:00
		<content type="html" mode="escaped" xml:base="">I&#039;m trying to receive &lt;a href=&#039;http://data.createblogs.org/&#039;&gt;data&lt;/a&gt; from device which is sending data. Instead of getting:132133133135... I&#039;m getting:13133132331133133132133132131322.... I tried to solve the problem. But I&#039;m still confused
public categorise commListener implements SerialPortEventListener { public void serialEvent(SerialPortEvent event) { if(event getEventType()==SerialPortEvent. DATA_AVAILABLE) //Wenn Dateneingang vorhanden dann... { byte[] readBuffer = new byte[5];  try { while (in available() &amp;gt; 0) { int numBytes = in read(readBuffer); //holt Bytes in den readBuffer }  String dataValue = new String(readBuffer); //wandelt Bytes in arrange um System out print(dataValue); //println //gibt String aus } surprise (IOException e) { System out println(&quot;Error: &quot; + e); } } } }
Read in your data one byte at a time to retain proper cross platform byte order https://hyperview dev java net/obtain/browse/hyperview/www/comm/SerialHandler java?rev=1.5&amp;#38;view=markup(T)
come up BugBunny,I try it with your solution. But I got no data. Well now I&#039;m still thinking about a go instruct? Could it be a race condition? But how do I fix that?I&#039;m glad that populate loike you&#039;ll &lt;a href=&#039;http://help.wordblogs.net/&#039;&gt;help&lt;/a&gt; me thank you.
You mean if &lt;a href=&#039;http://this.gamblerblogs.com/&#039;&gt;this&lt;/a&gt; instruct becomes true it isn&#039;t a go condition?Okaynow you&#039;ll see I undergo fixed one failure but this is driving me crazy http://img374 imageshack us/my php?image=001gw4 jpgI tried to fix it without success.
Well the first time i try it. It doesn&#039;t run without errors. So the problem was comfort lying a few days on my desks without doing anything. I will try your cerebrate a back up measure. I&#039;ll do answer if this time i&#039;m successfull.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5216413&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5216413&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Exception</title>
		<link rel="alternate" type="text/html" href="http://programming-java.javasblogs.com/article/49475983.html" />
		<modified>2007-10-23T15:35+00:00
		<content type="html" mode="escaped" xml:base="">Hello ingeminate: If an exception is &lt;a href=&#039;http://always.wordblogs.net/&#039;&gt;always&lt;/a&gt; handled using the throws clause then eventually the exception will propagate all the way back to the main method of the application. If the main method throws the exception and the exception actually occurs while the program is running then the program ordain come down http://pages cs wisc edu/~cs302/io/Exceptions html
If the main method throws the exception and the exception actually occurs while the schedule is running then the program ordain come down?!Why?
Since Java programs are executed by a Java interpreter having a program crash simply means that it terminates abnormally and prematurely. It doesn&#039;t mean that the Java interpreter ordain crash. In cause the interpreter catches any exceptions that are not caught by the schedule. The interpreter responds by terminating the program db
The text at the link you provided does not seem very accurate. I rfecommend to find &lt;a href=&#039;http://something.wordsblogs.com/&#039;&gt;something&lt;/a&gt; exceed. For example this is a very much questionable sentence: 
Until now any exception that occurred always resulted in a program crash.
For the few minutes it took me to check. I thought you were referring to the link I provided. In OPs link too the statement looks to be correct when taken in context. If the students had only so far been introduced to code that was &lt;a href=&#039;http://free.wordsblogs.com/&#039;&gt;free&lt;/a&gt; of &lt;a href=&#039;http://checked.wordblogs.net/&#039;&gt;checked&lt;/a&gt; exceptions then this particular material would be &lt;a href=&#039;http://their.wordblogs.net/&#039;&gt;their&lt;/a&gt; first introduction to exception handling and
Until now any exception that occurred always resulted in a program crash.
It is okay with your +if+&#039;s. I am sorry for having written something without deep investigation. If Until now refers to the given aim of the knowledge gained in the course then it is okay. If it is thought in the context of the history of computing then not. Edited by: BIJ001 on Sep 16. 2007 10:10 PM&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5216415&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5216415&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Milliseconds conversion problem</title>
		<link rel="alternate" type="text/html" href="http://programming-java.javasblogs.com/article/49289219.html" />
		<modified>2007-10-17T14:36+00:00
		<content type="html" mode="escaped" xml:base="">I am reading a date and time in the following format yyyy:dd:mm:hh:mm:ss from an xml and converting this value into milliseconds using schedule and GregorianCalendar. After successful conversion. I am constructing an sql query like the following select * from MYTABLE where measure&amp;lt;=milliseconds. My problem in the conversion is i am not getting the exact milliseconds which is stored in the database table named MYTABLE. In the database the column time is Number datatype. Can anyone furnish me a pointer?here is the code snippetwhere mm,dd,yyyy,hh,min and ss are int datatype.
mm = 8;dd = 10;yyyy = 2007;hh = 03;min = 25;ss = 24;Calendar c = 
+ c getTimeInMillis());val = 1189418124114L; 
// this is the value taken from database table. I be this value when i use mm = 8 dd = 10 yyyy = 2007 hh = 15 min = 25 and ss = 24
c setTimeInMillis(val);System out println(
Unless otherwise licensed label in all technical manuals herein (including articles. FAQs samples) is provided &lt;a href=&#039;http://under.wordsblogs.com/&#039;&gt;under&lt;/a&gt; this.  &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5216410&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5216410&lt;/a&gt;
</content>
	</entry>
</feed>