return to tranceaddict TranceAddict Forums Archive > Local Scene Info / Discussion / EDM Event Listings > Australia

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 
Trance Party -- Echo@Soda Room 12th March (pg. 16)
View this Thread in Original format
PulseFusion
hmm... to tell ya the truth, i think a bottle is in order :D:D,

those bottles you got there ^^^ would be heaps better with a west end label on em ;) he he...
PulseFusion
damn, i'm having real motivational issues, heres my problem:

Thermo-Fluids II or Final Fantasy and beer...

hmm, i think uni misses out today! see ya all tonight! good luck heathy i'm sure you put on a stormer!
gumble
man

BIG UPS THE SPARKLINGS.


be there in a couple hours.
GelatinPufF
en programming!:rolleyes: If I get this program to test the input string for digits (and then keep on repromting the user until a valid string with no digits is entered), I'll see you guys there. If not: :sadgreen:

:whip:

import java.io.*;

public class {
public static void main(String[] args)throws IOException{
BufferedReader stdin = new BufferedReader(
new InputStreamReader(System.in));
System.out.println("Enter a string: ");
String in = stdin.readLine();

Pattern P1= new Pattern(Utils.cleanDup(in));
System.out.println();
PatternReversed P2= new PatternReversed(Utils.cleanDup(in));
print(P1,P2);
}

public static class Utils{

public Utils(){

}


public static String cleanDup(String in)throws IOException{
String out = "";
for(int i = 0; i < in.length(); i++){
char c = in.charAt(i);
out = in.substring(0,i+1);

for(int k = i+1; k < in.length(); k++){
char nextc = in.charAt(k);

if(nextc != c)
out = out + nextc;
}
in = out;

}

return out;
}



public static String hasDigit(String in)throws IOException{
BufferedReader stdin = new BufferedReader(
new InputStreamReader(System.in));
char zero = '0';char one = '1';char two = '2';char three = '3';char four = '4';
char five = '5';char six = '6';char seven = '7';char eight = '8';char nine = '9';
String e = "";

for(int a = 0; a
if (in.charAt(a)==zero){
System.out.print("enter a word!");
break;

}
else if(in.charAt(a)==one){
System.out.print("enter a word!");
break;
}
else if(in.charAt(a)==two){
System.out.print("enter a word!");
break;
}
else if(in.charAt(a)==three){
System.out.print("enter a word!");
break;
}
else if(in.charAt(a)==four){
System.out.print("enter a word!");
in = stdin.readLine();
//in = redo;
hasDigit(in);
}

else if(in.charAt(a)==five){
System.out.print("enter a word!");
in = stdin.readLine();
//in = redo;
hasDigit(in);
}
else if(in.charAt(a)==six){
System.out.print("enter a word!");
in = stdin.readLine();
//in = redo;
hasDigit(in);
}
else if(in.charAt(a)==seven){
System.out.print("enter a word!");
in = stdin.readLine();
hasDigit(in);
}
else if(in.charAt(a)==eight){
System.out.print("enter a word!");
in = stdin.readLine();
//in = redo;
hasDigit(in);
}
else if(in.charAt(a)==nine){
System.out.print("enter a word!");
in = stdin.readLine();
//in = redo;
hasDigit(in);
}

else if(a==(in.length()-1)){
//System.out.println(redo);
in = cleanDup(in);
}

}
//System.out.print("enter a word")
return in;
}

}

public static class Pattern{
private String a;

public Pattern(String a){
this.a=a;

}

public int lengthOfWord(){
return a.length();
}

public void print(){
for(int z=0; z printBlock();
}
}

public void printBlock(){
for(int y=0; y printRow(y);
System.out.println();
}
}

public void printRow(int index){

for(int x = 0; x if(index==x){
System.out.print(a.charAt(index));
}
else{
System.out.print("_");
}
}
}

}



public static class PatternReversed{
private String a;

public PatternReversed(String a){
this.a=a;
}

public void print(){
for(int z=0; z printBlock();
}
}

public void printBlock(){
for(int y=0; y printRow(y);
System.out.println();
}
}

public void printRow(int index){

for(int x = 0; x if(((a.length()-1)-index)==(x)){
System.out.print(a.charAt(index));
}
else{
System.out.print("_");
}
}
}

}


///STATIC METHODS//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

static void print(Pattern a, PatternReversed b){

for(int u=0; u
for(int y=0; y
for(int re=0; re<4; re++){
a.printRow(y);
b.printRow(y);
}
System.out.println();

}
}


}


static String cleanDup2(String in){
String out = "";
for(int i = 0; i < in.length(); i++){
char c = in.charAt(i);
out = in.substring(0,i+1);

for(int k = i+1; k < in.length(); k++){
char nextc = in.charAt(k);

if(nextc != c)
out = out + nextc;
}
in = out;
}
return out;
}

}

:whip:
webmeister
Now that's what I call a tangent.
gumble
yay, u do java.
gumble
for those of u who require a musical education (i guess thats all but heath) fabric @ garage tonight.....



also going out to beemer;

peaches - i dont give a .
gumble
adelaide TAs: party here tonight.

come along.
GelatinPufF
Where? :eyes:
gumble
my house fool.

Ocean-Glow
Tried PHP/Perl ??? Talk about complicated coding ;)
gumble
hope u guys had fun last night :)


i didnt know the stripper was coming, that was cool.


i think maybe gumble should have a beer break again, very heavy weekend there.....
CLICK TO RETURN TO TOP OF PAGE
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 
Privacy Statement