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
<div id="page"> | |
<div id="header"></div> | |
<div id="content"></div> | |
<div id="footer"></div> | |
</div> |
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
import java.util.*; | |
public class Accumulator { | |
private int accum = 0; | |
public void add(int val) { | |
accum = accum + val; | |
} | |
public int getValue() { |
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
import java.util.*; | |
public class Accumulator { | |
private int accum = 0; | |
public void add(int val) { | |
accum = accum + val; | |
} | |
public int getValue() { |
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
import java.util.*; | |
public class InputTest { | |
public static void main (String [] args) { | |
Scanner scanner = new Scanner(System.in); | |
String s; | |
int i; | |
double d; | |
System.out.println("Enter a string:"); |
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
10.times do | |
puts "Hello world!" | |
end |
NewerOlder