Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

public class worksheet 1 _ 1 { public class worksheet 1 _ 1 { public static void main ( String [ ] args ) {

public class worksheet1_1{public class worksheet1_1{
public static void main(String[] args){
int [] array ={1,2,3,4};
func_1();
int x= func_2();
System.out.println(x);
func_33(x);
System.out.println(x);
x= func_4(x);
int [] array_2= func_5();
print (array);
print (array_2);
array_2= func_6(array);
print (array);
print (array_2);
func_7(array);
print (array);
print (array_2);
}// end of main method
static void func_1(){
int x=1;
System.out.println (x);
}
s
static int[] func_5(){
int[] array ={5,6,7,8};
static int func_2(){
int x=2;
}
return x;
}
return array;
static int[] func_6(int[] array){
array[]=99;
static void func_3(int x){
int y=1;
x=x+y;
}
return array;
System.out.println(x);
}
static void func_7(int[] array){
array [3]=99;
}
static void print(int[] ar){
for (int i=0; i ar.length; i++)
System.out.print(ar[i]+"\t");
system.out.println();
}
x
}??? end of class
public static void main(String[] args){
int [] array ={1,2,3,4};
func_1();
int x= func_2();
System.out.println(x);
func_3(x);
System.out.println(x);
x= func_4(x);
int [] array_2= func_5();
print (array);
print (array_2);
array_2= func_6(array);
print (array);
print (array_2);
func_7(array);
print (array);
print (array_2);
}// end of main method
static void func_1(){
int x=1;
System.out.println(x;
}
static int func_2(){
int x=2;
return x;
}
static void func_3(int x){
int y=1;
x=x+y;
System.out.println(x);
}
static int func_4(int x){
int y=3;
x=x+y;
System.out.println(x);
return x;
}
static int[] func_5(){
int [] array ={5,6,7,8};
return array;
}
static int[] func_6(int[] array){
array []=99;
return array;
}
static void func_7(int[] array){
array [3]=9bar(9);
}
static void print(int[] ar){
for (int i=0; i ar.length; i++)
System.out.print(ar[i]+"\t");
System.out.println();
}
}// end of class
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions