System.out.print("\u064a");car la console Windows ne supporte pas l'Unicode, en revanche un affichage graphique
JOptionPane.showMessageDialog(null, "\u064a");passe.
public static String chercher (String input) { String[] split = input.split("<font size=5>|</font>"); return split[1]; }
public class Test { public static String chercher(String input) { String[] split = input.split("<font size=5>|</font>"); return split[1]; } public static void main(String[] args) { String input = "<TD VALIGN=TOP><P DIR='RTL' ALIGN=RIGHT><font size=5>Hello World !</font></P></TD>"; String result = chercher(input); System.out.println(result); // Hello World ! } }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question