Advertisement
droidus

Untitled

Sep 28th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1. if (roots == "0.000003") {
  2.             System.out.println("There are no real roots!");
  3.         } else {
  4.             // Get the real roots
  5.             for (int i = 0; i < roots.length(); i++) {
  6.                 // get the first number
  7.                 while (roots.charAt(i) != ' ') {
  8.                     firstNumba = firstNumba + roots.charAt(i);
  9.                 }
  10.                 // get the second number
  11.                 if (roots.charAt(i) == ' ' || continues == true) {
  12.                     // add one to get the next number
  13.                     i++;
  14.                     secondNumba = secondNumba + roots.charAt(i);
  15.                     continues = true;
  16.                 }
  17.             }
  18.             // System.out.println("The real roots are " + letters.getRoots());
  19.         }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement