public static int a()
...
public static String a() //так нельзя
Помогите исправить Ошибки в Java 2 Me
Код:
import javax.microedition.midlet.MIDlet;
public class a
{
public a()
{
}
private static boolean a(char c1)
{
return c1 >= '0' && c1 <= '9';
}
private static void a(String s)
{
int i = s.indexOf('/');
if(i >= 0)
s = s.substring(0, i);
boolean flag = true;
boolean flag1 = false;
for(int j = 0; j < s.length(); j++)
if(flag)
{
if(flag1)
{
if(a(s.charAt(j)))
{
b = b + s.charAt(j);
} else
{
flag = false;
c = c + s.charAt(j);
}
continue;
}
if(a(s.charAt(j)))
flag1 = true;
b = b + s.charAt(j);
} else
{
c = c + s.charAt(j);
}
if(c.length() > 0 && (c.charAt(0) == '-' || c.charAt(0) == ' ' || c.charAt(0) == '_'))
c = c.substring(1);
}
private static boolean a(String s) //Ошибка a(java.lang.String) is already defined in a
{
boolean flag = false;
boolean flag1 = true;
byte byte0 = 2;
byte byte1 = 3;
byte byte2 = 4;
byte byte3 = 5;
byte byte4 = 6;
byte byte5 = 7;
char c1 = '\377';
int i = 0;
for(int j = 0; j < s.length() && i != 255; j++)
switch(i)
{
default:
break;
case 0: // '\0'
if(a(s.charAt(j)))
i = 1;
else
i = 255;
break;
case 1: // '\001'
if(a(s.charAt(j)))
break;
if(s.charAt(j) == '.')
i = 2;
else
i = 255;
break;
case 2: // '\002'
if(a(s.charAt(j)))
i = 3;
else
i = 255;
break;
case 3: // '\003'
if(a(s.charAt(j)))
break;
if(s.charAt(j) == '.')
i = 4;
else
i = 255;
break;
case 4: // '\004'
if(a(s.charAt(j)))
i = 5;
else
i = 255;
break;
case 5: // '\005'
if(a(s.charAt(j)))
i = 6;
else
i = 255;
break;
case 6: // '\006'
if(a(s.charAt(j)))
i = 7;
else
i = 255;
break;
case 7: // '\007'
i = 255;
break;
}
return i == 7;
}
public static void a(MIDlet midlet)
{
a_javax_microedition_midlet_MIDlet_static_fld = midlet;
a_java_lang_String_static_fld = System.getProperty("microedition.platform");
if(a_java_lang_String_static_fld == null)
{
a_int_static_fld = 4;
a_java_lang_String_static_fld = "";
} else
{
boolean flag = false;
try
{
if(a_java_lang_String_static_fld.substring(0, 12).equals("SonyEricsson"))
{
flag = true;
if(a_java_lang_String_static_fld.length() > 12)
{
String s = a_java_lang_String_static_fld.substring(12);
a(s);
}
}
}
catch(Throwable throwable) { }
boolean flag1 = false;
try
{
if(a_java_lang_String_static_fld.substring(0, 4).equals("W302"))
{
flag1 = true;
a(a_java_lang_String_static_fld);
}
}
catch(Throwable throwable1) { }
if(flag || flag1)
{
a_int_static_fld = 1;
} else
{
boolean flag2 = false;
try
{
if(a_java_lang_String_static_fld.substring(0, 5).equals("Nokia"))
{
flag2 = true;
if(a_java_lang_String_static_fld.length() > 5)
{
String s1 = a_java_lang_String_static_fld.substring(5);
a(s1);
}
}
}
catch(Throwable throwable2) { }
boolean flag3 = false;
try
{
int i = a_java_lang_String_static_fld.indexOf('/');
if(i >= 0)
{
String s2 = a_java_lang_String_static_fld.substring(0, i);
String s4 = a_java_lang_String_static_fld.substring(i + 1, a_java_lang_String_static_fld.length());
if(s2.length() >= 2 && s2.charAt(0) == '(' && s2.charAt(s2.length() - 1) == ')')
{
s2 = s2.substring(1, s2.length() - 1);
if(s2.equals(s4))
flag3 = a(s4);
}
}
}
catch(Throwable throwable3) { }
boolean flag4 = false;
try
{
if(a_java_lang_String_static_fld.length() >= 8 && a_java_lang_String_static_fld.substring(0, 8).equals("Mozilla/"))
{
String s3 = a_java_lang_String_static_fld.substring(8);
flag4 = a(s3); //Ошибка incompatible types required: boolean found: void
}
}
catch(Throwable throwable4) { }
if(flag2 || flag3 || flag4)
{
a_int_static_fld = 3;
try
{
Class.forName("com.symbian.gcf.NativeInputStream");
}
catch(Throwable throwable5)
{
a_int_static_fld = 2;
}
} else
{
a_int_static_fld = 4;
}
}
}
}
public static MIDlet a()
{
return a_javax_microedition_midlet_MIDlet_static_fld;
}
public static String getVersion()
{
return "1.5.32";
}
public static String a() //Ошибка a() is already defined in a
{
return a_java_lang_String_static_fld;
}
public static int a() //Ошибка a() is already defined in a
{
return a_int_static_fld;
}
public static String b()
{
return b;
}
public static String c()
{
return c;
}
public static void a() //Ошибка a() is already defined in a
{
switch(a()) //Ошибка incompatible types required: int found: javax.microedition.midlet.MIDlet
{
case 2: // '\002'
case 3: // '\003'
g.a(1);
g.b(30000);
break;
case 1: // '\001'
g.a(2);
g.b(500);
break;
default:
g.a(0);
g.b(30000);
break;
}
}
private static MIDlet a_javax_microedition_midlet_MIDlet_static_fld;
private static String a_java_lang_String_static_fld;
private static int a_int_static_fld = 0;
private static String b = "";
private static String c = "";
}
public class a
{
public a()
{
}
private static boolean a(char c1)
{
return c1 >= '0' && c1 <= '9';
}
private static void a(String s)
{
int i = s.indexOf('/');
if(i >= 0)
s = s.substring(0, i);
boolean flag = true;
boolean flag1 = false;
for(int j = 0; j < s.length(); j++)
if(flag)
{
if(flag1)
{
if(a(s.charAt(j)))
{
b = b + s.charAt(j);
} else
{
flag = false;
c = c + s.charAt(j);
}
continue;
}
if(a(s.charAt(j)))
flag1 = true;
b = b + s.charAt(j);
} else
{
c = c + s.charAt(j);
}
if(c.length() > 0 && (c.charAt(0) == '-' || c.charAt(0) == ' ' || c.charAt(0) == '_'))
c = c.substring(1);
}
private static boolean a(String s) //Ошибка a(java.lang.String) is already defined in a
{
boolean flag = false;
boolean flag1 = true;
byte byte0 = 2;
byte byte1 = 3;
byte byte2 = 4;
byte byte3 = 5;
byte byte4 = 6;
byte byte5 = 7;
char c1 = '\377';
int i = 0;
for(int j = 0; j < s.length() && i != 255; j++)
switch(i)
{
default:
break;
case 0: // '\0'
if(a(s.charAt(j)))
i = 1;
else
i = 255;
break;
case 1: // '\001'
if(a(s.charAt(j)))
break;
if(s.charAt(j) == '.')
i = 2;
else
i = 255;
break;
case 2: // '\002'
if(a(s.charAt(j)))
i = 3;
else
i = 255;
break;
case 3: // '\003'
if(a(s.charAt(j)))
break;
if(s.charAt(j) == '.')
i = 4;
else
i = 255;
break;
case 4: // '\004'
if(a(s.charAt(j)))
i = 5;
else
i = 255;
break;
case 5: // '\005'
if(a(s.charAt(j)))
i = 6;
else
i = 255;
break;
case 6: // '\006'
if(a(s.charAt(j)))
i = 7;
else
i = 255;
break;
case 7: // '\007'
i = 255;
break;
}
return i == 7;
}
public static void a(MIDlet midlet)
{
a_javax_microedition_midlet_MIDlet_static_fld = midlet;
a_java_lang_String_static_fld = System.getProperty("microedition.platform");
if(a_java_lang_String_static_fld == null)
{
a_int_static_fld = 4;
a_java_lang_String_static_fld = "";
} else
{
boolean flag = false;
try
{
if(a_java_lang_String_static_fld.substring(0, 12).equals("SonyEricsson"))
{
flag = true;
if(a_java_lang_String_static_fld.length() > 12)
{
String s = a_java_lang_String_static_fld.substring(12);
a(s);
}
}
}
catch(Throwable throwable) { }
boolean flag1 = false;
try
{
if(a_java_lang_String_static_fld.substring(0, 4).equals("W302"))
{
flag1 = true;
a(a_java_lang_String_static_fld);
}
}
catch(Throwable throwable1) { }
if(flag || flag1)
{
a_int_static_fld = 1;
} else
{
boolean flag2 = false;
try
{
if(a_java_lang_String_static_fld.substring(0, 5).equals("Nokia"))
{
flag2 = true;
if(a_java_lang_String_static_fld.length() > 5)
{
String s1 = a_java_lang_String_static_fld.substring(5);
a(s1);
}
}
}
catch(Throwable throwable2) { }
boolean flag3 = false;
try
{
int i = a_java_lang_String_static_fld.indexOf('/');
if(i >= 0)
{
String s2 = a_java_lang_String_static_fld.substring(0, i);
String s4 = a_java_lang_String_static_fld.substring(i + 1, a_java_lang_String_static_fld.length());
if(s2.length() >= 2 && s2.charAt(0) == '(' && s2.charAt(s2.length() - 1) == ')')
{
s2 = s2.substring(1, s2.length() - 1);
if(s2.equals(s4))
flag3 = a(s4);
}
}
}
catch(Throwable throwable3) { }
boolean flag4 = false;
try
{
if(a_java_lang_String_static_fld.length() >= 8 && a_java_lang_String_static_fld.substring(0, 8).equals("Mozilla/"))
{
String s3 = a_java_lang_String_static_fld.substring(8);
flag4 = a(s3); //Ошибка incompatible types required: boolean found: void
}
}
catch(Throwable throwable4) { }
if(flag2 || flag3 || flag4)
{
a_int_static_fld = 3;
try
{
Class.forName("com.symbian.gcf.NativeInputStream");
}
catch(Throwable throwable5)
{
a_int_static_fld = 2;
}
} else
{
a_int_static_fld = 4;
}
}
}
}
public static MIDlet a()
{
return a_javax_microedition_midlet_MIDlet_static_fld;
}
public static String getVersion()
{
return "1.5.32";
}
public static String a() //Ошибка a() is already defined in a
{
return a_java_lang_String_static_fld;
}
public static int a() //Ошибка a() is already defined in a
{
return a_int_static_fld;
}
public static String b()
{
return b;
}
public static String c()
{
return c;
}
public static void a() //Ошибка a() is already defined in a
{
switch(a()) //Ошибка incompatible types required: int found: javax.microedition.midlet.MIDlet
{
case 2: // '\002'
case 3: // '\003'
g.a(1);
g.b(30000);
break;
case 1: // '\001'
g.a(2);
g.b(500);
break;
default:
g.a(0);
g.b(30000);
break;
}
}
private static MIDlet a_javax_microedition_midlet_MIDlet_static_fld;
private static String a_java_lang_String_static_fld;
private static int a_int_static_fld = 0;
private static String b = "";
private static String c = "";
}
возвращаемое значение не является признаком перегрузки фукнкции
Код: