15/06/11 15:37
sprax_87
salve ho il seguente main:
public static void main(String[] args) {
try {
ServiceIF1Stub client= new ServiceIF1Stub("localhost/axis2/services/…;
PrintToVideoIF1 print = new PrintToVideoIF1();
LeggiStringa str= new LeggiStringa();
print.PrintGetId(client);
print.PrintGetAll(client);
}
catch (AxisFault e) {
e.printStackTrace();
}
}
La classe LeggiStringa mi consente di leggere da tastiera e l'ho scritta così:
public class LeggiStringa {
public String readString(){
String str= new String();
InputStreamReader reader = new InputStreamReader (System.in);
BufferedReader myInput = new BufferedReader(reader);
try
{
str = myInput.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
}
Quale sintassi devo usare per dire: premere 1 per effettuare il metodo PrintGetId e due per effettuare il metodo PrintGetAll?
public static void main(String[] args) {
try {
ServiceIF1Stub client= new ServiceIF1Stub("localhost/axis2/services/…;
PrintToVideoIF1 print = new PrintToVideoIF1();
LeggiStringa str= new LeggiStringa();
print.PrintGetId(client);
print.PrintGetAll(client);
}
catch (AxisFault e) {
e.printStackTrace();
}
}
La classe LeggiStringa mi consente di leggere da tastiera e l'ho scritta così:
public class LeggiStringa {
public String readString(){
String str= new String();
InputStreamReader reader = new InputStreamReader (System.in);
BufferedReader myInput = new BufferedReader(reader);
try
{
str = myInput.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
}
Quale sintassi devo usare per dire: premere 1 per effettuare il metodo PrintGetId e due per effettuare il metodo PrintGetAll?
aaa