|
| ||||||||||
| Tags: array, java, oop, programming |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Object oriented programming with java
Please help. |
|
#2
| |||
| |||
| Re: Object oriented programming with java
Array is mainly significant thing in any programming language. Array is a fixed memory allocation and this will assign the memory for same data type sequence. Array contains multiple values of same types and this all values are set memory at same size. Multiple type of array used in all programming language such as one - dimensional, two - dimensional or can say multi - dimensional. Declaration of an array: int new[]; or int new= new int[2]; or int num[] = {5,2,4,8,7,6}; Here is the code of the program: Code: import java.util.*;
public class array{
public static void main(String[] args){
int new[] = {50,20,45,82,25,63};
int a = new.length;
int w,b,y;
System.out.print("Given number : ");
for (w = 0;w < a;w++ ){
System.out.print(" " + num[w]);
}
System.out.println("\n");
System.out.print("Accending order number : ");
Arrays.sort(num);
for(w = 0;w < a;w++){
System.out.print(" " + num[w]);
}
}
} |
|
#3
| |||
| |||
| Re: Object oriented programming with java
Thank you so much for your great explanation. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Object oriented programming with java" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What are the different types of Object Oriented Programming Languages? | fLUTE | Software Development | 4 | 11-07-2011 02:39 PM |
| Scope of Object or variable in Object oriented Programming Languages | Dėfrim | Software Development | 3 | 08-01-2011 05:20 AM |
| static methods in object oriented programming | Satchel | Software Development | 5 | 07-01-2011 08:58 PM |
| Problems with object-oriented programming, classes, objects, functions | Lakshmigopal | Software Development | 5 | 04-12-2010 10:01 AM |
| The OOP Object Oriented programming Concept & its principle? | Bhavya | Software Development | 3 | 25-02-2009 08:16 PM |