An equilateral triangle of sides 3 inch each is given. How many equilateral triangles of side 1 inch can be formed from it?
141320% of a 6 litre solution and 60% of 4 litre solution are mixed. What percentage of the mixture of solution ?
1191The cost of an item is Rs 12.60. If the profit is 10% over selling price what is the selling price ?
1282A school has 30% students from Maharashtra .Out of these 20% are Bombey students. Find the total percentage of Bombay?
1289Post New Geodesic Interview Questions
How will you suspend a running process and put it in the background?
The following program reads data (details of students) from a file named students.txt and converts it into e-mail addresses. The results are written to a file named studentemail.txt. students.txt consists of a number of lines, each containing the data of a student in colon delimited format: Last Name:First Name:Student Number Each input record is converted to an e-mail address and written to studentemail.txt in the following format: the first character of the last name + the first character of the first name + the last four digits of the student number + “@myunisa.ac.za” import java.io.*; public class EmailConverter { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new FileReader ("students.txt")); PrintWriter output = new PrintWriter(new FileWriter ("studentemail.txt")); String line = input.readLine(); while (line != null) { // Extract the information for each student String[] items = line.split(":"); // Generate the email address String email = "" + items[0].charAt(0) + items[1].charAt(0) + items[2].substring(4,8) + "@myunisa.ac.za"; email = email.toLowerCase(); // Output output.println(email); line = input.readLine(); } input.close(); output.close(); } } Rewrite the class so that it handles possible errors that may occur. In particular, it should do the following: • It should catch at least three appropriate exceptions that might occur, and display suitable messages. • At this stage, the program will not run correctly if there is an empty line in the input file. Change the program so that if an empty line is encountered, an exception is thrown and the empty line is ignored. This exception should be handled with the display of a suitable error message. • Before the e-mail address is added to the output file, check if the student number has 8 digits. If not, throw an InvalidFormatException (which the program should not handle itself)
How can I redirect the user to a page after processing is completed in the controller/extension?
State the difference between creating string as new () and literal.
What is the application of hardness date in environmental engineering practice?
In Software Development Team, Who has the biggest and smallest salary? Can You list all of it? It say that SQA Tester is the smallest one, Is it right?
What is a tableau data sheet?
What is the difference between limit of quantification and limit of quantitation?
What is transactional spring?
What is an infinite loop in java? Explain with an example.
What is a singleton class? Give a practical example of its usage.
Can we concatenate fields in physical file? If yes how can we do?
What would be the difficulties with building a bridge that connects the UK and Canada?
What is the structure of the bdc table? : abap bdc
What is the use of kernel in sap system? How do you check the current kernel version in sap system?