If you have any doubts, please give me comment...
public class Solution{
public static void main(String[] args) {
for(int i=1; i<=50; i++){
for(int j=1; j<=50; j++){
if(j==12){
System.out.print("|");
}
else if(j>12 && i<39){
System.out.print("@");
}
else if(i==39){
System.out.print("-");
}
else if(i>39 && j<12){
System.out.print(":");
}
else if(j<12 && i==15){
System.out.print("-");
}
else if(i>39 && j==45){
System.out.print("|");
}
else if(i==45 &&j>45){
System.out.print("-");
}
else if(i>45 && j>45){
System.out.print("%");
}
else{
System.out.print(" ");
}
}
System.out.println();
}
}
}


Write a program that prints an imitation of the Composition II in Red, Blue, and Yellow...
Assignment 6, Merge Arrays (java) Instructions In this assignment, you will write a program which merges two arrays of positive integers and removes any duplicate entries. Your program will first ask for a valid length which must be an integer which is 10 or greater. The program should continue to ask until a valid length is entered. The program will then create two arrays of the length entered, fill these with random integers between 1 and 100 inclusive, and print...
Copy the following java codes and compile //// HighArray.java //// HighArrayApp.java Study carefully the design and implementation HighArray class and note the attributes and its methods. Create findAll method which uses linear search algorithm to return all number of occurrences of specified element. /** * find an element from array and returns all number of occurrences of the specified element, returns 0 if the element does not exit. * * @param foundElement Element to be found */ int findAll(int...
Write a program that reads in BabyNames.txt and produces two files, boynames.txt and girlnames.txt, separating the data for the boys and the girls, and listing them in alphabetical order. This is the code I have, Its not sorting the boys/girls names in seperate files. It is creatinf two files, but has all the names. I also need to alphabetize the names. with an Array. sort import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.Scanner; public class BabyNames{ public static void main(String[]...
Declare and initialize 4 Constants for the
course category weights:
The weight of Homework will be 15%
The weight of Tests will be 35%
The weight of the Mid term will be 20%
The weight of the Fin al will be 30%
Remember to name your Constants according to Java
standards.
Declare a variable to store the input for the number of
homework scores and use a Scanner method to read the value from the
Console.
Declare two variables: one...