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.alertdialog; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.LinearLayout; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.Button; | |
import android.view.View.OnClickListener; | |
import android.app.AlertDialog; |
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.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class regep { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { |
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
ABCDEFGHIJKLMNOPQRSTUVWXYZ | |
A: | |
Adam Beyer & Lenk - Drum Code No.1 (Planetary Assault Systems Remix 1) | |
http://www.youtube.com/watch?v=Pk7kYDR0OFk | |
The Advent - Distract (Original Mix) | |
http://www.youtube.com/watch?v=GYlLGMlEMEI | |
Akufen - Deck the House |
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
for i in 1..9 | |
for j in 1..9 | |
product = i * j | |
puts i.to_s + "x" + j.to_s + "=" + product.to_s | |
end | |
end |
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
sample_input = [1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922] | |
puts sample_input.sort.reverse[0..2] |
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
x = gets.chomp | |
puts x.to_i ** 3 |
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
x = gets.chomp | |
s = x.split(nil) | |
a = x.split[0].to_i | |
b = x.split[1].to_i | |
area = a * b | |
compass = a**2 + b**2 | |
puts area.to_s + " " + compass.to_s |
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
x = gets.chomp | |
s = x.split(nil) | |
a = x.split[0].to_i | |
b = x.split[1].to_i | |
if a < b | |
puts "a < b" | |
elsif a > b | |
puts "a > b" | |
else a == a |
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
for i in 1..1000 | |
puts "Hello World" | |
end |
OlderNewer