publicclassmainClass{publicstaticvoidmain(String[]ARGS){inttestInt=1;doubletestDouble=2.3;StringtestString="abc";test1(testInt);test1(testDouble);test1(testString);}//Anlegen der ersten Methode mit String-Parameterpublicstaticvoidtest1(Stringtest){System.out.println(test);}//Anlegen der zweiten Methode mit Integer-Parameterpublicstaticvoidtest1(inttest){System.out.println(test);}//Anlegen der dritten Methode mit Double-Parameterpublicstaticvoidtest1(doubletest){System.out.println(test);}}
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.