Manage PlItems

You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done.

Advanced Search
Displaying 271-280 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
108C#StringsStrings miteinander verbindenstring myString = "!"; String.Concat("Hallo ", "Welt ", myString);View Update Delete
88C#StringsString auf Wunschlänge zuschneidenstring myString = "Benzinverbrauch"; Console.WriteLine(myString.Substring(2, 8)); //Ausgabe: "nzinverb"View Update Delete
32JavaStringsString nach Delimenter zerlegenString myString = new String; String[] myPieces = new String; myString = "A;B;C;D;E"; myPieces = myString.split(";"); // erzeugt ein Arrey mit den einzelnen Zeichen System.out.println(myPieces[2]); // gibt C ausView Update Delete
58JavaTypenkonvertierungInteger nach String konvertierenString numberAsString = ""; int number = 1; numberAsString = String.valueOf(number);View Update Delete
104C#SonstigesGibt den Temporären Ordner des System zurückstring sysTempPath = System.IO.Path.GetTempPath();View Update Delete
203JavaFilehandlingTernary operatorString thisVar = "OK"; boolean resultVar; resultVar = thisVar.equals("OK") ? true : false; // same as if-else construction if (thisVar.equals("OK")) { resultVar = true; } else { resultVar = false; }View Update Delete
29JavaArrayArray definierenString[] ar = new String[] {"Satz1", "Satz2"};View Update Delete
204PythonFallunterscheidungTernary operatorthisVar = "OK" resultVar = False # [on_true] if [cond] else [on_false] resultVar = True if thisVar == "OK" else False // same as if-else construction if (thisVar == "OK"): resultVar = True else: resultVar = FalseView Update Delete
26DelphiExceptionsTry Catch Excepttry // Code except // Handle the exception here... end; View Update Delete
160PythonExceptionsTry Catch Excepttry: print 1/0 except Exception as e: print traceback.extract_stack() else: print "this is the else block" finally: print "finally clean up or something"View Update Delete