Just trying to put together a small program which should be straight forward but having issues.
Also, I'm using openjdk.
What I input in vim;
--------
mport java.util.Scanner;
import java.text.DecimalFormat;
import java.* //was troubleshooting
public class phy114
{
public static void main( String [] args )
Hey Guys i am currently doing the problems from projecteuler.net as you guys suggested to improve my Programming Knowledge..
There i got a challenge
The Problem is as follows
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
The Code/logic i wrote for that is as follows
import java.io.*;
import java.util.Scanner;
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
Hi,
I am having trouble getting back into a loop after an exception has been caught. This is what the program should do...
i am creating a simple test app for login process but the error that i get that when i use the browser in the emulator and try the url that i used it give me web page not available
i used the localhost 127.0.0.2 but it give me the same msg and i used the ip of my pc the same msg anyone can help me ??
java code
package com.sencide;
import java.io.BufferedReader;
import java.io.IOException;
i
I'm working on an app that has a login activity.
The view has an email field, a password field and a button.
I have created some listeners to catch the various posibilities, but on neither one of them the onClick and/or onTouch method is fired.
here is the code:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.i
I'm using class that extends AsyncTask but I have error at the line that executes the class
I couldn't figure it out
here is the class that includes my main class and the class that extends AsyncTask
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.http.NameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONOb
Just started my first unit in Java and my lecturer has set some code with logical errors in it. I think I have found them all bar one. the problem that I am having is that when I run this script it should calculate the Tax for the dollar amount but the tax stays at 55c whether it a $1 or $10 or even $100. It’s always 55c Tax.
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(" .