Well as the code in your for loop is adding onto the String, not replacing, its going to add the value onto the String quite a few times:
newString = newString + String.valueOf(number.charAt(i));
...
Type: Posts; User: newbie
Well as the code in your for loop is adding onto the String, not replacing, its going to add the value onto the String quite a few times:
newString = newString + String.valueOf(number.charAt(i));
...
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class ScientificNotation extends JFrame {
private JTextField...