谁能帮忙把这段JAVA代码转换成C#,非常感谢!今天结帐

hainan hainan 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
import com.travelsky.ibe.client.pnr.SellSeat;
import com.travelsky.ibe.exceptions.IBEException;
import com.travelsky.util.QDateTime;

public class Step_2_SellSeat {
public static void main(String[] args) {
try {
Date tktldt = QDateTime.stringToDate("20050819", "yyyymmdd");
Date dt = QDateTime.stringToDate("20050901", "yyyymmdd");
SellSeat ss = new SellSeat();
ss.addAdult("Test/Test");

String pnrNo = ss.commit();

System.out.println( pnrNo);
} catch (IBEException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
}
}

先谢谢各位了!!
...全文

相关推荐

C# to Java 代码转换工具

一个很强大的工具, 能将c#代码片段、文件甚至工程直接转换成java代码,并能彻底解决外部引用的DLL问题,最强的是支持c#工程的直接转换,生成的Java代码质量也很不错。软件已破解,去除了未注册版最多只能转换1000行的限制,亲测可用!压缩包内含帮助文档,不过由于软件的使用很简单,帮助文档基本可以忽略。(小提示:如无法运行,请确认是否安装了.NET framework) 下面是一些英文介绍: C# to Java Converter features include: 1. Folder conversion: Entire folders of C# code files are converted to Java code files.(文件夹转换) 2. Code snippet and file conversion: Our snippet conversion accuracy is outstanding and does not require you to insert entire methods or classes. Heuristics are used to convert code fragments wit h missing declarations. (代码片段和文件转换) 3. Full support for the latest .NET code syntax: Generics and other newer C# features are converted where possible to the Java equivalent.(全面支持最新版的.NET语法) 4. Conversion options: You can specify numerous conversion options via our Options dialog. Code formatting options, custom type & member replacements, custom string replacements, and miscellaneous options. (可以指定转换规则) 5. File comparison feature: After converting a project or folder, you can compare original and converted files side-by-side. Comparing converted code to original code.(原代码与转换后代码的比较) 6. Running from the command line: C# to Java Converter can be launched directly for a specific project, folder, or file conversion from the command line. Command line.(命令行执行) 其他一些特点: 1. Converts all versions of C# code (2002, 2003, 2005, 2008, and 2010) (可以转换所有版本的C#代码) 2. Evaluates all referenced assemblies and .NET projects in order to resolve external references more completely.(能彻底解决外部引用的dll类库) 3. Converts C# ref parameters using Java generics 4. Superb conversions of all types of arrays 5. Handles the numerous coding alternatives and ambiguities of C# code 6. Flawless conversion of all aspects of inheritance and interfaces 7. Allows custom replacement of strings in the final converted code 8. Accurate even with poorly formatted C# code

司徒宇治

Java 语言代码自动转换成 Visual C#®

Java 语言代码自动转换成 Visual C#®

cangyingzyp

c#代码转java代码工具

可以将c#代码转成java代码的工具,直接双击.exe文件便可以进行代码转换。

mr_tangshengping

java代码转c#

java to c# java to csharp java2c# java代码转c#,花了好几个小时才找到

songguanjun

JAVA类库转换成C#类库工具

JAVA C# C#引用JAVA类库 C#调用JAVA类库 C#解析JAVA类库

liang4571231
评论 8
收藏 已收藏
分享
返回顶部
hainan
C# 111,129 成员 642,540 内容