Here's the code. Run and get 1337, lol.
Leet Speak Convertor with Java Code
Here's the code. Run and get 1337, lol.
TheUnknown Tuesday, June 30, 2015 Code Library, Coding, Java, Java 7, Java Generics, Programming No comments ![]()
TheUnknown Wednesday, June 24, 2015 Coding, File Read and Write, iIText, Java, Java (programming language), Java 7, Java Generics, Java GUI, Java NIO, Java Swing, Programming No comments ![]()
TheUnknown Friday, June 19, 2015 Abstract data type, Algorithms, Competitive Programming, Data Structure, Java, Java (programming language), Java 7, Java Generics, Programming, Programming Tutorials, Stack, Stack (abstract data type) No comments ![]()
| Simple representation of a stack (Photo credit: Wikipedia) |
StackADT {
push(item) : insert the item into the stack
pop() : removes the top element.
size() : Returns the size of the stack.
isEmpty() : checks whether the stack is empty or not.
isFull() : checks whether the stack is full or not.
}5 <--- Top element
6
7
8
934 <--- Top element.
5
6
7
8
92 <--- Top element.
34
5
6
7
8
934 <--- Top element.
5
6
7
8
96 <--- Top element.
7
8
9'F' <--- Top'i' <--- Top
'F''n' <--- Top
'u'
'r'
'i'
'F''u' <--- Top
'r'
'i'
'F''r' <--- Top
'i'
'F'private String reverseString(){
String m="";
for(int i=0;i<str.length();i++){
stack.push(str.charAt(i));
}
for(int i=0;i<str.length();i++){
m=m+stack.pop();
}
return m;
}PROCEDURE REVERSE_STRING(M) {
INITIALISE LEN = LENGTH(M)
FOR I TO LEN:
STACK.PUSH(M[I])
FOR I TO LEN:
N = N + STACK.POP()
RETURN N
}TheUnknown Monday, June 15, 2015 Algorithms, Data Structure, Java, Java (programming language), Java Generics No comments ![]()
Initial Size of Bag (No of elements): 0 Capacity (No. of items the bag can hold) :5 Size of Bag after inserting items : 4 Capacity of Bag after extending the size :10 Size of Bag after inserting more items : 8 Elements present in the Bag :- 12 212 1 123 142 12 19 131 No. of elements in the Bag (When used counter) :8 Size of Bag after clearing : 0
TheUnknown Monday, June 15, 2015 2D computer graphics, ASCII art, Java, Java (programming language), Java 7, Java Generics, Programming No comments ![]()
| English: ascii art example. "Block" or "High ASCII" style, cf. ANSI art. (Photo credit: Wikipedia) |
obj.convertToAscii("Absolute_Path_To_Your_Image.jpg");TheUnknown Monday, June 15, 2015 File Read and Write, Java (programming language), Java 7, Java Generics, Java NIO, Linux. Java No comments ![]()
| Duke, the Java Mascot, in the waving pose. Duke images are now Free Graphics see duke:Project Home Page for more details. (Photo credit: Wikipedia) |
TheUnknown Saturday, June 13, 2015 Algorithms, Data Structure, Java, Java Generics, Stack No comments ![]()
Print All Elements in Stack : 4 3 2 1 All Elements in Stack are : 2 1 Top Element : 2 Size of Stack : 4