Because Microsoft does not disclose the source code of the word, the consequence of Directly Reading the word using the Java stream is that all the source code is garbled. So you must use Jacob's intermediate bridge. Of course, it can also be read using poi.Let's talk about how to use poi to read data. With poi read, first download tm-extractors-0.4.jar Baidu can be found. The Code is as follows:Import org. textmining. Text. extraction. wordextractor;
New SimpleDateFormat ("ddmmmyyyy"= Oldformat.parse (str);Java API:SimpleDateFormatSimpleDateFormat (String Pattern,locale Locale)
Constructed with the given pattern and the default date format symbol for a given locale
SimpleDateFormat .
Note: This construction method may not support all locales. To overwrite all locales, use
DateFormat the factory method in the class.
It's so easy to use java to convert numbers in uppercase.
Often on business trips, often fill in invoices, sometimes the network is not good, the number is not enough
As a result, a portable small application was born.
That's right. I only want to make it convenient for a moment ~
There is a number 1314521.94
I want to convert to uppercase
But it is a lit
word| Program | Convert Jacob is a COM bridge under Java and Windows, through which we can invoke COM components in Java programs. If your JDK is 1.4, then you need to download Jacob1.9 's JNI library to work properly, and earlier versions have some problems with JDK1.4.
Package com; /***〈p〉title:word Document Turn HTML Cla
/*** Auxiliary class * is used to record characters and locations **/class charpos {char C; int Pos; Public charpos (char C, int POS) {This. C = C; this. pos = Pos ;}}
/*** Convert the number into uppercase characters **/public class cnnummaker {private string integerpart; // The integer part is private string decimalpart; // Private stack for fractional parts
O
Android JAVA string to date or date to string (to), androidjava
Usage: SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-dd HH: mm: ss ");
This line is the most important, it establishes the conversion format, yyyy is the complete year of the AD, MM is the month, dd is the date, as for HH: mm: ss
I don't need to explain it again!
PS: Why are some formats in u
In Java, string is the final class, which provides strings that cannot be modified, and string types are used frequently in projects, and the following are some common string data type conversions:
String data types are converted to seven data types long, int, double,
sometimes we don't want to use any framework, but we need The JDBC implementation is similar to Ibatis's ORM mapping function, transforms a resultset into our javabeans, we can imitate the ibatis way oneself writes a resultsetmapper realization class, Using the principle of reflection to convert resultset into a JavaBeans, the following is an open-source implementation of the Internet, the main use isAnnotationsAndReflectionMechanism, let's look at t
Convert the java decimal number (negative number supported) to the n-base (n is between [2, 36)
Public class DecimalTONBigit {/*** decimal number (which can be a negative number) to n (n is between [2, 36) hexadecimal * @ author wl */public static final int N = 36; // N indicates hexadecimal public static void main (String [] args) {int data = 71; // data indica
What is the difference between java String and android String ?, StringandroidThis is what Alibaba was asked during the telephone interview today. I did not think about it before (I always thought it was the same). So after the interview, I immediately opened the source code, the two String classes are compared. The fo
=string.valueof (i);//Use the static method of the String class only to produce an object The first method: i= Integer.parseint (s);//Use static methods directly, do not produce extra objects, but throw exceptions the second method: I=integer.valueof (s). Intvalue ();//integer.valueof (s) equals The New Integer (Integer.parseint (s)) also throws an exception, but produces more than one object ------------------------------------------------------- -
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.