The java program is saved as ExampleAssignment.java. Complete the missing lines of code for the below program public class ___________________ { public ____________ void ______________(String[] args) { _______________________________ = { “UTAS-N”, “UTAS-H”,”UTAS-S”}; System.out.println(“Enter the University Name to search”); __________________ in = new ____________(__________________________); String getUnivName = _________________.next(); for(int i=0;i<________________________;i++) { if(_____________________________________________) { System.out.println(“University of Technology & Applied Science, HCT”); } else if(______________________________________) { System.out.println(“University of Technology & Applied Science, NCT”); } else { System.out.println(“University of Technology & Applied Science, SCT”); } } } }
The java program is saved as ExampleAssignment.java. Complete the missing lines of code
for the below program
public class ___________________
{
public ____________ void ______________(String[] args)
{
_______________________________ = { “UTAS-N”, “UTAS-H”,”UTAS-S”};
System.out.println(“Enter the University Name to search”);
__________________ in = new ____________(__________________________);
String getUnivName = _________________.next();
for(int i=0;i<________________________;i++)
{
if(_____________________________________________)
{
System.out.println(“University of Technology & Applied Science, HCT”);
}
else if(______________________________________)
{
System.out.println(“University of Technology & Applied Science, NCT”);
}
else
{
System.out.println(“University of Technology & Applied Science, SCT”);
}
}
}
}
Output:
Enter the University Name to search: UTAS-N
University of Technology & Applied Science, NCT
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)