e = new Entry(); e.set({title: "my blog rulez", body: "this is the best blog evar!!!!1!!"}); e.save();
/** * Reads an entry from the input. * * @param pInput the input data * @return the {@code Entry} read from the input data * @throws IOException if an i/o exception occurs during reading */ static Entry readEntry(final DataInput pInput) throws IOException { Entry p = new Entry(); p.read(pInput); return p; }
/** * Returns the child of this {@code Entry} with the given name. * * @param pName the name of the child {@code Entry} * @return the child {@code Entry} or {@code null} if thee is no such * child * @throws java.io.IOException if an I/O exception occurs */ public Entry getChildEntry(final String pName) throws IOException { if (isFile() || rootNodeDId == -1) { return null; } Entry dummy = new Entry(); dummy.name = pName; dummy.parent = this; SortedSet child = getChildEntries().tailSet(dummy); return (Entry) child.first(); }
int t = infile.nextInt(); //reads int String d = infile.next(); //reads the next String before a blank space " " int p = infile.nextInt(); //reads int Entry e = new Entry(t,d,p); //use your data infile.nextLine(); //read the line escape "\n" or "\r\n"
public void addEntry(String l) { Entry newEntry = new Entry(l); int i = 0; while(entries[i] != null) i++; }
public class ArrayDirectory implements Directory { Entry[] entries = new Entry[1]; public void addEntry(Entry newEntry) { Entry[] temp = new Entry[entries.length + 1]; for (int i = 0; i < entries.length; i++) { temp[i] = entries[i]; } newEntry = new Entry("isajas","ssds", "sasdas"); temp[temp.length - 1] = newEntry; entries = temp; } }
while (scanner.hasNextLine()) { if(!scanner.next().equals("")&&!scanner.next()==null){ String lastname = scanner.next(); String firstname = scanner.next(); String number = scanner.next(); list.add(new Entry(firstname, lastname, number)); } }
public void addEntry(String l) { Entry newEntry = new Entry(l); int i = 0; while(entries[i] != null) i++; }
LineChart graph = (LineChart) view.findViewById(R.id.chart); // creating list of entry ArrayList<Entry> entries = new ArrayList<>(); entries.add(new Entry(0, 4f)); entries.add(new Entry(1, 8f)); entries.add(new Entry(2, 6f)); entries.add(new Entry(3, 2f)); entries.add(new Entry(4, 18f)); entries.add(new Entry(5, 9f)); LineDataSet dataSet = new LineDataSet(entries, "# of Calls"); LineData lineData = new LineData(dataSet); graph.setData(lineData);
/** each 5 seconds **/ new CountDownTimer(5000, 1000) { public void onTick(long millisUntilFinished) { } public void onFinish() { double randomValue = 19.0 + (Math.random() * (21.0 - 19.0)); int indexOfMyLine = 0; Entry newEntry = new Entry((float) randomValue, indexOfMyLine); }
Integer[] myEntries = new Integer[5]; // System.out.println(Arrays.toString(myEntries)); // above commented code prints "[null, null, null, null, null]" for(int i = 0; i < myEntries.length; i++) { myEntries[i] = new Entry(); myEntries[i].setText(new String("")); }
@ManagedBean public class RuleTreeBeanAddActionNode { private List<Entry> entries; @PostConstruct public void init() { entries = new ArrayList<Entry>(); entries.add(new Entry("foo", "bar")); } public List<Entry> getEntries() { return entries; } }
for (int i = 0; i < size; i++) { // your month list is 0-based String month = charts_list_HadsM.get(i).month; mMonths[i] = month; String anx = charts_list_HadsM.get(i).anx; String dep = charts_list_HadsM.get(i).dep; // Make entries index 0-based, too e1.add(new Entry(i, Integer.parseInt(anx))); e2.add(new Entry(i, Integer.parseInt(dep))); }
private List<Entry> mapToList(Map<String,String> map) { List<Entry> list = new ArrayList<Entry>(); for(String key: map.keySet()) { list.add(new Entry(key, map.get(key))); } return list; }
/** * Reads an entry from the input. * * @param pInput the input data * @return the {@code Entry} read from the input data * @throws IOException if an i/o exception occurs during reading */ static Entry readEntry(final DataInput pInput) throws IOException { Entry p = new Entry(); p.read(pInput); return p; }
Entry max = new Entry(); // defaultly constructed, so max.getAverage() == 0 Entry min = new Entry(); // defaultly constructed, so min.getAverage() == 0 for(Entry entry : validEntries){ // entry has only positive grades .... if(min.getAverage() >= entry.getAverage()) // 0 >= 'something, greater than 0' is always false. }
Entry entry = new Entry(); entry.setCardNumber(123); entry.setCompanyId(3); entry = session.merge(entry); session.flush(); session.refresh(entry );
Entry entry = new Entry(750, "C:\\ta\\"); entry.addFilename("wer.xls"); entry.addFilename"ert.xlsx"); entry.addFilename"gftr.xls"); entry.addFilename"ewrt.xlsx");