7 Topics

Member Avatar for
Member Avatar for Saboor880

Hi to All! I have a POS Software which I have developed in Java, NetBeans IDE. I am deploying this software on a variety of Windows Computers / Laptops for 5 years. I have used JFormattedTextFields for double data type in the whole Software. And I have set Format of …

Member Avatar for Стас_1
0
87
Member Avatar for chdboy

I am trying to update with this code Result.updateInt("bank_ac_no",Integer.parseInt(acnotxtfield.getText().trim())); //this is the line I'm getting error. Here is the Trace java.lang.NumberFormatException: For input string: "2737383928291819" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:495) at java.lang.Integer.parseInt(Integer.java:527) What's wrong?

Member Avatar for chdboy
0
2K
Member Avatar for ambageo

Hi! I'm having a project where I must give 2 integers and divide them. I must use the NumberFormatException to make sure that those two numbers are only integers( and display a message when they aren't) and the ArithmeticException to make sure that the can be divided (and display amessage …

Member Avatar for ambageo
0
119
Member Avatar for rahul pareek

if i divide a float value from 0 then i get output:- infinity and then throws NumberFormatException why can anybody favour me.

Member Avatar for JamesCherrill
0
77
Member Avatar for mcddewitt

Hello I am having trouble converting a long (cents) into currency format. My Code: l long doublePayment = 1099; //Should equal $10.99 DecimalFormat dFormat = new DecimalFormat(); String formattedString = dFormat.format(doublePayment); System.out.println(formattedString); Output: 1,099 I also tried: long doublePayment = 1099; NumberFormat n = NumberFormat.getCurrencyInstance(Locale.US); String s = n.format(doublePayment); System.out.println(s); …

Member Avatar for JamesCherrill
0
168
Member Avatar for TTTHXC

i have a program that converts a text string into a hash sequence using parseInt(). but parseInt() keeps throwing a NumberFormatException. any ideas why? is it becuase i'm using <= instead of = in my for loop? EDIT: ingnore r. it's not being used. sorry. package test; import java.util.Random; import …

Member Avatar for JamesCherrill
0
258
Member Avatar for rowen17

hi guys, im trying to loop a variable using 00 format.. ex. 01,02,03,04.......31 im going to use this for my dropdown of date. thanks!

Member Avatar for eXpertPHP
0
85

The End.