“Reality is that which, when you stop believing in it, doesn’t go away.” – Philip K Dick
“I used to be psychic, but I drank my way out of it.” – Mark E Smith
“I’m “Stone Head”, the third henchman of the king. I’ll let you pass by here if you win three “janken” matches.” – Stone Head
Seems like a powerful sysetm. Having issues using OpenID though. this is 2nd attempt to use it and post. Does this handle spam well? how did you find it? Seems cool if I can get OID to work
public static boaolen contains(String left, String right) {int magicLeft = toMagicInt(left);int magicRight = toMagicInt(right);return (magicLeft & magicRight) == magicRight;}public static int toMagicInt(String text) {int result = 0;int index = 0;for (char c : text.toLowerCase().toCharArray()) {index = c a’;result |= 2 << index;}return result;}
ÐÑли не ÑÑÑдно оÑвеÑÑÑе пожалÑйÑÑа на вопÑоÑ. Рданной пÑогÑаммеpublic class VarArgs { public static void vaTest (int…v) { System.out.print(«ÐолиÑеÑÑво аÑгÑменÑов: «+ v.length+ » СодеÑжимое: «); for (int x:v) System.out.print(x+ «; «); System.out.println(); } public static void main (String args []) { vaTest();ÐÑи вÑзове меÑода vaTest Ñ Ð¾ÑÑÑÑÑÑвÑÑÑим паÑамеÑÑом компилÑÑÐ¾Ñ Ð½Ðµ ÑÑгаеÑÑÑ. Ðо в ÑледÑÑÑей пÑогÑамме в ÑÑÑоке «vaTest ();» вÑÐ´Ð°ÐµÑ Ð¾ÑибкÑ: «reference to vaTest is ambiguous, both method vaTest(int…) in Array.»ÐоÑÐµÐ¼Ñ Ð¾Ð½ Ñак поÑÑÑÐ¿Ð°ÐµÑ Ð½Ðµ Ð¼Ð¾Ð³Ñ Ð¿Ð¾Ð½ÑÑÑ .public class VarArgs3 { static void vaTest (int …v){ System.out.print(«Ðол-во агÑÑменÑов: «+v.length+ » «); for (int x:v) System.out.print(x+» «); System.out.println(); } static void vaTest (boolean …v){ System.out.print(«Ðол-во агÑÑменÑов: «+v.length+ » «); for (boolean x:v) System.out.print(x+» «); System.out.println();} static void vaTest (String msg, int …v){ System.out.print(msg+»Ðол-во агÑÑменÑов: «+v.length+ » «); for (int x:v) System.out.print(x+» «); System.out.println();} public static void main (String args []){ vaTest («ÐÑÑ-кÑÑ «, 2, 70, 0); vaTest (true,false,true); vaTest (); }}