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
son4ous [18]
3 years ago
10

Write a java program to create and display unique three digit number using 1,2,3 and 4 also count how many three digit number ar

e there.
Expected

123

124

---

---

431

432
Computers and Technology
1 answer:
padilas [110]3 years ago
5 0

Answer:

Answered below

Explanation:

Class Unique{

public static void main(String args[]){

int myArray[] = {1, 2, 3, 4};

int newArray[];

int i;. int j; int k;

for(i = 0; i < myArray.length; I++)

for(j = 0; j< myArray.length; j++)

for(k = 0; k< myArray.length; k++){

if(i != j && j!= k && i != k ){

newArray.add(myArray[i] + myArray[j] + myArray[k]);

}

}

int count = 0;

for(int m = 0; m < newArray.length; m++){

count++;

}

System.out.print(newArray, count)

}

}

You might be interested in
Help please!, explain what is missing and what needs to be changed if anything.
german

Using the computer language in JAVA to write a function code that output numbers in reverse

<h3>Writting the code in JAVA:</h3>

<em>import java.util.Scanner;</em>

<em>public class LabProgram {</em>

<em>    public static void main(String[] args) {</em>

<em>        Scanner scnr = new Scanner(System.in);</em>

<em>        int[] userList = new int[20];</em>

<em>        int numElements;</em>

<em>        numElements = scnr.nextInt();</em>

<em>        for (int i = 0; i < numElements; ++i) {</em>

<em>            userList[i] = scnr.nextInt();</em>

<em>        }</em>

<em>        for (int i = numElements - 1; i >= 0; --i) {</em>

<em>            System.out.print(userList[i] + " ");</em>

<em>        }</em>

<em>        System.out.println();</em>

<em>    }</em>

<em>}</em>

See more about JAVA at brainly.com/question/12975450

#SPJ1

8 0
2 years ago
This is me lol jjaaaabbooo
ElenaW [278]

i like your glasses uwu

6 0
3 years ago
How do I close the file so I can delete it ? Since it's open in another program
Luba_88 [7]
One way is to use task manager (ctrl alt del) then force close it by right clikgin and clicking 'end program' or 'clos program' or smething like that
7 0
4 years ago
A computer network is _____.
ad-work [718]

Answer:

a

Explanation:

a group of people who help you solve any technical issues

3 0
3 years ago
What is it called when memory that is stored on chips located near the mother board
Paul [167]
This is referred to as Random Access Memory (RAM), and is used when the computer needs to recall tasks quickly, as opposed to more slowly when it uses the hard drive.
5 0
3 years ago
Read 2 more answers
Other questions:
  • I'm curious why I would need to know this on a school learning site.
    12·1 answer
  • your grandmother tells you a dollar doesn’t go as far as it used to. She says the “purchasing power” of a dollar is much less th
    6·1 answer
  • Which logic gate produces an output of 1 only if both it’s inputs are 0?
    10·2 answers
  • Points Possible: 6, Points Correct: 4
    6·1 answer
  • How do the steps taken by leaders of Athens reflect a turn towrd democracy
    10·1 answer
  • Suppose we want to adjust the page numbering for our Works Cited section so that it starts over at page 1. Is this possible to d
    12·2 answers
  • When the city of chicago buys ipads™ for its restaurant inspectors to use during their visits, the purchase from apple would be
    13·1 answer
  • What are the different steps while solving a problem using computer? explain​
    7·1 answer
  • Subjective Questions
    11·1 answer
  • Can we use a data type as a condition in C++?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!