moops22 Posted March 13, 2024 Posted March 13, 2024 so I have been making different functions for each time I buy runes I thought that was tedious and thought I could do something like this. private void buyrunes(int amount, string name) throws InterruptedException { NPC aubury = getNpcs().closest("Aubury"); if (aubury != null && aubury.interact("Trade")) { sleep(random(2000, 4000)); if(getStore().isOpen()) { getStore().buy("air rune", 1000); } getKeyboard().pressKey(KeyEvent.VK_ESCAPE); sleep(random(2000, 4000)); } } but the problem is that my intellij is giving me the error that it cant resolve the symbol string? any advice would be very helpful.
Czar Posted March 13, 2024 Posted March 13, 2024 string must start with an upper-case letter, so String name