Jump to content

Recommended Posts

Posted

Καλησπερα, θα ηθελα αν καποιος ξερει να μου πει πως μπορω ας πουμε στο 15532 να επιλεξω σαν αποτελεσμα μονο το 2 και αντιστοιχα στην συμβολοσειρα "ΚΩΣΤΑΣ" (π.χ.) πως μπορω να διαλεξω μονο το Α ή μονο το Ω.

Posted

for example this is how substring(int) works:

 

substring(4) will makes ΚΩΣΤΑΣ to ΑΣ, then use startsWith and u get Ω

substring(2) will makes ΚΩΣΤΑΣ to ΩΣΤΑΣ use startWith and u get A

 

thats it, but to be more specific you need substring(int, int)

 

so u have to use use substring(4,6) and u get A more easily

Posted

for example this is how substring(int) works:

 

substring(4) will makes ΚΩΣΤΑΣ to ΑΣ, then use startsWith and u get Ω

substring(2) will makes ΚΩΣΤΑΣ to ΩΣΤΑΣ use startWith and u get A

 

thats it, but to be more specific you need substring(int, int)

 

so u have to use use substring(4,6) and u get A more easily

that's true.

Although i have find the answer.

substring it's a bit more difficult to do the thing that i requested.

charAt() method is better.

e.g.

String name = strike;
int n = 2;
System.out.println(charAt(n));

 

This will make an output "t".

Guest
This topic is now closed to further replies.


  • Posts

    • Fix Visual Boundary for AutoFarm when entering a new zone. Fix Assassin Interface Automatic SoulShot usage. Fix Assassin Interface not displaying Castle/Base. Fix Achievements displaying item rewards for CommunityBoard & NPC. Fix Prevent players from purchasing their own Auctioned items. Added ''.raid'' and ''.achievement'' commands. Added support for multiple currencies on Auction Added Search feature to Auction. Added Offline Stores Added '.exit' & '.quit' command to Dungeon System so players can now exit/quit dungeons Added VIP Account System (Alternative XP, SP & Drop Rates, Unlocks Costumes) Added Loot Box System Changed DungeonsManager now displays reward list on dungeon pages. Changed GlobalShop to include pages for all currencies. HTML/XML edits
    • When I teleport to town, my current location is differ from the map. How do I fix this?    
    • A New Chapter Begins We're Rebuilding – Join Our Staff Team After many years of activity, growth, and challenges, it’s finally time for our community to restructure and move forward. We’re ready to turn a new page and evolve into something greater — but we can’t do it without the help of passionate and committed people. That’s why we’re now opening up staff applications for those who want to actively shape the future of our community. If you have the motivation, time, and patience to contribute to something meaningful, this is your chance to step in and make a real impact. What We're Looking For We’re building a fresh and dedicated team of individuals who are ready to support and grow this project. Open roles include: Moderators – to keep the forum clean, safe, and organized Gaming Moderators – to help manage gaming boards (e.g., Lineage, GTA FiveM) Content Creators – to post updates, guides, and articles Community Managers – to engage users and drive activity Technical Staff – for development, backend, and server work We’re not focusing only on Lineage anymore. Our vision is expanding to new areas — including GTA FiveM and other multiplayer games you might have expertise in. If you have a good idea, a server plan, or something new to suggest — we’re open to it. Now’s the time to bring it forward. Requirements We’re looking for individuals who have: A history of activity on the forum (preferred) Available time to contribute consistently A sense of teamwork and responsibility A genuine interest in gaming and community building If you're interested, just send a private message to me or Celestine. (or just reply here) Tell us a few things about yourself and how you’d like to contribute. Let’s bring this community back to life. Let’s rebuild something great — together.   M M G A 
  • Topics

×
×
  • Create New...