Here is my stripped down class and enum. class A { @Enumerated (value = EnumType.STRING) AType type; } enum AType
Could anyone tell me what is the error in this code? public class Node<T> { private int degree; @SuppressWarnings(\"unchecked\")
I don\'t understand why I\'m receiving a ClassCastException when I use this line: Activity a=(Activity)photoToLoad.imageView.getConte开发者_如何学Goxt();
I\'m making a Live Wallpaper and attempting to add some user preferences. If I have this: public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
I am getting the following errors when trying to run my application: Can you please tell me where I am going wrong :)
public class Animal { public void eat() {} } public class Dog extends Animal { public void eat() {} public void main(String[] args) {
In the flex app (without BlazeDS), I send an arrayCollect开发者_运维百科ion to Java using a webservice.
Suppose I am implementing a sorted collection (simple example - a Set based on a sorted array.)Consider this (incomplete) implementation:
I have a web project which is done using JSF & I have an EJB module too. I enter some data in a FORM & try to save those data to DB via my session bean.
I play around with the \'searchable dictionnary\' to get into Android development. My problem is that I get some ClassCastException when modifying the XML layouts.