hui man

Greenhorn
+ Follow
since Dec 17, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by hui man

Hello, I have same problem.

store = session.getStore(mailProvider);
store.connect(mailServer, mailUsername, mailPassword);
Folder [] sharedFolders = store.getSharedNamespaces();
Folder [] abcfolder = sharedFolders[0].list();

sharedFolders[0] is "Public Folders/". abcfolder is empty. However, it should contain lots of subfolders. I want to know the way to check shared public folders. Could anyone help?
20 years ago
Could you please explain a bit more?
public static void main(String[] args) {
System.out.println(args[0]);
...
}
Now, if args[0] is in Chinese, how can I display it correctly using Locale class? Thank you.
20 years ago
java classname [arg1] [arg2] ... where argX contains non-english characters

i am now trying to run java command with non-english characters as arguments. the args[] array i get from main() cannot show those characters (it just shows "???"). how can i change the charset of system.in to utf8 before the program gets into main() so that i can get those characters correctly? please give me some suggestions. thanks!
20 years ago