Answer:
15
Explanation:
Java's output statement can be used to print String values when the are enclosed in a pair of quotations marks (" "). Given that the values x =10 and y=5 have been declared as integers, the statement:
System.out.println(x+y); will output 10+15 = 15
On the other hand consider if these variables x and y were declared as Strings like this;
String x="10";
String y ="5";
Then the output of the statement System.out.println(x+y); will be 105
Answer:
a starting needs building and a construction chamber
Explanation:
the plan writing another business
Answer:
1: Word Processor
2: Graphics Software
3: Mail Merge
Explanation:
Given
1. Create a list of invitees
2. Design an invitation card
3. Personalize the card
Creating a list of invitees is a task that requires basic activities such as typing, using of numbers and bullets; these activities can be achieved using word processing software programs such as Microsoft Word, WordPerfect, amongst others.
<em>So task 1 requires a word processor</em>
An invitation card is a piece of graphics that can be perfectly handled by graphics software programs such as CorelDraw, Adobe Photoshop, etc.
<em>So task 1 requires a graphics software</em>
Task 3 can be achieved using mail merge and this is because mail merge can be used either to print or to mail recipients. While mailing the recipients, one can easily personalize each letter (or in this case, an invitation card) to suit the recipient it is being directed to.
trojan virus allows some one to sneak a bunch of coruppted data or more viruses into a system. a worm is able to access some ones computer and steal information a firebug is used to crash someones computer and spyder is used to scramble some ones work and deleting it
Answer:
import java.util.*;
public class work {
// function for counting unique character
public static int numUnique(String input) {
boolean[] list = new boolean[Character.MAX_VALUE];
for (int i = 0; i < input.length(); i++) {
list[input.charAt(i)] = true;
}
int count = 0;
for (int i = 0; i <list.length; i++) {
if (list[i] == true){
count++;
}
}
return count;
}
public static void main(String args[])
{
List<String>list=new ArrayList<>(); // creatng array list of type string
list.add("abcdef");
list.add("aaabcd");
list.add("bccddee");
list.add("abcddd");
list.add("a");
for(String str:list)
{
// for printing the results
System.out.println("given string : "+ str+" , number of unique values :"+numUnique(str));
}
}
}
Explanation: