Search:

Type: Posts; User: Nijan

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    900

    Re: Splitting string in Java error

    Hai Scoobs ,
    In the code, String test1 contains "\" expression. but in the split function of string parts1 contains "//" expression.
    So change it.. it ll work..

    Nijan
  2. Replies
    6
    Views
    1,220

    Re: Why can't I get my variable to display?

    the method "display" is non-static.. but this method is call inside a static main method.. because of this error occurs..
    change the method "display" to static..
  3. Re: What is the purpose for declaring things private.

    Private access modifier is the most restrictive access level. Class and interfaces cannot be private.
    Example:
    public class Logger {
    private String format;
    public String getFormat() {
    ...
Results 1 to 3 of 3