- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
7 Posted Topics
class SortArray { public static void main(String args[]) { int arr1[] = {11,15,8,9,3,6,10,12,5,1,2,13,4,7,14}; for (int i=0;i<arr1.length;i++) System.out.println(arr1[i]); for(int i=0;i<(arr1.length-1);i++) { for (int j=i+1;j<arr1.length;j++) { if(arr1[i]>arr1[j]) { [COLOR="Red"] arr1[i]=arr1[i]+arr1[j]; arr1[j]=arr1[i]-arr1[j]; arr1[i]=arr1[i]-arr1[j];[/COLOR] } } } System.out.println("Array after sorting in ascending order"); System.out.println(); for (int i=0;i<arr1.length;i++) System.out.println(arr1[i]); } } hey i have edited …
hi im new to java and im learning about how to add/remove panels from another panel... [COLOR="red"] This is my main frame[/COLOR] [code=java]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class DynamicFrame extends JFrame{ private JButton jb = new JButton("Remove"); private JPanel jp = new JPanel(); public DynamicFrame(){ jp.add(jb); add(jp); setVisible(true); …
Im just new in java and im trying to make a program that would copy a picture from a specified folder and paste it also to a specified folder. i know how to select the picture using the filechooser and my problem is how to copy it.
hi..i was wondering where to find a sample java code that splits an image and each image that was splitted can be click and link to another image...
i really can figure out how pagination works.. suppose i have 2 files ok.php and pagin.ph ok.php containts some details. [code=php]<?php echo date("Y/m/d"); echo "<br />"; echo date("Y.m.d"); echo "<br />"; echo date("Y-m-d"); echo"<br/>"; echo date("h:i:s" ,time()); $i=0; $display = 25; while($i<10) { $x=0; while($x<$display){ echo "$x hello World <br/>"; …
Private Sub Command1_Click() Set rs1 = DB.OpenRecordset("Table1", dbOpenDynaset) If rs1.EOF = True Then MsgBox "Record is Empty" Else MsgBox "Got IT" rs1.MoveLast If Not rs1.EOF Then rs1.MoveFirst Do While Not rs1.EOF If rs1!Name <> "" And rs1!age <> "" Then Set rs2 = DB.OpenRecordset("SELECT Name FROM Table2 WHERE Name like …
HI guys. Im a student and studying c++ that and cmd and so far i stil havent figure out how to change my current dir while my program is running. My program is that i want to make a test.txt file with a "my test file" inside it , in …
The End.
cebubinary