72 Matching Annotations
  1. Jul 2019
    1. System arraycopy() method in java
    2. Binary search in java
    3. Bubble sort in java
    4. Continue statement in java
    5. How to create directory in java
    6. Java create new file
    7. How to get current date time in java
    8. Java program to print Floyd’s triangle
    9. For loop in java
    10. Garbage collection in java
    11. If else in java
    12. Insertion sort java
    13. Linear search in java
    14. How to list all files in a directory in java
    15. Quicksort java
    16. Random number generator in java
    17. How to rename file in java
    18. Selection sort java
    19. How to sort a string array in java
    20. Sparse matrix and its representations in java
    21. String toUpperCase() method in java
    22. Java compare two strings
    23. String concatenation in java
    24. String length() method in java
    25. Java remove character from string
    26. Reverse a string in java
    27. Java string trim() method
    28. Java String toCharArray() method
    29. Switch statement in java
    30. Java catch multiple exceptions and rethrow exception
    31. Java overview
    32. Major features of java
    33. Preface to java virtual machine and architecture
    34. Variables in java
    35. Classes and objects in java
    36. Polymorphism in java
    37. Constructor in java
    38. This keyword in java
    39. Access modifiers in java
    40. Inheritance in java
    41. Abstraction in java
    42. Nested classes in java
    43. Strings in java
    44. Methods in java
    45. While loop in java
    46. Interface in java
    47. String literal in java
    48. Comments in java
    49. Create matrix with user input in java
    50. For-each loop in java
    51. Treemap in java
    52. Arrays copyOfRange() in java
    53. Treeset in java
    54. HashSet in java
    55. ArrayList in java
    56. Sorting HashMap by values in java
    57. Arrays in java
    58. Multidimensional array in java
    59. Difference between “==” operator and equals method in java

    Tags

    Annotators

    URL

  2. Jan 2019
    1. after the terminal operation of the stream pipeline commences.

      Above is because of the nature of Streams in general: they are lazily executed (or put another way, execution is delayed until the latest convenient method call).

  3. Dec 2018
    1. Full disclosure: I’m a co-maintainer of clj-time and I’m pretty vocal about encouraging people not to use clj-time when starting a new project: use Java Time instead. Conversion from an existing, clj-time-heavy project is another matter tho’, unfortunately.

      sean cornfield co-mainainter of clj-time use Java.Time

  4. Oct 2018
    1. Perhaps part of the confusion - and you say this in a different way in your little memo - is that the C/C++ folks see OO as a liberation from a world that has nothing resembling a first-class functions, while Lisp folks see OO as a prison since it limits their use of functions/objects to the style of (9.). In that case, the only way OO can be defended is in the same manner as any other game or discipline -- by arguing that by giving something up (e.g. the freedom to throw eggs at your neighbor's house) you gain something that you want (assurance that your neighbor won't put you in jail).

      [9] "Sum-of-product-of-function pattern - objects are (in effect) restricted to be functions that take as first argument a distinguished method key argument that is drawn from a finite set of simple names."

    2. Sum-of-product-of-function pattern - objects are (in effect) restricted to be functions that take as first argument a distinguished method key argument that is drawn from a finite set of simple names.

      fwiu: the "finte set of simple names" are all the objects defined in the codebase e.g. in java there are no functions as such just methods attached to classes i.e. "their key argument"

    3. All you can do is send a message (AYCDISAM) = Actors model - there is no direct manipulation of objects, only communication with (or invocation of) them. The presence of fields in Java violates this.

      from what I understand in Java... there are some variables on classes (class instances) that are only acessible through methods and for those the "only send message" paradigm holds but there are also fields which are like attributes in python which you can change directly

    4. Parametric polymorphism - functions and data structures that parameterize over arbitrary values (e.g. list of anything). ML and Lisp both have this. Java doesn't quite because of its non-Object types.

      generics so you've got a "template" collection e.g. Collectoin<animal> and you parametrise it with the Animal type in this example how is that broken by "non-Object types" in java</animal>

  5. Mar 2018
    1. a mutator method is a method used to control changes to a variable. They are also widely known as setter methods

      For example, a method definition in Java would be:

      class MyClassDef {
      
          public void setProperty(String propertyVal) { .. }
      
      }
      

      For above, setProperty(..) method is the mutator

  6. Sep 2017
    1. but the true technology of Java is not in the language, but the virtual machine itself. The JVM as it stands today, is a fast, abstract machine that you can plug any languages into, and is able to operate at speeds comparable to natively compiled binaries.

      This is something really neat to ponder at... Thank you for your insight!

  7. Jul 2017
  8. May 2016
    1. Java Programming Language was developed by James Gosling, Chris Warth, Patrick Naughton, Mike Sheridan and Ed Frank at Sun Microsystems, Inc in the year 1991. At first Java Programming Language was named as Oak, later that it was renamed to Java in the year 1995. Java Programming is a platform independent language. The Internet (World Wide Web) made Java programming more valuable. Since, Internet is connected to different types of systems which having different CPU's & environments, it must have the programs to run on any OS, CPU and Platform. Since, Java programming obtain platform independence and can able to run on any platform like Unix, Intel, Mac etc., it was widely used. Java language also protects two other major issues of Internet, they are security & portability.

      Java Programming Language was developed by James Gosling, Chris Warth, Patrick Naughton, Mike Sheridan and Ed Frank at Sun Microsystems, Inc in the year 1991. At first Java Programming Language was named as Oak, later that it was renamed to Java in the year 1995.

      Java Programming is a platform independent language. The Internet (World Wide Web) made Java programming more valuable. Since, Internet is connected to different types of systems which having different CPU's & environments, it must have the programs to run on any OS, CPU and Platform. Since, Java programming obtain platform independence and can able to run on any platform like Unix, Intel, Mac etc., it was widely used. Java language also protects two other major issues of Internet, they are security & portability.

  9. Jul 2015