Additions to: https://blog.sebastian-daschner.com/entries/maybe_keyword_in_java
Before make all
a configuration has be to set.
run:
bash configure
It will suggest how to get missing dependencies.
abstract class A { | |
public String s() { | |
return this.getClass().getName(); | |
} | |
} | |
class B extends A { | |
public static void main(String...args) { | |
System.out.println(B.class.getName()); | |
System.out.println(new B().s()); | |
} |
Additions to: https://blog.sebastian-daschner.com/entries/maybe_keyword_in_java
Before make all
a configuration has be to set.
run:
bash configure
It will suggest how to get missing dependencies.
{ | |
"hash": "87b6c030d59c1c74357bb19a89d206517e09df2d" | |
} |
import java.text.DecimalFormat; | |
class F { | |
public static void main( String ... args ) { | |
DecimalFormat f = new DecimalFormat("000,000.00"); | |
double [] d = { | |
0.01, | |
0.12, | |
123456, | |
123456.78, |
//A.java | |
class A { | |
private int i; | |
public String toString() { return ""+ i; } | |
} | |
// B.java | |
class B extends A {} | |
// Main.java | |
class Main { | |
public static void main( String [] args ) { |
import java.util.function.BiConsumer; | |
import java.util.Arrays; | |
import java.util.List; | |
class SimpleClass { | |
void methodA(String a, String b) { | |
System.out.printf("%s %s%n", a, b); | |
} | |
} |
import java.text.ParseException; | |
class Lexer { | |
String [] tokens; | |
void tokenize( String input ) { | |
tokens = input.split("\\s"); | |
} | |
} | |
class Parser { | |
void parse( String [] tokens ) throws ParseException { | |
// la regla es que empieze con "hombres" y termine con "tal" |
import javax.swing.Box; | |
import javax.swing.BoxLayout; | |
import javax.swing.JButton; | |
import javax.swing.JFrame; | |
import javax.swing.JLabel; | |
import javax.swing.JPanel; | |
import javax.swing.JPasswordField; | |
import javax.swing.JTextField; | |
public class Mano { |
if ( apparentlyImportantValue); | |
doSomething(); |
validate : function( callback ) { | |
cancelTimeout( timeoutId ); | |
timeoutId = setTimeout( callback, 2000 ); | |
} |