Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: [OT] Re: missing import java.lang.Comparable Date: Sat, 23 Jul 2016 21:23:27 -0400 Organization: Aioe.org NNTP Server Lines: 43 Message-ID: References: <6cbiob184r55h86pg11p45gkkmg4c877tu@4ax.com> NNTP-Posting-Host: 7SK6yTFfqwlIPNBLl3l7Qg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:35116 On 7/23/2016 10:25 AM, Jerry Stuckle wrote: > On 7/22/2016 11:34 PM, Arne Vajhøj wrote: >> On 7/21/2016 3:57 PM, Jerry Stuckle wrote: >>> That still doesn't answer by question. Let's see some Java code with >>> BigDecimal working with a Decimal field in a database. Something like >>> 12 places left of the decimal point and 6 places to the right. >> >> It is not very obvious what you want to see. >> >> You take the most basic Java program using JDBC you can think of >> and then you use DECIMAL in database and BigDecimal in Java instead of >> INTEGER in database and int in Java. >> >> There is nothing to it. >> > > Then you should have no problem providing a working example. No. But why should I? This is very basic Java programming problem. In CLJP it is not common to write complete code for problems that are basic Java for beginners. Students should do their own homework. Study the available material and make an attempt before asking for help. In this case you seems to have the role of a student needing help with basic database programming in Java. You should try and write the code yourself. If you can't get it to work, then post the code here with a description of the error you get and we will provide guidance on how to solve the problem. Arne