Search:

Type: Posts; User: neonz

Search: Search took 0.43 seconds.

  1. Re: balancedBracketsByCounting (String s) that checks brackets are matched in the Str

    To: KevinWorkman and helloworld922

    Thanks for the advice.

    My problem is resolved.
  2. Re: balancedBracketsByCounting (String s) that checks brackets are matched in the Str

    Thank you very much.
    Very helpful comment. Will test it part by part and will change the variable names.

    By the way, I am also requires to write the algorithm that outline the codes. Do you all...
  3. Re: balancedBracketsByCounting (String s) that checks brackets are matched in the Str

    I have mention it is a cross-posted thread.

    Before requesting for help, I waited for a few day before posting again.

    What are the suggestion I receive with regard to the program code that I...
  4. Re: balancedBracketsByCounting (String s) that checks brackets are matched in the Str

    Hope someone will take a look and help comment to see if everything work fine.
    Thanks, been a few days already and no one commented or reply.

    Thanks for all comment and reply.
  5. Re: balancedBracketsByCounting (String s) that checks brackets are matched in the Str

    Latest program:


    import java.util.*;
    import java.io.*;

    public class balancedBraces
    {
    public static boolean balancedBracesMethod (String s)
    {
  6. Re: balancedBracketsByCounting (String s) that checks brackets are matched in the Str

    Got it sorry!

    Hmm, I am pretty new to how this works?
    Are both the forum linked?
    Meaning to say that both forum registered account users are able to help you?

    Hmm, also does it mean that...
  7. Re: balancedBracketsByCounting (String s) that checks brackets are matched in the Str

    Sorry, was trying to get fast response and resolve the problem.

    Another testing done. This time round is smooth testing. All the way test by entering new figure instead of hard-coding.



    ...
  8. Re: balancedBracketsByCounting (String s) that checks brackets are matched in the Str

    helloworld922, Thanks for advice.

    Does this works?

    import java.util.*;

    public class balancedBraces
    {
    public boolean balancedBracesMethod (String s)
    {
  9. balancedBracketsByCounting (String s) that checks brackets are matched in the String.

    Hi, I need to write an algorithm balancedBracketsByCounting (String s), as follows, that takes a string as an input and checks whether the brackets "[" and "]" in the string are matched correctly. ...
Results 1 to 9 of 9