This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.itsallbinary.utility.pdfgraphics; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.stream.Collectors; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.itsallbinary.audio; | |
import static com.itsallbinary.audio.MusicNote.C; | |
import static com.itsallbinary.audio.MusicNote.D; | |
import static com.itsallbinary.audio.MusicNote.E; | |
import static com.itsallbinary.audio.MusicNote.F; | |
import static com.itsallbinary.audio.MusicNote.G; | |
import static com.itsallbinary.audio.MusicNote.PAUSE; | |
import javax.sound.sampled.AudioFormat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Syntax: | |
<public/private/protected/internal> class <class-name> (constructor-arg-name:arg-type,..){ | |
<public/private/protected/internal> fun <func-name> (<arg-name>:<arg-type>,...) : <return-type> = { | |
<method-body> | |
return <return-value> | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Syntax: | |
<class/object> <class-name> (constructor-arg-name:arg-type,..){ | |
<private/protected/no-modifier> def <func-name> (<arg-name>:<arg-type>,...) : <return-type> = { | |
<method-body> | |
return <return-value> | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Syntax: Same as Java | |
Example: | |
class MyTestClass{ | |
String name; | |
public MyTestClass(String name){ | |
this.name = name; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyTestClass{ | |
String name; | |
public MyTestClass(String name){ | |
this.name = name; | |
} | |
public String myMethod(String a, int b){ | |
String result = name + a + b; | |
return result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.itsallbinary.utility; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* Create PDF file without any library from scratch. |