1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
bixtya [17]
3 years ago
5

Given four int variables that have been given values, octet1, octet2, octet3, and octet4, write a string expression whose value

is the string equivalent of each these variables joined by a single period (.) So if octet1, octet2, octet3, and octet4, had the values 129, 42, 26, and 212 the expression's value would be "129.42.26.212". Alternatively, if octet1, octet2, octet3, and octet4, had the values 192, 168, 1and 44 the expression's value would be "192.168.1.44".
Computers and Technology
1 answer:
miskamm [114]3 years ago
5 0

Answer:

String cocat =octet1+"."+octet2+"."+octet3+"."+octet4;

Explanation:

See a complete java code below:

public class num15 {

   public static void main(String[] args) {

      int octet1 = 192;

       int octet2 = 168;

       int octet3 = 1;

       int octet4 = 44;

       String cocat =octet1+"."+octet2+"."+octet3+"."+octet4;

       System.out.println(cocat);

   }

}

You might be interested in
Assume three jobs arrive at approximately the same time (arrival time are all 0), but Job A arrives slightly before Job B, and J
Komok [63]

Answer:

Explanation:

Correct:

8 0
3 years ago
Utilitarianism does not mean "the greatest good of the greatest number" because a) it is impossible to calculate "the greatest g
pantera1 [17]

Answer:

The correct option is B: It focuses solely on "the greatest good" and pays no attention to how "the good" is distributed.

Explanation:

The theory of Utilitarianism promotes actions that enhances pleasure and the greatest good and opposes actions that can result to harm or unhappiness. However, this theory does not imply the greatest good for the greatest number of people and has been criticized for it. Critics state that Utilitarianism only focuses on the greatest good, but it shows no concern for the distribution of the good.

8 0
4 years ago
Read 2 more answers
What objective behaves like a high level array
zavuch27 [327]

Answer:

C.Vector

Explanation:

Vector is a high level array used in C++.It has the capability of resizing itself when it gets full.it has many functions that increases it's functionality like size(),begin(),end(),erase(),clear(),push_back(),pop_back() and many more and we store any kind of data type in the vector.

syntax for declaring a vector:-

vector<data type> vector name.

8 0
3 years ago
The person in charge of recording the sound should always
lubasha [3.4K]
I’d say wear headphones but I agree with the previous answer which said most of them could be necessary
8 0
4 years ago
NEED HELP ASAP! Which field best organizes street addresses in a database?
pickupchik [31]

Answer:

name

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • When using an online media source, students should ensure the information is
    13·2 answers
  • Search engines are used to find a specific entry in a database.<br><br> True or false?
    9·2 answers
  • You have no control over who views your social network information
    13·2 answers
  • You can write as many constructors for a class as you want, as long as they all have different ____ lists.
    8·1 answer
  • In Google search results, how are organic links different from sponsored links?
    13·2 answers
  • Henry is nervous speaking in public, and it shows every time he presents his ideas to his coworkers and manager. One of his team
    6·2 answers
  • 3.2 lesson practice edhesive ​
    6·1 answer
  • A social cause is: O A. when one person protests without the support of others. B. something that not many citizens think or car
    8·1 answer
  • Discuss TWO changes in ICMP that took place with the development of IPV6 and indicate why those changes were made.
    7·1 answer
  • Write pseudo code that performs the following: Ask a user to enter a number. If the
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!