Java String Underscore underscore(String field)

Here you can find the source of underscore(String field)

Description

underscore

License

Open Source License

Declaration

public static String underscore(String field) 

Method Source Code

//package com.java2s;

public class Main {
    public static String underscore(String field) {
        return field.replace(' ', '_').replace('.', '_');
    }/*from  www.  j ava  2s.  com*/
}

Related

  1. toUnderscores(String s)
  2. toUnderscoreSeparated(String name)
  3. underscore(final String s, final Locale locale)
  4. underscore(String camel)
  5. underscore(String camelCaseWord)
  6. underscore(String phase)
  7. underscore(String str)
  8. underscore(String word)
  9. underscoreAllWhitespace(String str)