Search:

Type: Posts; User: xeoric

Search: Search took 0.10 seconds.

  1. Re: Check string is integers only

    It was a file from the uni it contains some classes I would be using.
  2. Re: Check string is integers only

    import B102.*;
    import java.util.*;

    class Triangle
    {
    static boolean checkNumbersOnly(String input)
    {
    int i;

    //if no input or null set to false
  3. Java program to take input from a file as a string of 3 integers separated by a space

    I have a method in which I'd like to check that the input read from a file is a string of 3 integers sperated by a space.

    e.g

    123 456 789
    987 654 321

    etc

    My problem is when it retuns to...
Results 1 to 3 of 3