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
public class Person { | |
//attributes of the class | |
private String FirstName, | |
LastName; | |
private Integer Age, | |
Phone; | |
//Constructors for this class |
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
public class Saludo{ | |
private String name; | |
public Saludo(){ | |
this.name = "Default"; | |
} | |
public Saludo(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
/** | |
[Api Call Example "Copy a file"] | |
== How to run it == | |
1 - Compile it | |
javac copy.java |
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
public class buffed { | |
public static float[] calcularCentroMasa(String cadena ){ | |
cadena = cadena.replaceAll(" ", ""); | |
float counterx=0; | |
float countery=0; | |
float numVertex = Character.getNumericValue(cadena.charAt(0)); | |
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 xml.etree.ElementTree as ET | |
import requests | |
import random | |
import json | |
# generate a random number to find bugs | |
def genrandomid(): | |
num = random.randrange(3456, 61344) | |
return num |
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
public class palindrome { | |
/* | |
Compile it using javac palindrome.java | |
Runt it using java palindrome "anita lava la tina" | |
*/ | |
public static void main(String args[]){ | |
String d = args[0]; | |
d = d.toLowerCase(); | |
d = d.replaceAll("\\s",""); | |
System.out.println(d); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Here</title> | |
<link rel="stylesheet" type="text/css" href="styles.css"> | |
</head> | |
<body> | |
<div class="profile"> | |
<span class="label">Profile</span> | |
<div class="popup"> |
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
PARSER_BEGIN(analizadorPESP) | |
class analizadorPESP { | |
public static void main(String[] args) throws ParseException, TokenMgrError | |
{ | |
try { | |
analizadorPESP ae = new analizadorPESP(System.in); | |
ae.boot(); | |
}catch(ParseException e){ | |
System.out.println(" === Errores lexicos encontrados en codigo fuente PESP === \n "+e.getMessage()); | |
}catch(TokenMgrError e){ |
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
#include <stdio.h> | |
#include <unistd.h> | |
int main() | |
{ | |
char bar[] = { | |
'-', | |
'\\', | |
'|', | |
'/' |
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
/* PESP.jjt */ | |
PARSER_BEGIN(analizadorPESP) | |
class analizadorPESP { | |
public static void main(String[] args) throws ParseException, TokenMgrError | |
{ | |
try { | |
analizadorPESP ae = new analizadorPESP(System.in); // System.in | |
SimpleNode n = ae.Start(); | |
n.dump(" "); |
OlderNewer