Running my java application takes more memory on my new rhel62 machine. The same program takes less memory on rhel55.
i wrote a very simple 'HelloWorld' java program, and run it. That too takes huge memory in rhel62.
I am trying to call a bash script from a java class .
This is my java program
import java.io.File;
public class RunBuild {
public static void main(String[] args) {
File wd = new File("/home/sai/Jan5WS/ATCore/bin/");
System.out.println("Working Directory: " + wd);
Process proc = null;
try {
proc = Runtime.getRuntime().exec(" .
This is an assignment I have and i'm running into problems on this part of it.
I need to assign the value I get from scanner input = to a variable in another class.
After I do that, I need to be able to call a method that will display the value along with other ones.
Quote: Like this,
Name: "value"
Age: "value"
This is my first post in the Dani community. I am brand new to java, 5 weeks into an intro to computer programming course. My assignment is to create 10 random numbers between 50 and 100. Then I am supposed to sort them from lowest to highest, find the average and the max and min. I have got all but the sorting down.
Hello All,
I have the following code,
Code:
package com.java.tutorial.examples;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Swapping {
/**
* @param args
I got 2 machines both has the same operating system (Linux based), lets name these machines as PC 1 and PC 2.
hello!When in the below code if iam using a local address instead of yahoo.com,it is executing well,but if iam not using a local address then it is giving a java.net.SocketException.I use a proxy connection and i have set my proxy for java .pl help
import java.net.*;
import java.io.*;
import java.io.*;
public class URLReader {
hello friends,
i am new to ubuntu.
public class Prod {
public static void main(String[] args) {
System.out.println(prod(1, 4));
}
public static int prod(int m, int n) {
if (m == n) {
return n;
} else {
int recurse = prod(m, n-1);
int result = n * recurse;
return result;
}
}
}
On running the above code , I get 24 ?
I don't quite underst