Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static String __getNextWord(String s, int pos) {
        int i = 0;
        StringBuilder sb = new StringBuilder();
        while (pos + i < s.length()) {
            char c = s.charAt(pos + i);
            if (Character.isLetter(c)) {
                sb.append(c);
            } else {
                break;
            }
            i++;
        }
        if (sb.length() == 0)
            return null;
        return sb.toString();
    }
}