首页 \ 问答 \ 如何使用HashTable检索另一个语句记录?(How to Retrieve Another Statement Records Using HashTable?)

如何使用HashTable检索另一个语句记录?(How to Retrieve Another Statement Records Using HashTable?)

晚上好,我尝试使用HashTable()临时存储数据库表记录。 问题是我不知道为什么放在HashTable()中的记录将始终是第一条记录。 我认为问题的出现是因为循环概念错误,相关代码:

宣布

Hashtable hashsample = new Hashtable();

for循环

for (i = 0; i< db.getNumberOfRows(); i++) {

        hashsample.put(i, db.getData());
        System.out.println(hashsample);
    }

p / s:我是HashTable的新手,db(数据库语句)运行正常...

需要一些提示并建议,谢谢先进的^^


Good Evening, I try to use the HashTable() for storing a database table records temporarily . The problem is I dunno why the records which being put inside the HashTable() will always be the first record. I think the problem occur is because of the wrong for loops concept, related code:

Declare

Hashtable hashsample = new Hashtable();

for loop

for (i = 0; i< db.getNumberOfRows(); i++) {

        hashsample.put(i, db.getData());
        System.out.println(hashsample);
    }

p/s: I'm new in HashTable, the db (database statement) run fine...

Need some hints and advised, thanks in advanced^^


原文:https://stackoverflow.com/questions/17587307
更新时间:2023-09-05 14:09

最满意答案

在模拟器上安装AIR运行时:

adb -e install -r Runtime_Emulator_Froyo_20100930.apk

从这个网站: http : //flashsimulations.com/2010/10/19/developing-android-applications-with-adobe-air/


To install the AIR runtime on the emulator:

adb -e install -r Runtime_Emulator_Froyo_20100930.apk

from this site: http://flashsimulations.com/2010/10/19/developing-android-applications-with-adobe-air/

相关问答

更多
  • 您需要访问设备LogCat才能进行调试。 您可以通过Android SDK访问LogCat,或者您可以在设备上安装多个应用程序 You need to access the devices LogCat in order to debug this. You can access the LogCat via the Android SDK or there are several apps you can install on the device
  • AIR实际上不是一个交叉编译器 - 您的应用程序会以APK的形式发布,您可以将其发布到Android市场或其他任何地方,但该APK中的某处是由AIR版本的AIR运行时执行的SWF。 当他们说“本地应用程序”时,它们表示用户与它交互的方式与它们与本机应用程序的交互方式相同,但内容本身是一个跨平台的二进制文件,就像桌面AIR(或Java)一样。 该过程与桌面上的AIR完全平行,不同之处在于部署的文件名为.apk而不是.air。 无论如何,没有必要进行推测,因为运行时本身和创建应用程序的工具目前都处于公测阶段 。 ...
  • 如果您在Android上开发Air,您可以考虑使用扩展程序为您完成工作! checkout http://myappsnippet.com/qr-code-scanner-native-extension-adobe-air这是一个AS3库,它使用Zxing Java库并扫描QR码并将结果返回给您的AS3项目。 if you are developing Air on Android, you may consider using an extension to do the job for you! ch ...
  • 好的,想通了。 必须将extendedDesktop desktop插入到我的app.xml文件中。 以及到同一个xml文件中。 至少需要Adobe Air 2.0,并且需要在Path中设置ADT。 如果您有兴趣,我列出了我在博客上获取Air to Exe的步骤列表。 更新:Serje Jespers ...
  • 在模拟器上安装AIR运行时: adb -e install -r Runtime_Emulator_Froyo_20100930.apk 从这个网站: http : //flashsimulations.com/2010/10/19/developing-android-applications-with-adobe-air/ To install the AIR runtime on the emulator: adb -e install -r Runtime_Emulator_Froyo_201009 ...
  • 不,Adobe Air中没有卸载事件。 解决方案可以是在每次应用程序退出时执行您想要完成的任何操作。 // make a reference to the NA singleton instance var nativeApplication = NativeApplication.nativeApplication; //add an event listener nativeApplication.addEventListener(Event.EXITING,onExitHandler); func ...
  • 我不是一名Adobe AIR开发人员,但从我所知的开发富Internet应用程序的运行时开始,这些应用程序应该在目标设备上用完浏览器。 所以默认情况下不应该对访问平台相关的资源和API感兴趣。 即使如此,有一种可能性被称为本地进程API ,这里有一个示例文章 ,可能如果你digg你会发现更多关于它的信息。 创建本地安装程序,允许您使用标准输入和输出启动本地进程并与其进行通信。 使用本机进程API,与使用Java™和.NET构建的本机库以及grep等本机应用程序进行通信以进行文件搜索。 您还可以创建特定于操作 ...
  • 看看这篇文章 。 可能你没有在打包之前构建项目。 您只需要创建AIR包以重新分发您的应用程序。 Look at this post. Probably you didn't build the project before packaging it. You'll only want to create the AIR package to redistribute your application.
  • 愤怒的小鸟只使用Flash作为Facebook版本。 我相信iOS和Android版本将是原生的。 Angry Birds only uses Flash for the Facebook version. I believe iOS and Android versions will be native.
  • 使用Adobe AIR Updater时,它仅更新运行时,而不是SDK。 您需要从Adobe单独下载新SDK: http : //helpx.adobe.com/air/kb/archived-air-sdk-version.html When using the Adobe AIR Updater it only updates the runtime, not the SDK. You need to download the new SDK separately from Adobe: http:// ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)