Click here to Skip to main content
15,907,687 members
Home / Discussions / Java
   

Java

 
GeneralRe: How to start Giutar Swing application in NetBeans Pin
LunaticFringe2-Nov-09 7:44
LunaticFringe2-Nov-09 7:44 
GeneralRe: How to start Giutar Swing application in NetBeans Pin
42774802-Nov-09 7:54
42774802-Nov-09 7:54 
GeneralRe: How to start Giutar Swing application in NetBeans Pin
LunaticFringe2-Nov-09 8:02
LunaticFringe2-Nov-09 8:02 
GeneralRe: How to start Giutar Swing application in NetBeans Pin
42774802-Nov-09 8:30
42774802-Nov-09 8:30 
GeneralRe: How to start Giutar Swing application in NetBeans Pin
Nagy Vilmos3-Nov-09 1:24
professionalNagy Vilmos3-Nov-09 1:24 
Questionfile monitor or application reinstaller [modified] Pin
aviparida2-Nov-09 1:18
aviparida2-Nov-09 1:18 
AnswerRe: file monitor or application reinstaller Pin
Nagy Vilmos2-Nov-09 2:51
professionalNagy Vilmos2-Nov-09 2:51 
Questioncan anyone write the java code for the below program (money will be paid) Pin
maddynandu1-Nov-09 8:35
maddynandu1-Nov-09 8:35 
Write a program Cipher.java that encrypts plain text from a file, using a transposition cipher. The cipher works by 'transposing' the characters of the text, making it difficult to read without knowing the characters' original positions. Conceptually, the text is first arranged into rows, then the columns are rearranged, and each column's contents are output to produce the encrypted message (cipher-text). If there are not enough characters to fill the final row, the remainder should be 'padded' with a space followed by enough random characters to fill the row (this is to ensure that each column is the same length, so decryption would work correctly.)


Your program should read the text from a file (e.g. “plain.txt”), encrypt it, and display the cipher-text. The file will contain some number of lines, each consisting of only lower-case letters (a-z) and spaces (i.e. no upper-case letters and no punctuation.) After encryption, the cipher-text should be displayed on the screen using upper-case letters. The columns should be rearranged in the order: 4,7,3,1,5,2,6.

this is my very
secret message

\/
1 2 3 4 5 6 7
t h i s i s
m y v e r
y s e c r e
t m e s s a
g e e g k r
In rows, padded

\/
4 7 3 1 5 2 6
s s i t h i
r y v m e
e e s y c r
e a m t s s
e r g g e k
Re-order columns

\/
S EEESREARIYSM T YTG
VCSGHM EIERSK

Cipher Text
AnswerRe: can anyone write the java code for the below program (money will be paid) Pin
Richard MacCutchan1-Nov-09 9:28
mveRichard MacCutchan1-Nov-09 9:28 
GeneralRe: can anyone write the java code for the below program (money will be paid) Pin
maddynandu1-Nov-09 9:39
maddynandu1-Nov-09 9:39 
GeneralRe: can anyone write the java code for the below program (money will be paid) Pin
LunaticFringe1-Nov-09 9:41
LunaticFringe1-Nov-09 9:41 
GeneralRe: can anyone write the java code for the below program (money will be paid) Pin
maddynandu1-Nov-09 9:45
maddynandu1-Nov-09 9:45 
GeneralRe: can anyone write the java code for the below program (money will be paid) Pin
Richard MacCutchan1-Nov-09 21:16
mveRichard MacCutchan1-Nov-09 21:16 
AnswerRe: can anyone write the java code for the below program (money will be paid) Pin
42774801-Nov-09 22:31
42774801-Nov-09 22:31 
Questionfile monitoring and registry Pin
aviparida31-Oct-09 4:15
aviparida31-Oct-09 4:15 
AnswerRe: file monitoring and registry Pin
42774801-Nov-09 22:37
42774801-Nov-09 22:37 
QuestionHow to access OLAP objects in J2ME application Pin
Mangaysh30-Oct-09 20:47
Mangaysh30-Oct-09 20:47 
Questionjvm manager Pin
aviparida29-Oct-09 2:21
aviparida29-Oct-09 2:21 
AnswerRe: jvm manager Pin
Richard MacCutchan29-Oct-09 23:34
mveRichard MacCutchan29-Oct-09 23:34 
GeneralRe: jvm manager Pin
aviparida30-Oct-09 5:52
aviparida30-Oct-09 5:52 
GeneralRe: jvm manager Pin
Richard MacCutchan30-Oct-09 6:06
mveRichard MacCutchan30-Oct-09 6:06 
GeneralRe: jvm manager Pin
aviparida30-Oct-09 6:38
aviparida30-Oct-09 6:38 
GeneralRe: jvm manager Pin
Richard MacCutchan30-Oct-09 7:40
mveRichard MacCutchan30-Oct-09 7:40 
GeneralRe: jvm manager Pin
aviparida30-Oct-09 7:58
aviparida30-Oct-09 7:58 
GeneralRe: jvm manager Pin
Richard MacCutchan30-Oct-09 8:05
mveRichard MacCutchan30-Oct-09 8:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.