would be: time to launch drone BETA Steps to Complete This Project Open NetBeans
ID: 3862785 • Letter: W
Question
would be: time to launch drone BETA Steps to Complete This Project Open NetBeans STEP 1 Open NetBeans and create a Java project with the following details. For Project Name include Lab8 For the Main Class include lab8.Steganography In your Code window, shown below, copy in the program code shown in Figure 1 below, in the appropriate places, except substitute your own name in place of Sammy Student. PROJECT Steganography and Secret Messages Using Arrays in Java Figure 1 Source Code for the Steganography Program import javax swing JOptionPane: ISammy Student Programmer public class Steganography public static void main(String argsID the plaintext message String linel Hello Stan and Marilyn String line2 "Let us meet for lunch": String line3 "at noon on Tuesday. String linea We will be waiting": String lines at the East building of String line6 "train station C String line "I will ask Hank, Quincy,": String lines Denise, Eddy and Roni": String line "to join us there!"; String linele Best Regards," String linell "KZ": String message ""n":Explanation / Answer
public class Steganography {
public static void main(String[] args) {
String line1="Hello Stan and marilyn!";
String line2="Let us meet for lunch";
String line3="at noon on Tuesday.";
String line4="We will be waiting";
String line5="at the East building of";
String line6="train station C.";
String line7="I will ask,Hank Quincy,";
String line8="Denise,Eddy and Roni";
String line9="To join us there!";
String line10="Best Regards,";
String line11="KZ";
String message=" ";
String linesArray[]={line1,line2,line3,line4,line5,line5,line6,line7,line8,line9,line10,line11};
char array1[] = line1.trim().toCharArray();
char array2[] = line2.trim().toCharArray();
char array3[] = line3.trim().toCharArray();
char array4[] = line4.trim().toCharArray();
char array5[] = line5.trim().toCharArray();
char array6[] = line6.trim().toCharArray();
char array7[] = line7.trim().toCharArray();
char array8[] = line8.trim().toCharArray();
char array9[] = line9.trim().toCharArray();
char array10[] = line10.trim().toCharArray();
char array11[] = line11.trim().toCharArray();
System.out.println(" 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23");
for(int i=0;i<linesArray.length;i++){
String line=linesArray[i];
char charArray[] = line.toCharArray();
System.out.print("line"+(i+1));
for(int j=0;j<charArray.length;j++){
System.out.print(" "+charArray[j]);
}
System.out.println();
}
}
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.