問題タブ [parseexception]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - String から Date を取得しようとすると ParseException が発生する
さて、このコードを実行すると ParseException が発生します。
Date date = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy").parse("Sun Dec 01 00:05:03 CET 2013");
エラーはどこにありますか?
java - Java で文字列を日付に変換する際の問題
Java で文字列の配列を Date 型に変換する必要があります。私はいくつかのサンプルコードを調べましたが、それらはすべて同じ単純なことを行うよう求めています。これは私がやっていることです:
問題はループ内の行にあります。「ParseException による未処理の例外」というエラーが表示されます。Eclipse は、それを try と catch ブロックで囲むことを提案し、私はそれを実行しました。現在は実行されていますが、dt 配列で取得している日付は、入力しているものと一致していません。2014 年 1 月 1 日から始まる何らかのデフォルト値を取得していると思います。
これが何であり、それを解決する方法を知っている人はいますか?
ありがとうございました!
android - Android - オフセットで解析できない日付
文字列の日付を日付に解析しようとしましたが、オフセットで解析できない日付が表示されます。これが私のコードです。
java - Parse Exception MaskFormatter
I'm trying to use MaskFormatter
with JFormattedTextField
.
Inside my class I have this line of code
When I compile, I get the ParseException
. The only way around it I found to create the instance of the MaskFormatter
inside the constructor of my GUI panel inside a try
block like this
I'd like the functionality of the MaskFormatter, but isn't there any way to instantiate it outside a method? Also, is there a better alternative to MaskFormatter
?
Edit: the sample code that doesn't work:
hadoop - Hive テーブル作成クエリでの MismatchedTokenException
次のクエリで Hive テーブルを作成しようとしています。
Hive に送信したときに、次の例外が発生しました。
Hive が正しくインストールされているので、テーブルの表示などを実行できます。では、このクエリの問題点は何でしょうか?