Search:

Type: Posts; User: newbie

Search: Search took 0.11 seconds.

  1. Replies
    14
    Views
    2,191

    Re: Why isn't this working?

    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));
    ...
  2. Replies
    14
    Views
    2,191

    Re: Why isn't this working?

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;

    public class ScientificNotation extends JFrame {

    private JTextField...
Results 1 to 2 of 2