Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (roots == "0.000003") {
- System.out.println("There are no real roots!");
- } else {
- // Get the real roots
- for (int i = 0; i < roots.length(); i++) {
- // get the first number
- while (roots.charAt(i) != ' ') {
- firstNumba = firstNumba + roots.charAt(i);
- }
- // get the second number
- if (roots.charAt(i) == ' ' || continues == true) {
- // add one to get the next number
- i++;
- secondNumba = secondNumba + roots.charAt(i);
- continues = true;
- }
- }
- // System.out.println("The real roots are " + letters.getRoots());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement