为什么这段代码会被“终止”?(Why is this code keep being “terminated”?)
我在Eclipse中有这个代码:
package test; import java.util.Scanner; class test{ public static void main(String args[]){ Scanner Input = new Scanner(System.in); if (Input.equals("payday2")){ System.out.println(Input); } } }
现在,当我尝试启动代码/ aplication时,它会自行终止。
任何想法为什么会发生?
I have this code in Eclipse:
package test; import java.util.Scanner; class test{ public static void main(String args[]){ Scanner Input = new Scanner(System.in); if (Input.equals("payday2")){ System.out.println(Input); } } }
Now when I try to start the code/aplication, it terminates itself.
Any ideas why that happens?
原文:https://stackoverflow.com/questions/29582349
更新时间:2023-03-29 09:03
最满意答案
Apple地图不支持印度的路线。 您必须在印度使用Google Maps for Directions。 你可以在这里查看地图功能的可用性
Apple maps is not supporting Directions in india. you have to use Google Maps for Directions in india. you can check map feature availability here
相关问答
更多-
如何使用swift ios在mapview中添加两个注释?(How can I add two annotations in mapview using swift ios?)[2021-11-19]
创建自定义类作为“ MyAnnotation ” import UIKit import MapKit class MyAnnotation: NSObject,MKAnnotation { var title : String? var subTit : String? var coordinate : CLLocationCoordinate2D init(title:String,coordinate : CLLocationCoordinate2D,subtitle:String){ ... -
Android MapView(Android MapView)[2022-12-02]
在这里,我给出了一个解决方案,我从你的问题中得到了什么......你需要将Lat Long添加到来自服务器的Overlay项目中,并将它添加到逐项叠加中,之后当您想要删除任何具有特定项目的Itemizedoverlay纬度长,你可以检查并从地图叠加层中删除。 Here I am giving one solution what I am getting from your question... You need to add Lat Long into Overlay item which is comi ... -
NSPredicate根据MapView边界限制纬度经度范围(NSPredicate to limit latitude longitude range according to MapView bounds)[2023-07-14]
一个可能的解决方案是询问地图视图的region 。 这是一个MKCoordinateRegion ,包括 CLLocationCoordinate2D center MKCoordinateSpan span 跨度包括经度和纬度增量,看起来就像您需要的那样。 A likely solution would be to ask the map view for its region. That's an MKCoordinateRegion which includes CLLocationCoordinat ... -
发生这种情况是因为您没有在plist中输入,如下所示。 如果仍然无效,请将代码更新到下面。 myMapView.delegate = self; locationManager.delegate = self; self.locationManager = [[CLLocationManager alloc] init]; #ifdef __IPHONE_8_0 if(IS_OS_8_OR_LATER) { // Use one or the other, not both. Depending o ...
-
这个问题已经被问了好几次了。 我想你正在从http://iosguy.com/2012/05/22/tracing-routes-with-mapkit/获取代码。你也可以看看这个问题: 在iOS中用多点绘制路线 您也可以从http://iosboilerplate.com获取代码并为其作出贡献。 最后但并非最不重要的一点是,有一个框架可以帮助你做一小笔钱(但没有什么比你需要做同样的事情): http : //www.cocoacontrols.com/controls/ mtdirectionskit T ...
-
mapView没有改变(mapView is not changing)[2021-10-13]
编写更改位置的代码并在位置更改的方法中移动地图相机 @Override public void onLocationChanged(Location location) { latitude = location.getLatitude(); longitude = location.getLongitude(); LatLng latLng = new LatLng(latitude, longitude);// Creatin ... -
我在类似你的案件中所做的是: 1)首先删除所有注释 for (id
anAnnotation in [NSArray arrayWithArray:mapView_.annotations]) { [mapView_ removeAnnotation:anAnnotation]; } 2)然后绘制所选的: [mapView_ addAnnotation:myAnnotation]; What I'm doing in a case similar to yours, ... -
Apple地图不支持印度的路线。 您必须在印度使用Google Maps for Directions。 你可以在这里查看地图功能的可用性 Apple maps is not supporting Directions in india. you have to use Google Maps for Directions in india. you can check map feature availability here
-
这完全取决于您计划如何输入和维护有关引脚的信息。 您可以使用XML,JSON,plist,CoreData ...... It all depends how you plan to enter and maintain info about the pins. You can use XML, JSON, plist, CoreData...
-
MapView,DataFramework(MapView, DataFramework)[2022-02-11]
你怎么不只是使用SQLiteOpenHelper? 查看本教程: http : //www.vogella.com/articles/AndroidSQLite/article.html 我怀疑你会比用xml构建表更好运。 How come you're not just using the SQLiteOpenHelper? Check out this tutorial: http://www.vogella.com/articles/AndroidSQLite/article.html I suspe ...